[root@test64 ~]# fdisk -H 224 -S 56 /dev/sdd The number of cylinders for this disk is set to 9345. There is nothing wrong with that, but this is larger than 1024, and could in certain setups cause problems with: 1) software that runs at boot time (e.g., old versions of LILO) 2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK) Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 1 First cylinder (1-9345, default 1): 2 Last cylinder or +size or +sizeM or +sizeK (2-9345, default 9345): Using default value 9345 Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. Syncing disks.
注意,我是從第二個柱面開始的,以保證分區(qū)/dev/sdd1從柱面邊界開始。
可以在fdisk后面跟上“-l”參數(shù)檢查分區(qū)。
[root@test64 ~]# fdisk -l /dev/sdd Disk /dev/sdd: 60.0 GB, 60022480896 bytes 224 heads, 56 sectors/track, 9345 cylinders Units = cylinders of 12544 * 512 = 6422528 bytes Device Boot Start End Blocks Id System /dev/sdd1 2 9345 58605568 83 Linux
我們也可以使用“-lu”參數(shù)查看扇區(qū)的數(shù)量。
[root@test64 ~]# fdisk -lu /dev/sdd Disk /dev/sdd: 60.0 GB, 60022480896 bytes 224 heads, 56 sectors/track, 9345 cylinders, total 117231408 sectors Units = sectors of 1 * 512 = 512 bytes Device Boot Start End Blocks Id System /dev/sdd1 12544 117223679 58605568 83 Linux
[root@test64 ~]# fdisk -H 32 -S 32 /dev/sdd The number of cylinders for this disk is set to 114483. There is nothing wrong with that, but this is larger than 1024, and could in certain setups cause problems with: 1) software that runs at boot time (e.g., old versions of LILO) 2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK) Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 1 First cylinder (1-114483, default 1): 2 Last cylinder or +size or +sizeM or +sizeK (2-114483, default 114483): Using default value 114483 Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. Syncing disks.
Fdisk加上“-l”參數(shù)可以檢查分區(qū)。
[root@test64 ~]# fdisk -l /dev/sdd Disk /dev/sdd: 60.0 GB, 60022480896 bytes 32 heads, 32 sectors/track, 114483 cylinders Units = cylinders of 1024 * 512 = 524288 bytes Device Boot Start End Blocks Id System /dev/sdd1 2 114483 58614784 83 Linux