Thursday, November 14, 2019

boot - Can't restore my gpt data with gdisk

So I have a pre-instaled windows 7 EFI boot on SSD in GPT




Ubuntu installer couldn't recongize the SSD so I saw that I should try to zap the gpt using gdisk , before doing that I made a backup to a file of the gpt data.



Now that the SSD has no gpt Windows 7 wont boot at all, so I went back to gdisk to restore the gpt data and I am unable




kubuntu@kubuntu:~$ sudo gdisk /dev/sda
GPT fdisk (gdisk) version 0.8.8



Partition table scan: MBR: protective BSD: not present APM: not
present GPT: not present




Creating new GPT entries.



Command (? for help): r



Recovery/transformation command (? for help): l Enter backup filename
to load: gpt_original



Recovery/transformation command (? for help): w




Warning! Secondary partition table overlaps the last partition by 33
blocks! You will need to delete this partition or resize it in another
utility.



Aborting write of new partition table.




Note that before deleting gpt I already had the 33 blocks overlap and Windows 7 booted ok. Is there a way to force gdisk to restore my gpt with my backup?

No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...