Methods of sanitizing a flash-based data storage device
View Patent ↗A data storage device includes one or more non-volatile, blockwise erasable data storage media and a mechanism for sanitizing the media in response to a single external stimulus or in response to a predetermined physical or logical condition. Optionally, only part of the media is sanitized, at a granularity finer than the blocks of the medium. Setting a flag in an auxiliary nonvolatile memory enables an interrupted sanitize to be detected and restarted. Optionally, a “death certificate” verifying the sanitizing is issued. Preferably, the media are configured in a manner that allows atomic operations of the sanitizing to be effected in parallel.
1. A method of cleaning a medium wherein data are stored, the medium including a plurality of blocks and that is only block-wise erasable, each block being bounded by a respective first block boundary and a respective second block boundary, the method comprising the steps of:
(a) selecting a portion of the medium to sanitize, said portion being bounded by a first portion boundary and a second portion boundary, at least one of said portion boundaries being within one of the blocks;
(b) for each of said portion boundaries that is within one of the blocks, copying the data, that is stored in said one block outside of said portion, to a second block; and
(c) sanitizing every block spanned by said portion.
2. The method of claim 1 , wherein said second block is outside of said portion.
3. The method of claim 1 , further comprising the step of:
(d) for each of said portion boundaries that is within said one block, sanitizing said second block prior to said copying to said second block.
4. The method of claim 1 , further comprising the step of:
(d) sanitizing at least one free block that is outside of said portion.