-
公开(公告)号:US10340025B2
公开(公告)日:2019-07-02
申请号:US15863887
申请日:2018-01-06
Applicant: Silicon Motion, Inc.
Inventor: Pin-Chang Liu , Tai-Yu Tsou , Yi-Ming Liu
Abstract: The present invention provides a data-storage device. The data-storage device 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. The blocks include a plurality of bad blocks that are labeled as damaged. The controller selects one of the bad blocks as a test block, and reads the pages in the test block to determine whether the pages in the test block are damaged. When all the pages in the test block are undamaged, the controller labels the test block as a spare block.