> ну вот я и спрашиваю - а что он делать-то будет, если
> диск не такой же или больше?Я же написал. Пересчитывает. И записывает бэкап GPT в правильное место.
В отличие от sgdisk
> Ну поругался- а чинить-то мы это планируем или как?
> Я в свое время был сильно удивлен, что инструментов для этого просто
> нет.
Спрашивает какую использовать. Первичную или бэкап. Если устраивает, записать все по новой и выйти - w.
Вот например. Сделал образ. Создал GPT. Затем упорол начало диска нулями. Вот что пишет:
gdisk /dev/loop0
GPT fdisk (gdisk) version 1.0.6
Warning: Partition table header claims that the size of partition table
entries is 0 bytes, but this program supports only 128-byte entries.
Adjusting accordingly, but partition table may be garbage.
Caution: invalid main GPT header, but valid backup; regenerating main header
from backup!
Warning: Invalid CRC on main header data; loaded backup partition table.
Warning! Main and backup partition tables differ! Use the 'c' and 'e' options
on the recovery & transformation menu to examine the two tables.
Warning! Main partition table CRC mismatch! Loaded backup partition table
instead of main partition table!
Warning! One or more CRCs don't match. You should repair the disk!
Main header: ERROR
Backup header: OK
Main partition table: ERROR
Backup partition table: OK
Partition table scan:
MBR: not present
BSD: not present
APM: not present
GPT: damaged
Found invalid MBR and corrupt GPT. What do you want to do? (Using the
GPT MAY permit recovery of GPT data.)
1 - Use current GPT
2 - Create blank GPT
Your answer: