使用parted工具: #yum install parted #parted /dev/sdb //选择要分的硬盘 GNUParted 2.3Using /dev/sdbWelcome to GNU Parted! Type ‘help’ to view a lis ofcommands. #(parted) mklabel gpt //类型GPT Warning: The existing disk label on /dev/sdb will be destroyedand al
我们先在超级用户模式下用fdisk -l命令查看挂载的硬盘设备,假设设备号为/dev/sdb,接下来我们使用parted命令来进行GPT分区:1. yum install parted -y# parted /dev/sdbGNU Parted 1.8.1Using /dev/sdbWelcome to GNU Parted! Type ‘help’ to view a list of commands. 2. 将MBR磁盘格式化为GPT(parted) mklabel gpt 3. 划分所有空