使用n命令创建一个分区,会出现选择主分区(p primary partition)还是扩展分区(l logical)的提示,通常选用主分区然后按照提示输入分区号(Partion number(1-4):)新分区起始的磁盘块数(First Cylinder)和分区的大小,可以是以MB为单位的数字(Last cylindet or +siza or +sizeM or +sizeK
[root@linux ~]#fdisk /dev/sdb
Disk /dev/sdb:255 heads, 63 sectors, 4427 cylinders
Device Boot Start End Blocks Id System
Last cylinder or +size or +sizeM or +sizeK (1-4427, default 4427):
WARNING:If you have created or modified any DOS 6.x
partitions, please see the fdisk manual page for additional
[root@linux ~]
The number of cylinders for this disk is set to 4427.
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
Disk /dev/sdb:255 heads, 63 sectors, 4427 cylinders
Device Boot Start End Blocks Id System
/dev/sdb1 1 4427 35559846 83 Linux
[root@localhost ~]# mkfs -t ext3 /dev/sdb1
Filesystem label=OS type: Linux
214761472 inodes, 429495759 blocks
21474787 blocks (5.00%) reserved for the super user