.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