Methods of sanitizing a flash-based data storage device

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.

FIELD AND BACKGROUND OF THE INVENTION

The present invention relates to nonvolatile storage devices and, more particularly, to methods for sanitizing a flash-based data storage device and to a flash-based data storage device particularly adapted to the implementation of these methods.

For as long as data has been stored digitally, there has been a need to erase classified data, from the medium in which they are stored, in a manner that renders the data unrecoverable. Such an erasure is called “sanitizing” the medium.

The most common nonvolatile data storage devices use magnetic data storage media, in which data bits are stored as magnetized regions of a thin ferromagnetic layer. It is difficult to sanitize such a medium. The usual method of sanitizing such a medium is to write over the data many times with different data patterns. This method requires a long time (minutes to hours) to perform, and cannot be guaranteed to render the old data unrecoverable. A sufficiently well-equipped laboratory can reconstruct data that were overwritten many times. Alternatively, the medium can be sanitized by degaussing it. Degaussing devices are cumbersome, power-hungry devices that are external to the system whose data storage medium is to be sanitized. Degaussing is considered safer than overwriting multiple times but is still not foolproof. The only foolproof way to sanitize a magnetic storage medium is to destroy it physically, which obviously renders the medium no longer useable to store new data.

More recently, a form of EEPROM (electronically erasable programmable read-only memory) non-volatile memory called “flash” memory has come into widespread use.FIG. 1is a high level schematic block diagram of a generic flash-based data storage device10for storing data in one or more flash media12, for example NAND flash media. The operation of device10is controlled by a microprocessor-based controller14with the help of a random access memory (RAM)16and an auxiliary non-volatile memory18. Flash device10is used by a host device24to store data in flash media12. Flash device10and host device24communicate via respective communication ports20and26and a communication link24. Typically, for backwards compatibility with host devices24whose operating systems expect magnetic storage devices, flash device10emulates a block memory device, using filmware stored in auxiliary non-volatile memory18that implements the methods taught by Ban in U.S. Pat. No. 5,404,485 and U.S. Pat. No. 5,937,425, both of which patents are incorporated by reference for all purposes as if fully set forth herein.

The “atomic” operations that controller14performs on flash media12include read operations, write operations and erase operations. One important property of flash media12that is relevant to the present invention is that the granularity of the erase operations is larger than the granularity of read and write operations. For example, a NAND flash medium typically is read and written in units called “pages”, each of which typically includes between 512 bytes and 2048 bytes, and typically is erased in units called “blocks”, each of which typically includes between 16 and 64 pages.

Various US government agencies (primarily military) have defined standards for sanitizing flash media12. According to DoD 5220.22-M National Industrial Security Program Operating Manual (NISPOM), every byte in flash media12is overwritten with the same character, and then flash media12are erased. According to National Security Agency (NSA) Manual 130-2, US Air Force System Security Instructions (AFSSI) 5020 and US Navy Staff Office Publication (NAVSO) 5239, “Information System Security Program Guidelines” (INFOSEC), flash media12are first erased and then are overwritten with random data. According to US Army Regulation 380-19, Information System Security, flash media12are first erased and then overwritten twice. In the first overwrite, flash media12are overwritten with random data. In the second overwrite, every byte in flash media12is overwritten with the same character. Finally, flash media12are erased a second time.

SUMMARY OF THE INVENTION

The present invention defines several improvements to the prior art methods of sanitizing flash media and to the flash devices being sanitized. Although the description herein is directed towards the sanitation of flash media, the scope of the present invention extends to all non-volatile data storage media to which the principles of the present invention are applicable.

According to the present invention there is provided 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 including the steps of: (a) selecting a portion of the medium to sanitize, the portion being bounded by a first portion boundary and a second portion boundary, at least one of the portion boundaries being within one of the blocks; (b) for each of the portion boundaries that is within one of the blocks, copying the data, that is stored in the one block outside of the portion, to a second block; and (c) sanitizing every block spanned by the portion.

