Wednesday, November 23, 2022

How to check if the HDD or SSD are 4k aligned

Just type in command prompt as administrator:

wmic partition get BlockSize, StartingOffset, Name, Index

The last column in the output is the offset in bytes for where each partition starts, if this value is divisible by 4096 without a reminder then the partition is aligned. For example:

C:\Windows\system32>wmic partition get BlockSize, StartingOffset, Name, Index

BlockSize  Index  Name                   StartingOffset

512        0      Disk #0, Partition #0  1048576

512        1      Disk #0, Partition #1  105906176

512        0      Disk #1, Partition #0  135266304

512        0      Disk #2, Partition #0  1048576

This shows that all partitions are aligned (under NTFS)

No comments:

Post a Comment