Method for data recovery for flash devices
First Claim
1. A method for data recovery, wherein a memory comprises a plurality of pages for data storage, a random access memory stores flash-translation-layer (FTL) data according to a mapping relationship between logical addresses and physical addresses of the pages, and the memory stores a previous version of the FTL data, comprising:
- obtaining first data from a host;
selecting a first page for storing the first data from the pages of the memory;
storing a start page link indicating the first page in the memory;
writing the first data, a first page link indicating a next page, and first FTL fragment data corresponding to the first page into the first page;
obtaining next data from the host; and
writing the next data, a next page link indicating a subsequent page, and FTL fragment data corresponding to the next page into the next page.
1 Assignment
0 Petitions
Accused Products
Abstract
The invention provides a method for data recovery. In one embodiment, a memory comprises a plurality of pages for data storage. First, first data is obtained from a host. A first page for storing the first data is then selected from the pages of the memory. A start page link indicating the first page is then stored in the memory. The first data, a first page link indicating a next page, and first FTL fragment data corresponding to the first page are then written into the first page. Next data is then obtained from the host. The next data, a next page link indicating a subsequent page, and FTL fragment data corresponding to the next page are written into the next page.
22 Citations
34 Claims
-
1. A method for data recovery, wherein a memory comprises a plurality of pages for data storage, a random access memory stores flash-translation-layer (FTL) data according to a mapping relationship between logical addresses and physical addresses of the pages, and the memory stores a previous version of the FTL data, comprising:
-
obtaining first data from a host; selecting a first page for storing the first data from the pages of the memory; storing a start page link indicating the first page in the memory; writing the first data, a first page link indicating a next page, and first FTL fragment data corresponding to the first page into the first page; obtaining next data from the host; and writing the next data, a next page link indicating a subsequent page, and FTL fragment data corresponding to the next page into the next page. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A device capable of data recovery, comprising:
-
a memory, comprises a plurality of pages for data storage; a random access memory, storing flash-translation-layer (FTL) data according to a mapping relationship between logical addresses and physical addresses of the pages; and a microprocessor, obtaining first data from a host, selecting a first page for storing the first data from the pages of the memory, storing a start page link indicating the first page in the memory, writing the first data, a first page link indicating a next page, and first FTL fragment data corresponding to the first page into the first page, obtaining next data from the host, and writing the next data, a next page link indicating a subsequent page, and FTL fragment data corresponding to the next page into the next page. - View Dependent Claims (7, 8, 9, 10)
-
-
11. A method for data recovery for a flash device, wherein a flash memory of the flash device comprises a plurality of pages for data storage, a random access memory stores flash-translation-layer data recording to a mapping relationship between logical addresses and physical addresses of the pages, and the flash memory stores a previous version of the FTL data, comprising:
-
obtaining first data from a host; selecting a first page for storing first data from the pages of the flash memory; writing the first data, a first page link indicating the previous version of the FTL data, and first FTL fragment data corresponding to the first page into the first page; obtaining next data from the host; and writing the next data, a previous page link indicating the first page, and FTL fragment data corresponding to a next page into the next page. - View Dependent Claims (12, 13, 14, 15, 16)
-
-
17. A method for data recovery for a flash device, wherein a flash memory of the flash device comprises a plurality of blocks, and each of the blocks comprises a plurality of pages for data storage, comprising:
-
when writing data to a target page of a target block selected from the blocks, recording a block type and a physical block number of the target block in the target page; after power of the flash device is recovered, determining whether the target block is a garbage collection block according to the block types and the physical block numbers stored in the pages of the target block; and rebuilding flash-translation-layer (FTL) data recorded a mapping relationship between logical numbers and physical numbers according to whether the target block is a garbage collection block. - View Dependent Claims (18, 19, 20, 21, 22, 23, 24, 25)
-
-
26. A device capable of data recovery, comprising:
-
a memory, comprising a plurality of blocks, wherein each of the blocks comprises a plurality of pages for data storage; and a microcontroller, recording a block type and a physical block number of a target block in a target page when data is written into the target page, determining whether the target block is a garbage collection block according to the block types and the physical block numbers stored in the pages of the target block after power of the device is recovered, and rebuilding flash-translation-layer (FTL) data recorded a mapping relationship between logical numbers and physical numbers according to the determining result. - View Dependent Claims (27, 28, 29, 30, 31, 32, 33, 34)
-
Specification