255 heads, 63 sectors/track, 1305 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 905 7164990 83 Linux
/dev/sda3 906 1032 1020127+ 83 Linux
/dev/sda4 1033 1305 2192872+ 5 Extended
/dev/sda5 1033 1159 1020096 82 Linux swap / Solaris
/dev/sda6 1160 1305 1172713+ 83 Linux
255 heads, 63 sectors/track, 130 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
//说明磁盘/dev/sdb还没有被系统识别
Command action
e extended
p primary partition (1-4)
p //创建主分区
Partition number (1-4): 1 //指定分区的起始柱面
First cylinder (1-130, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-130, default 130): //设置分区容量,直接回车表示全部
Using default value 130
Selected partition 1
Hex code (type L to list codes): L //查看文件类型对应的Hex
You cannot change a partition into an extended one or vice versa
Delete it first.
255 heads, 63 sectors/track, 130 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
/dev/sdb1 1 130 1044193+ 83 Linux
The partition table has been altered!
Syncing disks.
255 heads, 63 sectors/track, 1305 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 905 7164990 83 Linux
/dev/sda3 906 1032 1020127+ 83 Linux
/dev/sda4 1033 1305 2192872+ 5 Extended
/dev/sda5 1033 1159 1020096 82 Linux swap / Solaris
/dev/sda6 1160 1305 1172713+ 83 Linux
255 heads, 63 sectors/track, 130 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
/dev/sdb1 1 130 1044193+ 83 Linux
[root@mail ~]# df -h /tmp
Filesystem Size Used Avail Use% Mounted on
/dev/sdb1 1004M 1.3M 952M 1% /tmp
重起