[root@localhost /]# fdisk /dev/sda
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
Command (m for help): n #按n創建新分區
Command action
e extended
p primary partition (1-4) #輸入p 選擇創建主分區
p
Partition number (1-4): 1 #輸入 1 創建第一個主分區
First cylinder (1-130, default 1): #直接回車,選擇分區開始柱面這裡就從 1 開始
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-102, default 130):
Using default value 130
Command (m for help): w #然後輸入w寫盤
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
其它分區照這樣做全部分出一個區出來.下面是總分區信息:
[root@localhost /]# fdisk -l