Linux将磁盘格式从MBR转换到GPT
利用gdisk工具进行分区转换:
1 | [root@localhost /]# yum install -y gdisk |
转换/dev/sda2分区,sda1分区为系统启动分区,不需要转换。
1 | [root@localhost /]# gdisk /dev/sda2 |
输入y,开始:
1 | OK; writing new GUID partition table (GPT) to /dev/sda2. |
查看分区类型:
1 | [root@localhost /]# fdisk -l /dev/sda2 |