When creating a Clonezilla live USB, I mistakenly entered the wrong device name in the
sudo dd if=/path/to/clonezilla-iso-file of=/dev/sda status=progress
sda was the laptop's HDD (I was meaning to type
sdb which was the USB drive. :(
Undestandbly, after rebooting I get a "No bootable device found".
I tried re-installing Ubuntu (by creating a new Ubuntu 20.04 bootable USB) and hoping that I could install the OS again while not losing any of the data from my HDD. When I go through the installation process I get a "This computer currently has no detected operating systems" and there is no "Reinstall" option which would potentially allow me to keep my data.
Is there a way to recover/access the data on my HDD (well, at least whatever was not overwritten by the
Any help would be most welcome!
Using an Ubuntu 20.04 bootable USB, I selected the "Try Ubuntu" option and on the terminal run
sudo gdisk -l /dev/sda which gave the following output:
GPT fdisk (gdisk) version 1.0.5
Caution: invalid main GPT header, but valid backup; regenerating main header from backup!
Warning: Invalid CRC on main header data; loaded backup partition table.
Warning! Main and backup partition tables differ! Use the 'c' and 'e' options on the recovery & transformation menu to examine the two tables.
Warning! Main partition table CRC mismatch! Loaded backup partition table instead of main partition table!
Warning! One or more CRCs don't match. You should repair the disk!
Main header: ERROR
Backup header: OK
Main partition table: ERROR
Backup partition table: OK
Partition table scan:
MBR: MBR only
BSD: not present
APM: not present
Found valid MBR and corrupt GPT. Which do you want to use? (Using the GPT MAY permit recover of GPT data.)
1 - MBR
2 - GPT
3 - Create blank GPT