Logical sector
A logical sector is the addressable data unit selected by a logical block address at a storage interface.
Its size describes the addressed interface, not the application's write size. In 512e it is 512 bytes; in 4Kn it is 4096 bytes [7].
A logical block is the smallest unit of data that may be read or written. Data size excludes metadata and is 2 to the power of the LBA Data Size exponent: 512 bytes, 1 KiB, 2 KiB, 4 KiB, 8 KiB, etc. Logical block size adds the metadata byte count. A non-zero LBA Data Size less than 9 (512 bytes) is not supported, and 0h means that format is not currently available [3].
IDENTIFY DEVICE word 106 is valid only when bit 14 is set and bit 15 is clear. With bit 12 set, the logical sector is larger than 256 words and words 117-118 hold that length at 256 words or more. With bit 12 clear, those words are invalid, the field is zero, and the logical sector is 256 words [4].
Long logical sectors of 520 or 528 bytes are typical; Figure 10 shows 524 bytes per LBA. Read and write extended commands transfer long sectors, while IDENTIFY DEVICE, READ LOG EXT and WRITE LOG EXT transfer 256 words [4].
LogicalBytesPerSector is the byte count used for logical addresses, not for an atomic write, and should not be used for physical-sector alignment [5]. NTFS sets PhysicalBytesPerSectorForAtomicity to the logical sector size when the reported physical sector is below that size or not a power of two. The effective-atomicity field repeats that and is capped at the system page size [6].
As of 2026-02-12, 512-byte logical sectors are allowed for 512n on all Windows versions and for 512e on the printed releases, and 4 KB for 4Kn from Windows 8 and Windows Server 2012 onward. A reported size that is not 4 KB or 512 bytes is Not Supported. Hyper-V is excepted on the Server 2008 and 2008 R2 512e lines [7].
Relations
- related
- Physical sector, 512e emulation, 4Kn native sectors, Block storage, Partition alignment, Minimum I/O size, Optimal I/O size, Alignment offset, SCSI READ CAPACITY, NVMe extended LBA, Logical block address
Advantages
- Explicit logical-sector sizes let software interpret address and transfer units without assuming 512 bytes. [1]
Limitations
- The addressing unit can be smaller than the physical sector. [1]
- FileFsSectorSizeInformation is available on Windows 8 and later, on file systems including NTFS, ReFS, FAT, ExFAT, UDFS and CDFS. [6]
- A logical sector other than 512 bytes may make system image backup and restore fail with error 0x8078002A. [7]
- Creating a VHD on a native 4K sector drive fails with Incorrect Function for Disk Management or Hyper-V on Windows Server 2008 R2. Windows 8 and Windows Server 2012 list a new VHDx file format as supported. [7]
- The long logical sector feature set is prohibited for ATAPI devices. [4]
- With no system buffering, a transfer must be an integer multiple of the volume sector size. The 512-byte example allows 512, 1,024, 1,536 or 2,048 bytes, not 335, 981 or 7,171. [1]
Citations
- Microsoft: File buffering, alignment and file access requirements
- NVM Express NVM Command Set Specification, Revision 1.0e (July 29, 2024)
- Working Draft AT Attachment 8 - ATA/ATAPI Command Set (ATA8-ACS), T13/1699-D Revision 4a (May 21, 2007)
- [MS-FSCC]: FileFsSectorSizeInformation, logical and physical sector fields
- [MS-FSCC]: Appendix B product behavior, notes 177, 178 and 180
- Support policy for 4K sector hard drives (KB 2510009), dated 2026-02-12
Further reading
Sources & caveats
- NVM Express NVM Command Set Specification Revision 1.0e, sections 1.4.3.3 to 1.4.3.6, section 2.1 and Figure 98. The printed size list ends with etc., so 8 KiB is not a stated maximum. [3]
- ATA text is Working Draft T13/1699-D Revision 4a, 21 May 2007, sections 4.12.1, 7.16.7.52 and 7.16.7.57, Table 4 and Figure 10. Section 4.12.1 sets word 106 bit 13 for long logical sectors; 7.16.7.52 defines bit 13 as more than one logical sector per physical sector. [4]
- Note 177 limits FileFsSectorSizeInformation to Windows 8 and later and to Microsoft-implemented file systems including NTFS, ReFS, FAT, ExFAT, UDFS and CDFS. Including is not an exhaustive only-these list. [6]
- Notes 178 and 180 are the NTFS sanitation steps. The effective-atomicity cap uses the system page size in MS-FSA 2.1.1.1 and does not print that size in bytes. [6]
- KB 2510009 is dated 2026-02-12. The 512e cell prints Windows 7 Server Pack 1 and Server 2008 R2 Server Pack 1. Unsupported scenarios do not guarantee a resolution. [7]