Disk /dev/sda: 146.1 GB, 146163105792 bytes
255 heads, 63 sectors/track, 17769 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 5112 40957717+ 83 Linux
/dev/sda3 5113 5243 1052257+ 82 Linux swap /
Solaris
/dev/sda4 5244 17769 100615095 5 Extended
/dev/sda5 5244 17769 100615063+ 83 Linux
Disk /dev/sdb: 291.3 GB, 291331192320 bytes
255 heads, 63 sectors/track, 17769 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdb1: 291.3 GB, 291331192320 bytes
4.创建新硬盘分区
fdisk可以用m命令来看fdisk命令的内部命令;
a:命令指定启动分区;
d:命令删除一个存在的分区;
l:命令显示分区ID号的列表;
m:查看fdisk命令帮助;
n:命令创建一个新分区;
p:命令显示分区列表;
t:命令修改分区的类型ID号;
w:命令是将对分区表的修改存盘让它发生作用。
#fdisk /dev/sdb
Command (m for help):n
Command action
e extended //输入e为创建扩展分区
p primary partition (1-4)
Partion number(1-4):1
Command (m for help): w