Migrating Windows 10 from 512 byte to 4096 byte sectors

I've recently changed from a SATA SSD to NVMe SSD for my Windows PC and there's a format option for the NVMe SSD to use 4096 byte sectors for better performance.

The NTFS boot sector (at the start of the partition) contains references to the sector size of the disk. This is unnecessary information on more modern filesystems but NTFS is 28 years old. Changing the following little-endian values allows Windows to use the filesystem without needing to recreate it (instructions assume a 4K cluster size):

OffsetSizeNameModification
0x0B2 bytesBytes per sector0x0200 (512) → 0x1000 (4096)
0x0D1 byteSectors per cluster0x08 (8 * 512 = 4096) → 0x01 (1 * 4096 = 4096)
0x1C4 bytesHidden sectorsThe number of sectors preceding the partition
0x284 bytesTotal sectorsThe partition size in sectors

About this Entry

This page contains a single entry by Simon Arlott published on September 4, 2021 14:43.

Modifying Logitech Z906 Speakers was the previous entry in this blog.

Shrinking soap is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Content authored by myself is just my honest opinion.

  • Linux
  • Get Firefox!
  • Get Thunderbird!