According to the present invention there is provided a data storage device including: (a) a data storage medium; and (b) a mechanism for sanitizing the data storage medium in response to a single external stimulus.

According to the present invention there is provided a method of cleaning a data storage medium, including the steps of: (a) setting a flag that indicates that the data storage medium is to be sanitized; and (b) subsequent to the setting, beginning a first sanitizing of the data storage medium.

According to the present invention there is provided a data storage device including: (a) a data storage medium; and (b) a controller for sanitizing the data storage medium upon detection of a predetermined condition.

According to the present invention there is provided a method of cleaning a data storage medium, including the steps of: (a) sanitizing the data storage medium; and (b) subsequent to the sanitizing, setting a medium-is-sanitized flag.

According to the present invention there is provided a data storage device including: (a) at least one plurality of data storage media; and (b) a controller for, for each at least one plurality of the data storage media: (i) writing data, substantially simultaneously, to at least a portion of each of the data storage media of the each plurality, and (ii) erasing, substantially simultaneously, at least a portion of each of the data storage media of the each plurality.

According to the present invention there is provided a method of cleaning a data storage device that includes at least one plurality of data storage media, including the steps of: (a) selecting a sanitize procedure, the sanitize procedure including at least one atomic operation; and (b) for each at least one plurality of data storage media: applying the selected sanitize procedure to the data storage media of the each plurality, with each at least one atomic operation being applied substantially simultaneously to the data storage media of the each plurality.

The first improvement of the present invention is directed towards selectively sanitizing only a portion of a flash medium, or more generally, only a portion of a data storage medium that is erased in blocks and that is read and written in units that are smaller than the blocks. Specifically, this method is directed towards sanitizing a portion of the medium, one or both of whose boundaries do not coincide with block boundaries. For each portion boundary that falls between the two boundaries of one of the blocks, the data stored in that block that fall outside the portion to be sanitized first are copied to a second block. Only then are the block or blocks, that are spanned by the portion of the medium to be sanitized, actually sanitized. For this to work, the second block must be outside (i.e., not spanned by) the portion to be sanitized.

Preferably, the second block is itself sanitized before the data from just beyond the portion to be sanitized are copied to the second block.

Preferably, at least one free block that is outside the portion to be sanitized also is sanitized.

The second improvement of the present invention is a data storage device that includes a (preferably non-volatile) data storage medium and a mechanism for sanitizing the data storage medium in response to a single external stimulus, as opposed to, for example, a sequence of several commands from host device24that instruct controller14to implement one of the sanitization standards discussed above. Although these standards have been in use at least since 1990, such a data storage device has not been implemented heretofore.

According to one aspect of the second improvement, the mechanism includes an interface to a host system, and the external stimulus is a single “sanitize” command from the host system.

According to another aspect of the second improvement, the mechanism includes an interrupt handler, and the external stimulus is a hardware interrupt. To this end, the data storage device also includes an interrupt initiator for providing the hardware interrupt. Preferably, the interrupt initiator includes a wireless transmitter for transmitting the hardware interrupt, and the interrupt handler includes a wireless receiver for receiving the transmitted hardware interrupt.

The third improvement of the present invention is a method of sanitizing a data storage medium that can be restarted after being interrupted, for example by a power failure. Before starting a first sanitizing of the data storage medium, a flag is set that indicates that the data storage medium is to be sanitized. Upon completion of the first sanitizing, the flag is cleared.

Preferably, before the beginning of the first sanitizing, at least one sanitizing parameter is stored. Upon completion of the first sanitizing, the at least one parameter is erased.

When the data storage medium is powered up, the flag is checked. If the flag is set, indicating that the first sanitizing was interrupted, a second sanitizing of the data storage medium is begun. Upon completion of the second sanitizing, the flag is cleared. Preferably, if the at least one sanitizing parameter was stored before beginning the first sanitizing, then upon completion of the second sanitizing, the at least one sanitizing parameter is erased.

