On Wed, Sep 14, 2016 at 9:47 AM, Daniel Sanabria <sanabria.d@xxxxxxxxx> wrote: > [root@lamachine ~]# gdisk /dev/sdc > > GPT fdisk (gdisk) version 1.0.1 > > 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: 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: 1 > > Command (? for help): x > > Expert command (? for help): v > > 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 5860531055 sectors, needs to be 5860533168 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 5860533134, but backup header is at > 5860533167 and disk size is 5860531055 sectors. > The 'e' option on the experts' menu will probably fix this problem > > Identified 4 problems! > > Expert command (? for help): p > Disk /dev/sdc: 5860531055 sectors, 2.7 TiB > Logical sector size: 512 bytes > Disk identifier (GUID): 6DB70F4E-D8ED-4290-AA2E-4E81D8324992 > Partition table holds up to 128 entries > First usable sector is 2048, last usable sector is 5860533134 > Partitions will be aligned on 2048-sector boundaries > Total free space is 516987791 sectors (246.5 GiB) > > Number Start (sector) End (sector) Size Code Name > 1 2048 4294969343 2.0 TiB FD00 > 2 4294969344 5343545343 500.0 GiB 8300 > > Expert command (? for help): Use the e command. That should fix the 3 main problems, and then a new CRC is automatically computed for the two headers and two tables at write time. -- Chris Murphy -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html