Proper disk partition alignment using fdisk

root@nas mnt]# fdisk -S 32 -H 64 /dev/sdd

WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
         switch off the mode (command 'c') and change display units to
         sectors (command 'u').


Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-1907729, default 1): 2
Last cylinder, +cylinders or +size{K,M,G} (2-1907729, default 1907729): 
Using default value 1907729

Command (m for help): p

Disk /dev/sdd: 2000.4 GB, 2000398934016 bytes
64 heads, 32 sectors/track, 1907729 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0003522f

   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1               2     1907729  1953513472   83  Linux

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.

## Verify that the partition starts on 2048 
[root@nas mnt]# fdisk -lu /dev/sdd

Disk /dev/sdd: 2000.4 GB, 2000398934016 bytes
64 heads, 32 sectors/track, 1907729 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0003522f

   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1            2048  3907028991  1953513472   83  Linux

See Also[edit]