现在我们用Fdisk对磁盘进行划分:
1、运行fdisk /dev/sdd
[root@rhcl5 ~]# fdisk /dev/sdd
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):
2、我们按m列出命令列表:(中文是我知道的一些注释,其他的不能确定就没注)
Command (m for help): m
Command action
a toggle a bootable flag 设置或取消可引导标志。
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition 删除一个分区。在实际删除一个分区前,需要选择分区号
l list known partition types 列举出已知的分区类型
m print this menu 显示可以使用的fdisk命令
n add a new partition 增加一个新分区
o c