一、添加新硬盘
fdisk -l 查看新加硬盘
或 (原有硬盘没有进行完整的分区,硬盘资源有剩余没有挂载
硬盘共有cylinders 1040253,现用208051
)本篇文章按图中情况编写
二、新建分区
fdisk /dev/vda
[root@localhost /]# fdisk /dev/vda
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel with disk identifier 0x1949791c.
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)
WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
switch off the mode (command 'c') and change display units to
sectors (command 'u').
Command (m for help): m //输入m查看帮助文档
Command action
a toggle a boota