ArticleslgStudy

computer science

Disk sector

Disk sector is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Disk sector rather than just read about it. In short: In computer disk storage, a sector is a subdivision of a track on a magnetic disk or optical disc. For most disks, each sector stores a fixed amount of user-accessible data, traditionally 512 bytes for hard disk drives (HDDs), and 2048 bytes for CD-ROMs, DVD-ROMs and BD-ROMs.

Disk sector — main illustration
Disk sector — illustration

Key takeaways

  • Disk sector belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Disk sector to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Disk sector from memory before moving on to harder problems.

Reference excerpt

In computer disk storage, a sector is a subdivision of a track on a magnetic disk or optical disc. For most disks, each sector stores a fixed amount of user-accessible data, traditionally 512 bytes for hard disk drives (HDDs), and 2048 bytes for CD-ROMs, DVD-ROMs and BD-ROMs. Newer HDDs and SSDs use 4096 byte (4 KiB) sectors, which is known as the Advanced Format (AF). The sector is the minimum storage unit of a disk drive. Most disk partitioning schemes are designed to have files occupy an integral number of sectors regardless of the file's actual size. Files that do not fill a whole sector will have the remainder of their last sector filled with zeroes. In practice, operating systems typically operate on blocks of data, which may span multiple sectors. Geometrically, the word sector means a portion of a disk between a center, two radii and a corresponding arc (see Figure 1, item B), which is shaped like a slice of a pie. Thus, the disk sector (Figure 1, item C) refers to the intersection of a track and a geometrical sector. In modern disk drives, each physical sector is made up of two basic parts: the sector header area (typically called "ID") and the data area. The sector header contains information used by the drive and controller; this information includes sync bytes, address identification, flaw flag, and error detection and correction information. The header may also include an alternate address to be used if the sector is a bad sector. The address identification is used to ensure that the mechanics of the drive have positioned the read/write head over the correct location. The data area contains the sync bytes, user data, and an error-correcting code (ECC) that is used to check and possibly correct errors that may have been introduced into the data.

History The first disk drive, the 1957 IBM 350 disk storage, had ten 100-character sectors per track; each character contained six data bits and a parity bit. The number of sectors per track was identical on all recording surfaces. There was no recorded identifier field (ID) associated with each sector. The 1961 IBM 1301 disk storage introduced variable length sectors, termed records or physical records by IBM, and added to each record a record address field separate from the data in a record. All modern disk drives have sector address fields, called ID fields, separate from the data in a sector. Also in 1961, Bryant with its 4000 series introduced the concept of zoned recording (ZBR), which allowed the number of sectors per track to vary as a function of the track's diameter – there are more sectors on an outer track than on an inner track. In the late 1980s ZBR was again used in disk drives then announced by Imprimis and Quantum and by 1997 its industry usage was ubiquitous. The disk drives and other DASDs announced with the IBM System/360 in 1964 used self-formatting variable length sectors, termed records or physical records by IBM. They detected errors in all fields of their records with a cyclic redundancy check (CRC) replacing parity per character detection of prior generations. These IBM physical records have three basic parts: a Count field, which acts as an ID field, an optional Key field to aid in searching for data, and a Data field; in practice, most records had no Key field, indicated by a key length of zero. The structure of these three fields is called the CKD track format for a record. The 1970 IBM 3330 disk storage replaced the CRC on the data field of each record with an error correcting code (ECC) to improve data integrity by detecting most errors and allowing correction of many errors. Ultimately all fields of disk sectors had ECCs. Prior to the 1980s, there was little standardization of sector sizes; disk drives had a maximum number of bits per track and various system manufacturers subdivided the track into different sector sizes to suit their OSes and applications. The popularity of the PC beginning in the 1980s and the advent of the IDE interface in the late 1980s led to a 512-byte sector becoming an industry standard sector size for HDDs and similar storage devices. In the 1970s, IBM added fixed-block architecture Direct Access Storage Devices (FBA DASDs) to its line of CKD DASD. CKD DASD supported multiple variable-length sectors, while the IBM FBA DASD supported sector sizes of 512, 1024, 2048, or 4096 bytes. In 2000, the industry trade organization, International Disk Drive Equipment and Materials Association (IDEMA) started work to define the implementation and standards that would govern sector size formats exceeding 512 bytes to accommodate future increases in data storage capacities. By the end of 2007, in anticipation of a future IDEMA standard, Samsung and Toshiba began shipments of 1.8-inch hard disk drives with 4096-byte sectors. In 2010 IDEMA completed the Advanced Format standard for 4096 sector drives, setting the date for the transition from 512 to 4096 byte sectors as January 2011 for all manufacturers, and Advanced Format drives soon became prevalent.

Related units

Sectors versus blocks While sector specifically means the physical disk area, the term block has been used loosely to refer to a small chunk of data. Block has multiple meanings depending on the context. In the context of data storage, a filesystem block is an abstraction over disk sectors, possibly encompassing multiple sectors. In other contexts, it may be a unit of a data stream or a unit of operation for a utility. For example, the Unix program dd allows one to set the block size to be used during execution with the parameter bs=bytes. This specifies the size of the chunks of data as delivered by dd, and is unrelated to sectors or filesystem blocks.

Sectors versus clusters

In computer file systems, a cluster (sometimes also called allocation unit or block) is a unit of disk space allocation for files and directories. To reduce the overhead of managing on-disk data structures, the filesystem does not allocate individual disk sectors by default, but contiguous groups of sectors, called clusters. On a disk that uses 512-byte sectors, a 512-byte cluster contains one sector, whereas a 4-kibibyte (KiB) cluster contains eight sectors.

… excerpt ends here. Continue reading the full article.

Illustrations

Disk sector: Figure 1: Disk structures:
.mw-parser-output .legend{page-break-inside:avoid;break-inside:avoid-column}.mw-parser-output .legend-color{display:inline-block;min-width:1.25em;height:1.25em;line-height:1.25;margin:1px 0;text-align:center;border:1px solid black;background-color:transparent;color:black}.mw-parser-output .legend-text{}  (A) Track
  (B) Geometrical sector
  (C) Disk sector
  (D) Cluster
Figure 1: Disk structures: .mw-parser-output .legend{page-break-inside:avoid;break-inside:avoid-column}.mw-parser-output .legend-color{display:inline-block;min-width:1.25em;height:1.25em;line-height:1.25;margin:1px 0;text-align:center;border:1px solid black;background-color:transparent;color:black}.mw-parser-output .legend-text{}  (A) Track   (B) Geometrical sector   (C) Disk sector   (D) Cluster
Disk sector: Example of slack space when storing multiple files with a cluster size of 4 KB; combining them in one archive file greatly reduces slack space.
Example of slack space when storing multiple files with a cluster size of 4 KB; combining them in one archive file greatly reduces slack space.

Worked examples

Example 1 — a first encounter with Disk sector

Start with the simplest possible case. Write down what Disk sector claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Disk sector before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Disk sector ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Disk sector

In research
Disk sector appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Disk sector in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Disk sector is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computer file systems, Units of information, so understanding it makes those chapters shorter.
In everyday life
Look for Disk sector outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Disk sector” →

How to study Disk sector in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Disk sector means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Disk sector out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Disk sector in simple terms?

In computer disk storage, a sector is a subdivision of a track on a magnetic disk or optical disc. For most disks, each sector stores a fixed amount of user-accessible data, traditionally 512 bytes for hard disk drives (HDDs), and 2048 bytes for CD-ROMs, DVD-ROMs and BD-ROMs.

Why does Disk sector matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Disk sector?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Disk sector.

Tags

  • Computer file systems
  • Units of information

Keep exploring