Partition Alignment: Difference between revisions
From Leo's Notes
This page was last edited on 1 September 2019, at 05:09.
Created page with " Proper disk partition alignment using {{code|fdisk}} {{highlight|lang=terminal|code= root@nas mnt]# fdisk -S 32 -H 64 /dev/sdd WARNING: DOS-compatible mode is deprecated. I..." |
m Text replacement - "Category:Linux" to "Category:Linux{{Navbox Linux}}" |
||
| Line 56: | Line 56: | ||
[[Category:Todo]] | [[Category:Todo]] | ||
[[Category:Linux]] | [[Category:Linux]]{{Navbox Linux}} | ||
Revision as of 05:09, 1 September 2019
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
- https://www.thomas-krenn.com/en/wiki/Partition_Alignment