Advanced Format (4K)
Advanced Format is a disk-sector architecture expanded beyond legacy 512-byte sectors, with 512e and 4Kn as its familiar 4K variants.
The 4K variants covered here use 4096-byte physical sectors. The format label does not identify a filesystem allocation unit or a NAND erase block. Compare logical and physical sector reports before interpreting a device as 512e or 4Kn.
One legacy sector has 50 bytes of ECC and another 15 bytes for Gap, Sync, and Address Mark, about 88% sectorized format efficiency (512/(512 65)). Eight such sectors, with that same count and an ECC field of 100 bytes, yield 97% (4096/(4096 115)), almost a 10% improvement [4].
Sectorized format leaves out servo and other layout overhead, and not every 4K implementation exactly doubles the ECC bytes. A 512-byte sector can typically correct a defect of up to 50 bytes; the 100-byte figure is the ECC field [4].
Manufacturers committed new desktop and notebook platforms beginning in January of 2011 [4]. Enterprise AF 4Kn shipment starts in 2012 at 4,096 bytes per sector [6].
The support table is not the partition table. It prints 512-byte native as logical and physical 512 bytes for all Windows versions, 512e as logical 512 bytes and physical 4 KB, and 4Kn as logical and physical 4 KB listing Windows 8 and Windows Server 2012 [3].
Alignment 0 is the first virtual 512-byte block and Alignment 1 is the second, with six additional unaligned cases. Windows XP creates the primary partition at Alignment 1; Windows Vista Service Pack 1 or later, Windows 7, and Windows 10 create Alignment 0 [4].
Relations
- related
- 512e emulation, 4Kn native sectors, Partition alignment, Read-modify-write, Logical sector, Physical sector
Advantages
- Larger sectors reduce repeated per-sector format overhead in the illustrated HDD layout. [4]
Limitations
- 512e and 4Kn expose different addressing units despite the same physical-sector size. [3]
- Windows XP, Windows Server 2003, and Windows Server 2003 R2 do not support 512e or 4Kn media. [3]
Citations
- IDEMA: Advanced Format Definitions, Abbreviations, and Conventions
- Microsoft: Advanced format disk compatibility update, sector formats and alignment issues
- Seagate: Transition to Advanced Format 4K Sector Hard Drives, emulation and read-modify-write
- IDEMA: Advanced Format in the Enterprise, Generation One AF 4Kn
- Linux kernel ABI: sysfs-block logical_block_size and physical_block_size
Further reading
Sources & caveats
- Figure 4 says each 512-byte sector has 50 bytes of ECC and another 15 bytes for Gap, Sync, and Address Mark. The 4K layout combines eight legacy 512-byte sectors and keeps that Gap, Sync, and Address Mark byte count. [4]
- The efficiency parentheticals are printed as 512/(512 65) and 4096/(4096 115), with no operator between the terms. [4]
- Footnote 1 limits sectorized format to data sectors and excludes servo data and other sector layout inefficiencies. Footnote 2 says not every implementation of a 4K sector exactly doubles the ECC bytes when moving from 512-byte to 4K sectors. [4]
- In December of 2009, Advanced Format was nominated and approved as the name for 4K-byte sectors. The conclusion says no later than January 2011 for new models shipping into the laptop and desktop market segments. [4]
- Short-term end-user capacity increases are not dramatic. The overview dates the move from a 512-byte sector to 4096 bytes to around 2010, and significant planning work to 2005. [4]
- Generation One AF native drives employ 4,096 bytes per sector and are called AF 4Kn. Starting 2012, shipment of those enterprise-class drives commences. [6]
- IDEMA Alignment 0 means no offset, and Alignment 1 means only that an offset exists. AF Aware means a program recognizes AF 512e drives but does not deliver full performance. Neither definition replaces the partition table's block numbering. [2]
- The 4Kn cell lists Windows 8 and Windows Server 2012. The platforms line above the table continues through Windows Server 2016 and is not that cell. The 512e cell is a version list, including KB 982018 and KB 2553708, not all Windows versions. [3]
- Windows XP, Windows Server 2003, and Windows Server 2003 R2 do not support 512e or 4Kn media. The system may boot and operate minimally, with possible unknown functionality issues, data loss, or sub-optimal performance. [3]
- Windows Vista before Service Pack 1 is large-sector aware but creates partitions unaligned. Kernel support is stated for versions 2.6.31 and above. GNU fdisk versions 1.2.3 and above are listed as supporting these drives. [4]
- logical_block_size, dated May 2009 and marked read-only, is the smallest unit the device can address and is typically 512 bytes. [7]
- physical_block_size, also dated May 2009 and marked read-only, is the smallest unit written atomically and may be bigger. On a stacked device it is the maximum of the component devices. The example is SATA drives with 4KB sectors exposing a 512-byte logical block size. [7]