I am having troubles getting my partitions to show up correctly on one of my drives.
- Linux 3.10.10-1-ARCH
- Disk is 2TB and has GPT with two partitions.
- The two partitions hold approx 700GB each so there is defiantly enough room for everything.
- The data on the disks have full backups but would take me a long time to rebuild (offsite backup) so if possible id really like to fix this.
- I created the partitions in gparted on a livecd then dd'd data on from old disks.
- Both partitions are ext4 but that shouldn't matter much.
The problem I run:
sudo gdisk /dev/sdb
And I get:
Warning! Disk size is smaller than the main header indicates! Loading secondary header from the last sector of the disk! You should use 'v' to verify disk integrity, and perhaps options on the experts' menu to repair the disk. Caution: invalid backup GPT header, but valid main header; regenerating backup header from main header. 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
So then I did
v to reveal the exact issues:
Caution: The CRC for the backup partition table is invalid. This table may be corrupt. This program will automatically create a new backup partition table when you save your partitions. 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. Problem: Disk is too small to hold all the data! (Disk size is 1953569134 sectors, needs to be 3907029168 sectors.) The 'e' option on the experts' menu may fix this problem. Problem: GPT claims the disk is larger than it is! (Claimed last usable sector is 3907029134, but backup header is at 3907029167 and disk size is 1953569134 sectors. The 'e' option on the experts' menu will probably fix this problem Problem: partition 2 is too big for the disk. Identified 5 problems!
v again I get:
Caution: The CRC for the backup partition table is invalid. This table may be corrupt. This program will automatically create a new backup partition table when you save your partitions. Problem: partition 2 is too big for the disk. Warning! Secondary partition table overlaps the last partition by 1953459891 blocks! You will need to delete this partition or resize it in another utility. Identified 3 problems!
I can now see the correct partitions using
Disk /dev/sdb: 1953569134 sectors, 931.5 GiB Logical sector size: 512 bytes Disk identifier (GUID): D690A9B2-EA00-4D2E-9E18-0D4545A8683A Partition table holds up to 128 entries First usable sector is 34, last usable sector is 1953569100 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 1953515519 931.5 GiB 0700 2 1953515520 3907028991 931.5 GiB 0700
I am stuck at this point and any help would be greatly appreciated.