I accidently erased my linux disks and like some help.
What happened:
- I wanted to install Windows 10 preview. Being cautious I backed up the mbr on the Crucial CT500MX200SSD1 SSD.
Code: Select all
dd if=/dev/sda of=mbr.bin bs=446 count=1
Code: Select all
diskpart -> select disk 1 -> clean
- I immediately powered off, and cloned the SSD.
- I wrote the backed up mbr back to the disk, hoping that would restore the paritions. No luck.
What I tried:
I tried testdisk to see if I could restore the paritions. There are atleast 4 paritions on the disk that I know of:
1)ext4: linux root, 2) linux swap 3) linux ext4 (home, and this is the one I am most interested in) and 4) NTFS.
I started with the Intel partition type, which see the 4 paritions but I get the message that the paritions cannot be recovered. Here are two screen shots:
Then I tried the EFI GPT parition type, which again sees the 4 paritions but I get the same message that they cannot be recovered.
Finally I tried the None type, and this sees the 4 paritions correctly. I can even list files and copy from the larger ext4 partition (but this is encrypted so just copying it does not help).
In the image above, I chiefly want to restore the 3rd listed parition (size 640000000) which is the encrypted home parition.
Some other pertinent information:
Code: Select all
> fdisk -l /dev/sdh
Disk /dev/sdh: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/sdh doesn't contain a valid partition table
I'll add the testdisk logs soon.
Thanks for the help in advance.
M.