Skip to content

Instantly share code, notes, and snippets.

@TuvianNavy
Created November 14, 2018 11:29
Show Gist options
  • Save TuvianNavy/ad993eae707c8ddd3d59349708fee9ce to your computer and use it in GitHub Desktop.
Save TuvianNavy/ad993eae707c8ddd3d59349708fee9ce to your computer and use it in GitHub Desktop.
[root@recover images]# gdisk /dev/sdc
GPT fdisk (gdisk) version 0.8.6
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Command (? for help): v
Problem: The secondary header's self-pointer indicates that it doesn't reside
at the end of the disk. If you've added a disk to a RAID array, use the 'e'
option on the experts' menu to adjust the secondary header's and partition
table's locations.
Identified 1 problems!
Command (? for help): x
Expert command (? for help): e
Relocating backup data structures to the end of the disk
Expert command (? for help): v
No problems found. 69229 free sectors (33.8 MiB) available in 2
segments, the largest of which is 67215 (32.8 MiB) in size.
Expert 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/sdc.
The operation has completed successfully.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment