# US 8,578,123 B2 · Defragmentation method for a machine-readable storage device

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

- Number: US 8,578,123 B2
- Document ID: US8578123B2
- Status: Granted
- Kind: B2
- Application number: 13/600,620
- Filed: 2012-08-31
- Published: 2012-12-27
- Granted: 2013-11-05
- Earliest claimed: 2008-12-08
- Assignees: Apacer Technology Inc.
- Applicants: Yu-Hsuan Lee
- Inventors: Yu-Hsuan Lee
- Web page: https://patentgrep.com/patent/US8578123B2

## CPC

- G06F 3/0616: {in relation to life time, e.g. increasing Mean Time Between Failures [MTBF]}
- G06F 3/064: {Management of blocks}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F 2206/1004: Defragmentation
- G06F 2212/7205: Cleaning, compaction, garbage collection, erase control
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A defragmentation method includes the steps of: a) configuring a processor to determine a type of a target machine-readable storage device coupled electrically to the processor; b) configuring the processor to select, from among a plurality of pre-established defragmentation algorithms respectively for performing defragmentation on different types of machine-readable storage devices, a defragmentation algorithm that corresponds to the type of the target machine-readable storage device as determined in step a); and c) configuring the processor to perform defragmentation on the target machine-readable storage device according to the defragmentation algorithm as selected in step b).

## Claims

### Claim 1

A defragmentation method, comprising the steps of:
determining a type of a storage device; and
selecting, from among a plurality of defragmentation algorithms for performing defragmentation on a plurality of types of storage devices, a defragmentation algorithm that corresponds to the type of the storage device.

### Claim 2 (depends on 1)

The defragmentation method of claim 1, further comprising the step of:
configuring one of the plurality of defragmentation algorithms for performing defragmentation on storage device of one of volatile type, solid-state type, flash memory type, and hard disk type.

### Claim 3 (depends on 1)

The defragmentation method of claim 1, further comprising the steps of:
configuring one of the plurality of defragmentation algorithms for performing defragmentation on storage device of a type having a first limit on the number of access times; and
configuring another one of the plurality of defragmentation algorithms for performing defragmentation on storage device of a type having a second limit on the number of access times, the second limit being greater than the first limit.

### Claim 4 (depends on 1)

The defragmentation method of claim 1, further comprising the steps of:
configuring one of the plurality of defragmentation algorithms for performing defragmentation on storage device of a type having a shorter service life; and
configuring another one of the plurality of defragmentation algorithms for performing defragmentation on storage device of a type having a longer service life.

### Claim 5 (depends on 1)

The defragmentation method of claim 1, further comprising the steps of:
configuring one of the plurality of defragmentation algorithms for performing defragmentation on storage device of a type having a faster access speed; and
configuring another one of the plurality of defragmentation algorithms for performing defragmentation on storage device of a type having a slower access speed.

### Claim 6 (depends on 1)

The defragmentation method of claim 1, further comprising the steps of:
configuring one of the plurality of defragmentation algorithms for performing defragmentation on storage device of a type having a greater capacity; and
configuring another one of the plurality of defragmentation algorithms for performing defragmentation on storage device of a type having a smaller capacity.

### Claim 7 (depends on 1)

The defragmentation method of claim 1, further comprising the steps of:
configuring one of the plurality of defragmentation algorithms for performing defragmentation on storage device of a type having a first interface; and
configuring another one of the plurality of defragmentation algorithms for performing defragmentation on storage device of a type having a second interface different from the first interface.

### Claim 8 (depends on 1)

The defragmentation method of claim 1, further comprising the steps of:
configuring one of the plurality of defragmentation algorithms for performing defragmentation on storage device of a type having a first identification code; and
configuring another one of the plurality of defragmentation algorithms for performing defragmentation on storage device of a type having a second identification code different from the first identification code.

### Claim 9 (depends on 1)

