Monday, February 15, 2016

Lots of ways to get the logical sector size

While attempting to discover a way to find the physical sector size of a disk that doesn't have any volumes, I have found many ways to get the logical sector size:

  • fsutil fsinfo sectorinfo x: where x is the drive letter of a volume on the disk
  • wmic partition get BlockSize, Name (produces a list of partitions and their drive's sector size)
  • wmic diskdrive get BytesPerSector, Name (works even for disks without any volumes, but only shows the logical size)
  • fsutil fsinfo ntfsinfo \\?\Volume{guid}\ where guid is the GUID of the volume as reported by mountvol (works only for NTFS volumes, but does support volumes without drive letters)
  • The System Information program (msinfo32) has a Disks section (under Components → Storage) that shows the logical sector size in an item called Bytes/Sector

No comments:

Post a Comment