A bit of an interesting one. I have an image for an ARM device that I've dd'ed to a usb flash drive. It boots, but gets stuck during boot with the following:
- Code: Select all
GPT:Primary header thinks Alt. header is not at the end of the disk.
GPT:31116287 !=31266815
GPT:Alternate GPT header not at the end of the disk
GPT:31116287 !=31266815
GPT: Use GNU Parted to correct GPT errors.
sda: sda6 sda7
sd 0:0:0:0: [sda] Attached SCSI removable disk
Now, I've tried to run GUI gparted, but it wont run properly: I have to shutdown, and on shutdown it flashes some partition error quickly.
Next I run:
- Code: Select all
[root@localhost Downloads]# gdisk /dev/sdj
GPT fdisk (gdisk) version 0.8.8
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!
So, I believe this is just an issue from dd'ing an image on to a different size drive: I just need to correct the GPT and it wil be fine. I'm unsure what/where to go to from here.
Many thanks