The fourth improvement of the present invention is a data storage device that supports conditional sanitization. The device includes a (preferably non-volatile) data storage medium and a controller for sanitizing the data storage medium upon detection of a predetermined condition.

Preferably, the condition is a physical condition, such as an interruption of power or an improper shutdown, or else a logical condition. Preferably, the logical condition is an indication that an unauthorized access of the data storage medium has been attempted. One example of such a logical condition is more than a predetermined number of accesses (e.g., reads or writes) to a preselected datum, for example a FAT table entry, that is stored in the data storage medium. Another example of such a logical condition is more than a predetermined number of accesses (e.g., reads, writes or erases) to a preselected portion of the data storage medium.

The fifth improvement of the present invention is a method of sanitizing a data storage medium that supports the provision of a “death certificate” for the sanitized medium. A “medium is sanitized” flag is set after the data storage medium is sanitized. Once the flag has been set, it can be verified that the data storage medium has been sanitized by checking that the flag is indeed set. Preferably, the verifying also includes checking at least a portion of the data storage medium for a data pattern stored therein (including “no data” if the last step of the sanitizing process was an erase) that indicates that the data storage medium has been sanitized. Most preferably, the entire data storage medium is checked for a data pattern stored therein that indicates that the data storage medium has been sanitized.

Preferably, if the verifying determines that the data storage medium has in fact been sanitized, a death certificate for the data storage medium is issued. Most preferably, the death certificate is based on a verification seed and on a serial number of the data storage device that includes the data storage medium.

The sixth improvement of the present invention is a data storage device that supports parallel sanitizing, and a method of sanitizing the device.

The device includes at least one plurality, and preferably more than one plurality, of data storage media, and a controller for writing data, substantially simultaneously, to at least a portion of each data storage medium of each plurality, and for erasing, substantially simultaneously, at least a portion of each data storage medium of each plurality. Note that all of the sanitization standards discussed above include both writes and erases. Preferably, the device also includes, for each plurality of data storage media, at least one respective bus that operationally connects the data storage media of the plurality to the controller.

Preferably, the data storage media are non-volatile. Most preferably, the data storage media are NAND flash chips.

Preferably, the data storage media are page-wise writable. Preferably, the portion of each data storage medium to which data are written during a substantially simultaneous write is a single page of the data storage medium. Alternatively, the portion of each data storage medium to which,data are written during a substantially simultaneous write is a plurality of pages of the data storage medium. Another alternative is to write the data to all of each data storage medium of the plurality, i.e., to every page of each data storage medium of the plurality, not just to portions of the data storage media, during a substantially simultaneous write.

Preferably, the data storage media are block-wise erasable. Preferably, the portion of each data storage medium that is erased during a substantially simultaneous erase is a single block of the data storage medium. Alternatively, the portion of each data storage medium that is erased during a substantial simultaneous erase is a plurality of blocks of the data storage medium. Another alternative is to erase all of each data storage medium of the plurality, i.e., to erase every block of each data storage medium, not just portions of the data storage media, during a substantially simultaneous erase.

The method of the sixth improvement has two steps. In the first step, a sanitize procedure for the data storage device is selected. This procedure includes at least one atomic operation. Typically, as in the sanitize standards discussed above, the atomic operations are writes and erases, although the procedure could include reads, for example if the procedure is directed at only a portion of each data storage medium. In the second step, the procedure is applied to the data storage media, with each atomic operation being applied substantially simultaneously to the data storage media of each plurality of data storage media.

The substantially simultaneous atomic operation may be a substantially simultaneous write of data to a single page of each data storage medium of a plurality of data storage media, a substantially simultaneous write of data to a plurality of pages of each data storage medium of a plurality of data storage media, or a substantially simultaneous write of data to all (i.e., to every page) of each data storage medium of a plurality of data storage media. The substantially simultaneous atomic operation may be a substantially simultaneous erase of a single block of each data storage medium of a plurality of data storage media, a substantially simultaneous erase of a plurality of blocks of each data storage medium of a plurality of data storage media, or a substantially simultaneous erase of all (i.e., of every block) of each data storage medium of a plurality of data storage media.

