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
/dev/sdb1 /sdb1 ext3 defaults 0 0
重起
本文出自 “
allen的學習筆記” 博客,請務必保留此出處
http://allenyu.blog.51cto.com/193668/156256