Device Boot Start End Blocks Id System
/dev/sda1 * 1 39 307200 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 39 549 4096000 82 Linux swap / Solaris
Partition 2 does not end on cylinder boundary.
/dev/sda3 549 5222 37538816 83 Linux 2.2 新建分区
[iyunv@cobub01 ~]# fdisk /dev/sda
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').
Device Boot Start End Blocks Id System
/dev/sda1 * 1 39 307200 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 39 549 4096000 82 Linux swap / Solaris
Partition 2 does not end on cylinder boundary.
/dev/sda3 549 5222 37538816 83 Linux
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Selected partition 4
First cylinder (5222-7832, default 5222):
Using default value 5222
Last cylinder, +cylinders or +size{K,M,G} (5222-7832, default 7832):
Using default value 7832
注:· 上面在选择新建partition类型的时候,有extended和primary partion两种,此种选择了primary partion,如果选择extended会稍微麻烦些,读者可以自己去验证。
· 选择Firstt cylinder和Last cylinder大小的时候, 可以根据提示进行选择,默认选择最大利用了剩余的空间,此处选择默认,即直接回车即可。