DESCRIPTION OF THE PREFERRED EMBODIMENTS

The present invention is of improved methods of sanitizing data storage media, and of data storage devices that support these methods. Specifically, the present invention can be used to sanitize flash-based data storage media such as NAND flash chips.

The principles and operation of data storage media sanitization according to the present invention may be better understood with reference to the drawings and the accompanying description.

Referring again to the drawings,FIG. 2is a high-level schematic block diagram of a flash-based data storage device30of the present invention, coupled to host device24ofFIG. 1. Most of the high level components of device30are the same as in prior art device10, although the controller and the auxiliary non-volatile memory of device30are given different reference numerals (34and38respectively) to indicate that these components are different functionally, if not structurally, from controller14and auxiliary non-volatile memory18of device10. Controller34and auxiliary non-volatile memory38have all the functionality of prior art controller14and prior art auxiliary non-volatile memory18, and also functionality of the present invention, as discussed below.

In place of flash media12, device30is shown as including a flash array32that is illustrated in more detail inFIG. 3. Flash array32includes several subarrays40A through40N of NAND flash chips42. Each subarray40includes the same number (between 2 and 64) of NAND flash chips42. In the illustrated example, each subarray40includes four NAND flash chips42. NAND flash chips42of each subarray40communicate with controller34via a corresponding set44of buses, either four 32-bit buses or two 64-bit buses per set.

For reference,FIG. 4shows the structure of a NAND flash chip42. NAND flash chip42includes between 1024 and 8192 blocks46. Every NAND flash chip42of a particular subarray40includes the same number of blocks46. Every block46includes the same number of pages48, either 16 pages48per block46, 32 pages48per block46or 64 pages48per block46. Every page48includes the same number of bytes, which number could be any multiple of 512 between 512 and 2048. As described above, the erasable units of NAND flash chip42are blocks46and the readable and writable units of NAND flash chip42are pages48.

Typical NAND flash chips42Support one or both of two kinds of erase commands. A block erase command erases a designated block46. A multi-block erase command erases a designated group of blocks46, typically four blocks46. Similarly, typical NAND flash chips42support one or both of two kinds of write commands. A page write command writes one page worth of data from RAM16(used as a buffer) to a designated page of a designated block46. A multi-page write command writes several pages, typically four pages, worth of data from RAM16to several designated pages of a designated block46.

While a NAND flash chip is executing an erase or write command, the NAND flash chip sets its status to “busy”. Upon completing the execution of the command, the NAND flash chip sets its status to “ready”. According to the prior art, when prior art flash media12are NAND flash chips, after prior art controller14issues a write or erase command to any particular NAND flash chip, prior art controller14waits for that NAND flash chip's status to change from “busy” to “ready” before issuing the next command of the same type (erase or write). The architecture of flash array32, as illustrated inFIG. 3, allows enhanced parallelism in sanitizing flash array32. Specifically, within each subarray40, controller34issues, via buses44, successive erase or write commands to all NAND flash chips42of that subarray40, without waiting for any NAND flash chip42to transit from “busy” status to “ready” status before issuing the erase or write command to the next NAND flash chip42. In this manner, all NAND flash chips42of a subarray40are erased, or written to, substantially simultaneously. As a result, with N NAND flash chips42per subarray40, sanitizing flash array32is almost N times faster than sanitizing comparable prior art flash media12.

For example, sanitizing flash array32according to the NISPOM standard includes two phases, a write phase and an erase phase. For definiteness, this example uses page write and block erase commands.

