.png)
我增加了一個分割區的大小(修改了一個分割區的大小後EBS Volume
)
在調整大小之前,我收到以下警告:
GPT fdisk (gdisk) version 1.0.1
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!
***************************************************************
轉換為 GPT 似乎造成了一些損害。
分割區大小調整似乎成功,我可以掛載和存取檔案。
調整大小後,我無法再使用該 EBS 磁碟區啟動計算機,這些磁碟區似乎不是啟動磁碟區。
機器在啟動時掛起:
這是磁碟訊息,如果您需要查看其他信息,請告訴我
$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
xvda 202:0 0 50G 0 disk
└─xvda1 202:1 0 50G 0 part /
xvdf 202:80 0 120G 0 disk
└─xvdf1 202:81 0 120G 0 part
$ sudo gdisk /dev/xvdf
GPT fdisk (gdisk) version 1.0.1
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Command (? for help): p
Disk /dev/xvdf: 251658240 sectors, 120.0 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): EDA0C666-2A70-4C8A-A1A8-77908890A1A8
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 251658206
Partitions will be aligned on 2048-sector boundaries
Total free space is 2014 sectors (1007.0 KiB)
Number Start (sector) End (sector) Size Code Name
1 2048 251658206 120.0 GiB EF00 EFI System
如何恢復該磁碟的引導功能?
答案1
沒有找到損壞的 MBR/GPT 引導資料的解決方案。
相反,我重新執行了調整大小過程,parted
而不是gdisk
(使用快照備份)。