【Gdisk 修复GPT table corrupt】

The backup GPT table is corrupt, but the primary appears OK, so that will be used.

[root@b8cef6cc319b-56950 rt]# gdisk

GPT fdisk (gdisk) version 1.0.3

Type device filename, or press <Enter> to exit: /dev/sda

Caution: invalid backup GPT header, but valid main header; regenerating

backup header from main header.

Warning! Main and backup partition tables differ! Use the 'c' and 'e' options

on the recovery & transformation menu to examine the two tables.

Warning! One or more CRCs don't match. You should repair the disk!

Partition table scan:

  MBR: protective

  BSD: not present

  APM: not present

  GPT: damaged

****************************************************************************

Caution: Found protective or hybrid MBR and corrupt GPT. Using GPT, but disk

verification and recovery are STRONGLY recommended.

****************************************************************************

Command (? for help): GPT

b       back up GPT data to a file

c       change a partition's name

d       delete a partition

i       show detailed information on a partition

l       list known partition types

n       add a new partition

o       create a new empty GUID partition table (GPT)

p       print the partition table

q       quit without saving changes

r       recovery and transformation options (experts only)

s       sort partitions

t       change a partition's type code

v       verify disk

w       write table to disk and exit

x       extra functionality (experts only)

?       print this menu

Command (? for help): w

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

PARTITIONS!!

Do you want to proceed? (Y/N): Y

OK; writing new GUID partition table (GPT) to /dev/sda.

The operation has completed successfully.


版权声明:本文为dyytsoft原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。