In the write phase, one page's worth of the overwrite character is loaded into a one-page-long buffer in RAM16. The remainder of the phase consists of four nested loops: an outer loop, an intermediate loop within the outer loop, and two inner loops within the intermediate loop. The outer loop is over page number. The intermediate loop is over subarrays40. The first inner loop is over NAND flash chips42of the current subarray40: in each cycle of the loop, controller34issues a page write command to copy the buffer in RAM16to the current page48of the current NAND flash chip42, without having waited for the immediately preceding NAND flash chip42to enter “ready” status. The second inner loop also is over NAND flash chips42of the current subarray40: in each cycle of the loop, controller34inspects the status of the current NAND flash chip42. The second inner loop is repeated until all NAND flash chips42of the current subarray40are in “ready” status.

The erase phase also has four nested loops: an outer loop, an intermediate loop within the outer loop, and two inner loops within the intermediate loop. The outer loop is over block number. The intermediate loop is over subarrays40. The first inner loop is over NAND flash chips42of the current subarray40: in each cycle of the loop, controller34issues a block erase command to erase the current block46of the current NAND flash chip42, without having waited for the immediately preceding NAND flash chip42to enter “ready” status. The second inner loop also is over NAND flash chips42of the current subarray40: in each cycle of the loop, controller34inspects the status of the current NAND flash chip42. The second inner loop is repeated until all NAND flash chips42of the current subarray40are in “ready” status.

Sanitizing flash array32with multi-page write commands and multi-block erase commands is similar, with the outer loops being over groups of pages48and blocks46instead of over individual pages48and blocks46.

NOR flash chips support, in addition to block erase page write commands, chip erase commands that erase entire chips, not just individual blocks/pages. It is expected that NAND flash chips soon will be available that support both such chip erase commands and also chip write commands that write entire chips; and that NOR flash chips also soon will be available that support both chip erase commands and chip write commands. When such NAND flash chips are available, sanitizing flash array32still will be as described above, except that there will be no outer loops over (groups of) pages or over (groups of) blocks.

Returning toFIG. 2, device30also includes an interrupt handler50, which is shown separate from controller34but which alternatively could be integrated in controller34. A user of device30initiates sanitizing of flash array32by using an interrupt initiator52to signal interrupt handler50. This signal is a hardware interrupt that causes controller34to immediately stop whatever activity controller34is currently engaged in and to start sanitizing flash array32. In one preferred embodiment of device30, interrupt initiator52is an electrical switch that is operated manually by the user and that is connected to interrupt handler50by wires. In another preferred embodiment of device30, interrupt initiator52is an electrical system that automatically initiates sanitizing of flash array32in an emergency. In yet another preferred embodiment of device30, which is the embodiment actually illustrated inFIG. 2, interrupt initiator52is a manually or automatically operated transmitter of wireless electromagnetic signals and interrupt handler50is a receiver of those signals. Interrupt initiator52transmits an appropriate electromagnetic signal54to interrupt handler50to initiate sanitizing of flash array32. Suitable communication standards for interrupt initiator52and interrupt handler50in this preferred embodiment include Bluetooth for radio frequency signals and IrDA for infrared signals.

More generally, according to the present invention, sanitizing of flash array32is initiated by a single external stimulus. The hardware interrupt initiated by interrupt initiator52is one example of such an external stimulus. Another example of such an external stimulus is a software interrupt in the form of a “sanitize” command received by controller34from host24. This is in contrast to the prior art ofFIG. 1, in which host24must send to device10the explicit sequence of write and erase commands that sanitize flash media12. Although the various standards described above for sanitizing flash media12have been in use since 1990, the data storage device of the present invention is the first such data storage device whose data storage medium can be sanitized in response to a single external stimulus.

To enable sanitizing of flash array32in response to a hardware interrupt, parameters that describe a default sanitize method (either one of the standard methods described above or a user-defined method) are stored in non-volatile memory38. When interrupt handler50receives the hardware interrupt signal, controller34reads these parameters from non-volatile memory38and proceeds accordingly. In the case of a sanitize initiated by a software interrupt, the sanitize command from host24optionally is optionally accompanied by sanitize parameters that override the default sanitize parameters that are stored in non-volatile memory38.

