Data storage device and data maintenance method thereof
First Claim
1. A data storage device, comprising:
- a flash memory, having a plurality of blocks, wherein each of the blocks has a plurality of pages arranged sequentially along a first direction; and
a controller, determining whether an X-th page of a temporary block of the blocks can be successfully read when the data storage device resumes operation after a power-off event, and writing dummy data and a temporary-block table into the (X+1)-th page of the temporary block when the X-th page can be successfully read, wherein the X-th page is the page that was read last from the temporary block before the power-off event occurred, the temporary-block table records the information of all the pages in the temporary block, and X is a positive integer.
1 Assignment
0 Petitions
Accused Products
Abstract
The present invention provides a data storage device that includes a flash memory and a controller. The flash memory has a plurality of blocks, and each of the blocks has a plurality of pages arranged sequentially along a first direction. The controller determines whether an X-th page of a temporary block of the blocks can be successfully read when the data storage device resumes operation after a power-off event, and writes dummy data and a temporary-block table into the (X+1)-th page of the temporary block when the X-th page can be successfully read, wherein the X-th page is the page that was read last from the temporary block before the power-off event occurred, the temporary-block table records the information of all the pages in the temporary block, and X is a positive integer.
-
Citations
22 Claims
-
1. A data storage device, comprising:
-
a flash memory, having a plurality of blocks, wherein each of the blocks has a plurality of pages arranged sequentially along a first direction; and a controller, determining whether an X-th page of a temporary block of the blocks can be successfully read when the data storage device resumes operation after a power-off event, and writing dummy data and a temporary-block table into the (X+1)-th page of the temporary block when the X-th page can be successfully read, wherein the X-th page is the page that was read last from the temporary block before the power-off event occurred, the temporary-block table records the information of all the pages in the temporary block, and X is a positive integer. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11)
-
-
12. A data maintenance method, applied to a data storage device having a flash memory, wherein the flash memory comprises a plurality of blocks, and each of the blocks has a plurality of pages arranged sequentially along a first direction, the data maintenance method comprising:
-
determining whether an X-th page of a temporary block of the blocks can be successfully read when the data storage device resumes operation after a power-off event; and writing dummy data and a temporary-block table into the (X+1)-th page of the temporary block when the X-th page can be successfully read, wherein the X-th page is the page that was read last from the temporary block before the power-off event occurred, the temporary-block table records the information of all the pages in the temporary block, and X is a positive integer. - View Dependent Claims (13, 14, 15, 16, 17, 18, 19, 20, 21, 22)
-
Specification