[root@ns1 root] # fdisk/dev/hda
The number of cylinders for this disk is set to 5005
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
在了解目前的分割區狀況後,您可在「Command(m for help):」
處按「n」鈕以新增分割區,若是在系統中目前並未擁有其他分割區則fdisk程式會出現類似以下的訊息:
Command(m for help):n
Command action
e extended
p primary partition(1-4)
在出現以上的訊息後,此時您有 2 種選擇 :
◆ e :若按「e」(Extended),則表示要新增延伸分割區。
◆ p :若按「p」(Primary),則表示要新增主要分割區。
Command(m for help):n
Command action
1 logical (5 or over)
p primary partition(1-4)
若是在系統中目前擁有其他分割區,則會出現以下的訊息 :
Command(m for help):n
Command action
1 logical (5 or over)
p primary partition(1-4)
◆ I :若按「1」(Logical),則表示要新增邏輯分割區。
◆ p :若按「p」(Primary),則表示要新增主要分割區。
本書以新增一個主要分割區為例,首先輸入「p」後再按 Enter 鈕, fdisk 程式可能會出現以下的訊息:
p
Partition number (1-4) : 1
Partition 1 is already defined. Delete it before re-adding it.
Command (m for help):
在以上訊息中的「Partition number(1-4)」表示 fdisk 要求您指定主要分割區的編號,而筆者在此輸入「1」但卻出現 Partition 1 is already defined。Delete it before re-adding it.」 , 並且跳離開分割區的新增工作。這表示在硬碟上已存在其他分割區,而它們的主要分割區編號為 1 ,所以若要再新增其他的主要分割區,必須使用其他的編號。
以下的范例我们将新增一个编号为4的主要分割区,其讯息如下:
Command (m for help) : n
Command action
e extended
p primary partition (1-4)
p
partition number (1-4): 4
First cylinder (1-5005,default 1):1
Last cylinder or +sizeM or +sizeK (1-653,default653): 653
在上例中,笔者先指定分割区的编号为4,则fdisk程式会出现以下的讯息:
First cylinder (1-5005), default 1)
此处需输入分割区起始磁柱的值, fdisk 程式也会自动显示允许输入的值 (1-5005) ,並且会以允许范围的第一个数字为预设值 (1) ,所以输入预设值与直接按 Enter 钮的功能相同。
Last cylinder or +size or sizeM or +sizeK (1-653, default 653)