Linux系統磁盤分區格式MBR格式轉換GPT


Linux磁盤MBR格式轉換GPT

1、先取消掛載磁盤,安裝一個gdisk工具

yum install -y gdisk

2、分區格式轉換,以防萬一可以先使用雲硬盤備份功能對磁盤進行一個備份,畢竟數據的安全才是第一位!!

# 執行以下命令
[root@nginx-web ~]# gdisk /dev/vdc
GPT fdisk (gdisk) version 0.8.10

Partition table scan:
  MBR: MBR only
  BSD: not present
  APM: not present
  GPT: not present


***************************************************************
Found invalid GPT and valid MBR; converting MBR to GPT format
in memory. THIS OPERATION IS POTENTIALLY DESTRUCTIVE! Exit by
typing 'q' if you don't want to convert your MBR partitions
to GPT format!
***************************************************************


Command (? for help): w    ###輸入 w 保存

Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
PARTITIONS!!

Do you want to proceed? (Y/N): y  ## 輸入y,將新的分區表寫入/dev/vdc磁盤
OK; writing new GUID partition table (GPT) to /dev/vdc.
Warning: The kernel is still using the old partition table.
The new table will be used at the next reboot.
The operation has completed successfully.

使用fdisk -l 查看,當前磁盤格式就變為了gpt
image


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM