Tuesday, March 18, 2014

Check Windows for Partition Alignment via WMI

We all know (or should know) the importance of partition alignment.  One quick way to check a Windows server to run this on the command line:

wmic partition get BlockSize, StartingOffset, Name, Index


The starting offset on all three disks on this machine is 32256 - the default.  You can verify this - see if 32256 is evenly divisible by 1024.

32256/1024 = 31.5

As you can see, 32256 is NOT divisible by 1024 evenly - and thus is not aligned.

Windows 2008 and above will automatically set the partition offset correctly, but to check you can run the same command - you should see a starting partition offset of 1MB


1048576 / 1024 = 1024

As you can see, the offset is 1048576 or 1MB - and it is properly aligned.


No comments:

Post a Comment

Featured Post

Remove 3D Objects and other annoying folders on Windows 10

 Microsoft just keeps adding more crap to clutter up the navigation in Windows 10.  Seriously, who needs a 3D Objects folder?  The tiny perc...