On Linux laptop, I mistakenly entered the wrong main HDD name in a dd
command sudo dd if=/path/to/clonezilla-iso-file of=/dev/sda status=progress
(clonezilla ISO file was 306 MB).
[This is a more complete follow-up of my original post following @PonJar and @oldfred suggestions, plus other online suggestions.]
When I restart the laptop, I get a "No bootable device found". Even when trying to re-install Ubuntu I get a "This computer currently has no detected operating systems" and the only option is to install the OS while wiping all data on the disk.
I understand that (hopefully) part of the disk that was overwritten is not recoverable. But I would still love if I could at least access (retrieve or extract) whatever data is still there.
What I tried so far:
Using an Ubuntu 20.04 bootable USB, I selected the "Try Ubuntu" option. Through the terminal, I could not access any of my 'old' data (nothing under the home
directory).
I tried 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
GPT: damaged
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
Your answer:
There, I entered 2
and got this:
Disk /dev/sda: 1953525168 sectors, 931.5 GiB
Model: TOSHIBA MQ04ABF1
Sector size (logical/physical): 512/4096 bytes
Disk identified (GUID): B8CE21AF-F666-9ADA-9B95B7FFACFD
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 1953525134
Partitions will be aligned on 2048-sector boundaries
Total free space is 3437 sectors (1.5 MiB)
Number Start (sector) End (sector) Size Code Name
1 2048 1050623 512.0 MiB EF00 EFI System Partition
2 1050624 1953523711 931.0 GiB 8300
Then I tried sudo parted -l
and got this:
Model: ATA TOSHIBA MQ04ABF1 (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File System Flags
1 32.8kB 321MB 321MB Primary boot, hidden
Warning: The driver descriptor says the physical block size is 2048 bytes, but Linux says it is 512 bytes.
Ignore/Cancel?
Here, not sure how (and if) I can proceed.
Finally, based on advice from other online blogs, I tried accessing the BIOS and under the "Security" tab, tried selecting the “Select an UEFI file as trusted for executing” but my hard disk was not listed (I only have 1 hard disk and nothing was listed).
Is there anything else I can try? Is it possible to access my hard disk as an external disk from another device? Any help will be great cause I am getting desperate to retrieve my data.