The defragmentation method of claim 1, further comprising the step of:
configuring one of the plurality of defragmentation algorithms for performing defragmentation on storage device of a type associated with one of a predefined access speed, a predefined capacity, a predefined interface, and a predefined identification code.

### Claim 10 (depends on 1)

The defragmentation method of claim 1, further comprising the step of:
configuring one of the plurality of defragmentation algorithms to minimize the number of access times during defragmentation for performing defragmentation on storage device of a type having a limit on the number of access times.

### Claim 11

A defragmentation method, comprising the steps of:
determining a type of a storage device; and
selecting, from among a plurality of defragmentation conditions associated with performing defragmentation on a plurality of types of storage devices, a defragmentation condition that corresponds to the type of the storage device.

### Claim 12 (depends on 11)

The defragmentation method of claim 11, further comprising the step of:
selecting, from among a plurality of defragmentation algorithms for performing defragmentation on a plurality of types of storage devices, a defragmentation algorithm that corresponds to the type of the storage device.

### Claim 13 (depends on 11)

The defragmentation method of claim 11, further comprising the step of:
configuring one of the plurality of defragmentation conditions to be associated with performing defragmentation on storage device of one of volatile type, solid-state type, flash memory type, and hard disk type.

### Claim 14 (depends on 11)

The defragmentation method of claim 11, further comprising the steps of:
configuring one of the plurality of defragmentation conditions to be associated with performing defragmentation on storage device of a type having a first limit on the number of access times; and
configuring another one of the plurality of defragmentation conditions to be associated with performing defragmentation on storage device of a type having a second limit on the number of access times, the second limit being greater than the first limit.

### Claim 15 (depends on 11)

The defragmentation method of claim 11, further comprising the steps of:
configuring one of the plurality of defragmentation conditions to be associated with performing defragmentation on storage device of a type having a shorter service life; and
configuring another one of the plurality of defragmentation conditions to be associated with performing defragmentation on storage device of a type having a longer service life.

### Claim 16 (depends on 11)

The defragmentation method of claim 11, further comprising the steps of:
configuring one of the plurality of defragmentation conditions to be associated with performing defragmentation on storage device of a type having a faster access speed; and
configuring another one of the plurality of defragmentation conditions to be associated with performing defragmentation on storage device of a type having a slower access speed.

### Claim 17 (depends on 11)

The defragmentation method of claim 11, further comprising the steps of:
configuring one of the plurality of defragmentation conditions to be associated with performing defragmentation on storage device of a type having a larger capacity; and
configuring another one of the plurality of defragmentation conditions to be associated with performing defragmentation on storage device of a type having a smaller capacity.

### Claim 18 (depends on 11)

The defragmentation method of claim 11, further comprising the steps of:
configuring one of the plurality of defragmentation conditions to be associated with performing defragmentation on storage device of a type having a first interface; and
configuring another one of the plurality of defragmentation conditions to be associated with performing defragmentation on storage device of a type having a second interface.

### Claim 19 (depends on 11)

The defragmentation method of claim 11, further comprising the steps of:
configuring one of the plurality of defragmentation conditions to be associated with performing defragmentation on storage device of a type having a first identification code; and
configuring another one of the plurality of defragmentation conditions to be associated with performing defragmentation on storage device of a type having a second identification code.

### Claim 20 (depends on 11)

The defragmentation method of claim 11, further comprising the step of:
configuring one of the plurality of defragmentation conditions to be associated with performing defragmentation on storage device of a type associated with one of a predefined access speed, a predefined capacity, a predefined interface, and a predefined identification code.

### Claim 21

A defragmentation method, comprising the steps of:
determining whether a file for defragmentation is stored under a predefined access path in a storage device; and
upon determining that the file for defragmentation is stored under the predefined access path in the storage device, performing defragmentation on the file.

### Claim 22

A defragmentation method, comprising the steps of:
determining whether a file for defragmentation stored in a storage device is of a predefined file type; and
upon determining that the file for defragmentation stored in the storage device is of the predefined file type, performing defragmentation on the file.
