Disk sector
From Wikipedia, the free encyclopedia
It has been suggested that this article or section be merged into Cylinder-head-sector. (Discuss) |
In the context of computer disk storage, a sector is a subdivision of a track (Figure 1, item A) [1] on a magnetic disk or optical disc. Each sector stores a fixed amount of data. The typical formatting of these media provides space for 512 bytes (for magnetic disks) or 2048 bytes (for optical discs) of user-accessible data per sector.
Mathematically, the word sector means a portion of a disk between a center, two radii and a corresponding arc (see Figure 1, item B), shaped like a slice of a pie. Thus, the common disk sector (Figure 1, item C) actually refers to the intersection of a track and mathematical sector.
Early on in various computing fields, the term block was used for this small chunk of data, but sector appears to have become more prevalent. One quite probable reason for this is the fact block has often been applied to data chunks of varying sizes for many types of data streams, rather than being limited to the smallest accessible amount of data on a medium. For example, the Linux program dd allows one to set the block size to be used during execution with the parameter bs=bytes
. But doing so never changes the actual sector size of a medium, only the size of the blocks that dd
will manipulate.
[edit] References
- ^ Such a definition was already being used in 1994 by the ANSI Accredited Standards Committee (ASC) X3 which included, in their ATA-1 X3T10, Revision 4c document, the following definitions: "3.1.3 data block. This term describes a data transfer, and is typically a single sector, except when declared otherwise by use of the Set Multiple command." and "3.1.5 LBA (Logical block address). This term defines the addressing mode of the drive as being by the linear mapping of sectors from 1 to n." And lastly, "9.9.4 Word 5: Number of unformatted bytes per sector." clearly showing their use of sector (rather than block) as the smallest accessible subdivision of a track