
October 12, 2009 19:57 by
Simon
This is the preferred method
wmic partition get BlockSize, StartingOffset, Name, Index
diskpart list partition Output
Repeat: Use caution when using for alignment info
Offset info is in KB—too imprecise for our purposes
C:\Windows\System32>diskpart
Microsoft DiskPart version 6.0.6000
On computer: ASPIRINGGEEK
DISKPART> list disk
Disk ### Status Size Free Dyn Gpt
-------- ---------- ------- ------- --- ---
Disk 0 Online 93 GB 1024 KB
DISKPART> select disk 0
Disk 0 is now the selected disk.
DISKPART> list partition
Partition ### Type Size Offset
------------- ---------------- ------- -------
Partition 1 OEM 47 MB 32 KB
Partition 2 Primary 10 GB 48 MB
Partition 3 Primary 81 GB 10 GB
Partition 0 Extended 2048 MB 91 GB
Getting the file allocation unit size
fsutil fsinfo ntfsinfo c:
Output for default NTFS format
C:\>fsutil fsinfo ntfsinfo c:
NTFS Volume Serial Number : 0x3a16ff9d16ff5879
Version : 3.1
Number Sectors : 0x000000000a2397ff
Total Clusters : 0x00000000014472ff
Free Clusters : 0x000000000025b76a
Total Reserved : 0x00000000000051f0
Bytes Per Sector : 512
Bytes Per Cluster : 4096
Bytes Per FileRecord Segment : 1024
Clusters Per FileRecord Segment : 0
Mft Valid Data Length : 0x0000000007c90000
IMPORTANT: Correlation of Partition Offset & Stripe Unit Size
The following formula must result in an integer value:
Partition_Offset ÷ Stripe_Unit_Size
Note: Ask your SAN Man (or Woman) for Stripe Unit Size
Example A
Partition Offset = 32,768 bytes (exactly 32KB)
Stripe Unit Size = 65,536 bytes (exactly 64KB)
32,768 / 65,536 = 0.5
Even though the offset was changed from the default 31.5KB, the partition is still misaligned!
Example B
Partition Offset = 65,536 bytes (exactly 64KB)
Stripe Unit Size = 65,536 bytes (exactly 64KB)
65,536 / 65,536 = 1.0
Good!
Source: Robert Smith
The stripe unit size must correlate with the file allocation unit size
Here, too, an integer value is required
Example A
Stripe Unit Size = 65,536 bytes (exactly 64KB)
File Allocation Unit Size = 65,536 bytes (exactly 64KB)
65,536 / 65,536 = 1.0
Good!
Example B
Stripe Unit Size = 262,144 bytes (exactly 256KB)
File Allocation Unit Size = 65,536 bytes (exactly 64KB)
262,144 / 65,536 = 4.0
Good!
660e3e22-b4ca-4bfa-b0a8-34f9c20f5119|0|.0