# US 2006/0218437 A1 · Data storage device, and method for rewriting data in nonvolatile memory

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2006/0218437 A1
- Document ID: US20060218437A1
- Status: Published application
- Kind: A1
- Application number: 11/388,640
- Filed: 2006-03-23
- Published: 2006-09-28
- Earliest claimed: 2005-03-23
- Assignees: Hitachi Global Storage Technologies Netherlands B.V.
- Inventors: Tadahisa Kawa; Atsushi Kanamaru; Tsuguaki Kowa
- Web page: https://patentgrep.com/patent/US20060218437A1

## CPC

- G11B 20/18: Error detection or correction; Testing {, e.g. of drop-outs}
- G11B 19/044: {by using a data buffer}
- G11B 2020/10777: {instructions or commands}
- G11B 2220/2516: Hard disks
- G11B: INFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER (recording measured values in a way that does not require playback through a transducer G01D9/00; recording or playback apparatus using mechanically marked tape, e.g. punched paper tape, or using unit records, e.g. punched or magnetically marked cards G06K; transferring data from one type of record carrier to another G06K1/18; circuits for coupling output of reproducer to radio receiver H04B1/20; gramophone pick-ups or like acoustic electromechanical transducers or circuits therefor H04R)

## Abstract

Data in a nonvolatile memory included in a data storage device is rewritten with higher security. According to one embodiment of the present invention, if an error is included in data stored in a nonvolatile semiconductor memory, the HDD rewrites correct data to the nonvolatile semiconductor memory. In particular, during the execution sequence of a write command, the HDD executes rewrite processing of control data stored in the nonvolatile semiconductor memory. More specifically, data is rewritten during a specified period of time that falls within a period of time starting from a start notification of write-data transfer processing that is sent from the HDD to the host, until a command completion notification. Since there is a very small possibility that the power of the host may be interrupted during this specified period of time, it is possible to securely rewrite data.

## Claims

### Claim 1

A data storage device that writes, to a medium, write data transferred from a host, said data storage device comprising:
a nonvolatile memory configured to store data, said nonvolatile memory being electrically rewritable; and
a controller configured to perform control operation according to data stored in the nonvolatile memory;
wherein said controller executes rewrite processing of data stored in the nonvolatile memory during a specified period of time that falls within a period of time starting from a write-data transfer processing start notification sent to a host until a command completion notification sent to the host.

### Claim 2 (depends on 1)

A data storage device according to claim 1, wherein:
when data is read out from the nonvolatile memory and is loaded into a volatile memory, said controller executes error-correction processing and registers information about an error location thereof, and then performs rewrite processing of data corresponding to the registered error location on the nonvolatile memory.

### Claim 3 (depends on 1)

A data storage device according to claim 1, wherein:
after initialization processing performed when power is turned ON, said controller executes rewrite processing of data stored in the nonvolatile memory in an execution sequence of a first write command.

### Claim 4 (depends on 1)

A data storage device according to claim 1, wherein:
after completion of the rewrite processing, said controller returns the command completion notification to the host.

### Claim 5 (depends on 4)

A data storage device according to claim 4, wherein:
if a write cache of the data storage device is in an ON state, when all write data of the rewrite processing has been stored in a buffer, the rewrite processing is completed; and
if the write cache of the data storage device is in an OFF state, when all write data of the rewrite processing has been written to the medium, the rewrite processing is completed.

### Claim 6 (depends on 1)

A data storage device according to claim 1, wherein:
said controller starts the rewrite processing of the control data in response to the write-data transfer processing start notification.

### Claim 7

A nonvolatile-memory rewriting method for a data storage device that writes, to a medium, write data transferred from a host, said method comprising:
reading out data from a nonvolatile memory that is electrically rewritable, and loading the data into a volatile memory, and then registering error information about the loaded data; and
during a specified period of time that falls within a period of time starting from a write-data transfer processing start notification sent to a host until a command completion notification sent to the host, executing rewrite processing of the data stored in the nonvolatile memory with reference to the error information.

### Claim 8 (depends on 7)

A nonvolatile-memory rewriting method for a data storage device, according to claim 7, wherein:
when the data is loaded into the volatile memory, data correction processing is executed, and error-address information is registered.

### Claim 9 (depends on 7)

A nonvolatile-memory rewriting method for a data storage device, according to claim 7, wherein:
if said rewrite processing is not completed in the timing when the command completion notification is ready to be transmitted to the host, the command completion notification is transmitted to the host after the completion of the rewrite processing.

### Claim 10 (depends on 9)

A nonvolatile-memory rewriting method for a data storage device, according to claim 9, wherein:
if a write cache of the data storage device is in an ON state, when all write data of the rewrite processing has been stored in a buffer, the rewrite processing is completed; and
if the write cache of the data storage device is in an OFF state, when all write data of the rewrite processing has been written to the medium, the rewrite processing is completed.

### Claim 11 (depends on 7)

A nonvolatile-memory rewriting method, used in a data storage device, according to claim 7, wherein:
after initialization processing performed when power is turned ON, said rewrite processing is executed in an execution sequence of a first write command.

### Claim 12

A magnetic disk drive comprising:
a magnetic disk to which write data transferred from a host is written;
a nonvolatile semiconductor memory configured to store control data, said nonvolatile semiconductor memory being electrically rewritable; and
a controller configured to perform control operation according to control data stored in the nonvolatile semiconductor memory;
wherein:
when data is read out from the nonvolatile memory and the data is loaded into a volatile memory, said controller executes error-correction processing, and registers information about an error location thereof; and
after initialization processing performed when power is turned ON, in an execution sequence of a first write command, said controller performs rewrite processing of data corresponding to the registered error location on the nonvolatile memory during a specified period of time that falls within a period of time starting from a write-data transfer processing start notification sent to a host until a command completion notification sent to the host.

### Claim 13 (depends on 12)

A magnetic disk drive according to claim 12, wherein:
after completion of the write command processing, said controller judges whether or not the rewrite processing to the nonvolatile memory has been completed, and after the rewrite processing is completed, said controller transmits the command completion notification to the host.

### Claim 14 (depends on 13)

A magnetic disk drive according to claim 13, wherein:
if a write cache of the data storage device is in an ON state, when all write data of the rewrite processing has been stored in a buffer, the rewrite processing is completed; and
if the write cache of the data storage device is in an OFF state, when all write data of the rewrite processing has been written to the magnetic disk, the rewrite processing is completed.