Controller34also sanitizes flash array32upon detection of a predetermined condition. This condition may be either a physical condition or a logical condition.

One typical physical condition is an interruption of power that is detected by a reset chip (not shown) in device30. Upon detection of the interruption of power, the reset chip initiates an interrupt via interrupt handler50. Controller34then sanitizes flash array32either upon the next power-up or, alternatively, immediately using a back-up power source (not shown). Another typical physical condition is an improper shutdown of device30.

The logical condition typically is a condition that suggests an attempted unauthorized access of the data stored in flash array32. One example of such a logical condition is that a predetermined datum, such as a FAT table entry, has been accessed (read and/or written) more than a predetermined number of times. Another example of such a logical condition is that a predetermined portion, such as a particular page48or block46, of flash array32has been accessed (read, written or erased) more than a predetermined number of times.

Optionally, a wireless interrupt initiator52and interrupt handler50are configured to enable a user, not just to initiate the sanitizing of flash array32, but to handle all aspects of the sanitizing of flash array32. For example, a suitably configured interrupt initiator52and interrupt handler50can be used to set the default sanitize parameters, to override the default sanitize parameters, or to interrogate the sanitize status (sanitize not started, sanitize in progress or sanitize completed) of device30.

Another important aspect of the present invention is the ability to sanitize only a selected part of flash array32, at a granularity finer than the level of blocks46. This ability relies on the methodology for managing flash data storage media that is taught in U.S. Pat. No. 5,404,485 and U.S. Pat. No. 5,937,425. According to this prior art methodology, controller34maintains a table, either in RAM16or in non-volatile memory18or even (see U.S. Pat. No. 5,404,485) in flash array32itself, that maps logical blocks and logical pages addressed by host24into the physical blocks and physical pages in flash array32in which data actually are stored. For example, a page48of a NAND flash chip42can be written to only a small (typically 3 to 10) number of times before that page must be erased in order to be rewritten. Therefore, it often happens that in order to replace a page48of old data with new data, controller34copies all the data stored in the physical block46in which the target page48is located, except for the data in the target page48, to all but one of the pages48a so-called “free” block, i.e., a physical block46that has not been written to since the last time it was erased, and writes the new data to the remaining page48of the new block46. Meanwhile, the table that maps logical blocks and pages to physical blocks and pages is updated so that the logical blocks and pages that were associated with the old physical block46and its pages48now are associated with the new physical block46and its pages48. This all is totally transparent to host24. As far as host24is concerned, the new data were written to the same (logical) page as the old data.

It now will be explained how this methodology is used to facilitate partial sanitizing at a finer granularity than the level of physical blocks46. For this purpose, the notation (b,p) is used to represent the p-th page48of the b-th block46, and the notation (b,) is used to represent the b-th block46. It is assumed that every block46has P pages48, indexed 0 through P−1.

Suppose that it is desired to sanitize pages (bi,pi) through (bf,pf), where bi≦bf. (The subscript “i” means “initial”. The subscript “f” means “final”.) If pi=0 and pf=P−1, then all that is necessary is to sanitize blocks (bi,) through (bf,) according to the standards described above, which include erasures of entire blocks46, because the boundaries of the portion of flash array32that is to be sanitized coincide with block boundaries: the initial boundary of the first page to be sanitized coincides with the initial boundary of the first block and the final boundary of the last page to be sanitized coincides with the final boundary of the last block. But if pi>0, then the initial boundary of the first page to be sanitized falls between the two boundaries of the first block, and the data in pages (bi,0) through (bi,pi−1) must be preserved. Similarly, if pf<P−1 then the final boundary of the last page to be sanitized falls between the boundaries of the last block, and the data in pages (bf,pf+1) through (bf,P−1) must be preserved.

