Tuesday, November 22, 2016

Finding the physical sector size of a drive with no volumes

There are plenty of ways to get the logical sector size of any attached drive on Windows (e.g. wmic, msinfo32), but it's not very obvious how to get the physical sector size without there being a volume on the drive. Recently, I stumbled upon a PowerShell cmdlet that produces that information: Get-Disk. The output has both LogicalSectorSize and PhysicalSectorSize properties. Unfortunately, this cmdlet appeared in Windows 8, so I don't know a way to get this data on Windows 7 or earlier.

Based on my Super User answer.

No comments:

Post a Comment