Therefore, if pi>0, pages (bi,0) through (bi,pi−1l) first are copied to a free block46. Similarly, if pf<P−1, pages (bf,pf+1) through (bf,P−1) first are copied to a free block46. Only then are blocks (bi,) through (bf,), that span the targeted portion of flash array32, sanitized. Most preferably, the free block46to which pages (bi,0) through (bi,pi−1) are copied is itself sanitized before the pages are copied, and the free block46to which pages (bf,pf+1) through (bf,P−1) are copied is itself sanitized before the pages are copied. Also most preferably, after blocks (bi,) through (bf,) are sanitized, all the remaining free blocks also are sanitized, to make sure that any nominally free blocks that contain out-of-date or superceded classified data are sanitized. Finally, the table that maps logical blocks and pages to virtual blocks and pages is updated to reflect the new physical locations of the data formerly stored in physical pages (bi,0) through (bi,pi−1) and/or in physical pages (bf,pf+1) through (bf,P−1).

Another important aspect of the present invention is the ability to complete a sanitizing that was interrupted by, for example, a power failure. To this end, before starting to sanitize flash array32, controller34sets, in non-volatile memory38, a “sanitize-on” flag that indicates that flash array32is to be sanitized. If the sanitize was initiated by a software interrupt accompanied by sanitize parameters that override the default sanitize parameters, controller34also stores these new sanitize parameters in non-volatile memory38, separately from the default sanitize parameters.

Controller34then starts to sanitize flash array32. After flash array32has been sanitized, controller34clears the sanitize-on flag. If the default sanitize parameters were overridden, controller34also erases the new sanitize parameters.

Whenever device30is powered up, controller34checks the sanitize-on flag. If the sanitize-on flag is set, that indicates that a sanitize of flash array32has been interrupted. Controller34therefore starts to sanitize flash array32, in accordance with the relevant sanitize parameters stored in non-volatile array38. After flash array32has been sanitized, controller34clears the sanitize-on flag. If the default sanitize parameters were overridden, controller34also erases the new sanitize parameters.

The above description applies to resumption of an interrupted sanitize of all of flash array32. An interrupted partial sanitize of flash array32also can be resumed, using techniques adapted from co-pending U.S. patent application Ser. No. 10/298,094, which is incorporated by reference for all purposes as if fully set forth herein. Note that some of these techniques require modification of NAND flash chips42.

Alter flash array32has been sanitized, controller34also sets, in non-volatile memory38, a “medium-is-sanitized” flag that remains set until the next time that data are written to flash array32. The presence of this medium-is-sanitized flag allows the fact that flash array32has been sanitized to be verified: if the medium-is-sanitized flag is set, then flash array32has been sanitized, and if the medium-is-sanitized flag is not set, then flash array32has not been sanitized.

Optionally, a verification level parameter is stored in non-volatile memory38. The values of this verification level parameter are indicative of one of three different verification levels:

Level 1: check only the medium-is-sanitized flag, as described above.

Level 2: as in level 1, but also check a predetermined portion of flash array32, for example the first page48of every block46, for the presence of the data pattern that would be expected therein if those pages48actually have been sanitized. For example, if flash array32was sanitized according to the standard of US Army Regulation 380-19, every byte of those pages48should contain the same character.

Level 3: as in level 2, but check all of flash array32for the presence of the expected data pattern.

Optionally, a sanitize-verification-seed parameter is used to compute a “death certificate” for device30. This parameter is either stored in non-volatile memory38or received from the external device (host24or a suitably configured wireless interrupt initiator52) that requests the verification of the sanitizing of flash array32. If, as checked according to the verification level determined by the verification level parameter, flash array32indeed has been sanitized, then a “death certificate” is computed, from the sanitize-verification seed and from the serial number of device30(which also is stored in nonvolatile memory38), using a secret algorithm that is pre-defined by the user. The death certificate then is transmitted to the external device that requested the verification.