I accidentally wiped my partitions when trying to clone my drive to a larger drive. I have a dual boot debian/windows 10 lenovo laptop, and was trying to transfer my OS drive from a 1TB SSD to a 2TB SSD. I used clonezilla to clone my drive to the new drive, trying to have all the extra space on the drive in the windows partition. From lack of experience I ended up using sgdisk backwards, copying the empty 2TB partition onto my full 1TB drive. (why would the first argument be the target drive? mental)
Onto the matter at hand. I made a new windows installation on the new drive and am using testdisk on the old drive to try and recover my data. My important data is backed up but I would really rather not have to reinstall debian from scratch because it took me about a week to get it done properly the first time. When using a quick search, it is able to see all the partitions HOWVER, I get the following error:
Code: Select all
The harddisk (1024 GB / 953 GiB) seems too small! (< 2047 GB / 1907 GiB)
Check the harddisk size: HD jumper settings, BIOS detection...
The following partition can't be recovered:
Partition Start End Size in sectors
> MS Data 2000408575 3999557630 1999149056
Code: Select all
Disk /dev/sdc - 1024 GB / 953 GiB - CHS 124519 255 63
Partition Start End Size in sectors
>P MS Data 2048 1085439 1083392 [Recovery]
D EFI System 1085440 1290239 204800 [EFI System Partition] [NO NAME]
D MS Data 1259520 2000408575 1999149056
D MS Data 1323008 1576962047 1575639040
D Linux filesys. data 1576962048 1933463551 356501504
D Linux Swap 1933463552 2000408559 66945008
Code: Select all
Device Start End Sectors Size Type
/dev/nvme0n1p1 2048 1085440 1083392 529M Windows recovery environment
/dev/nvme0n1p2 1085440 1290239 204800 100M EFI System
/dev/nvme0n1p3 1259520 1323008 32768 16M Microsoft reserved
/dev/nvme0n1p4 1323008 1576962047 1575639040 751.3G Microsoft basic data
/dev/nvme0n1p5 1576962048 1933463551 356501504 170G Linux filesystem
/dev/nvme0n1p6 1933463552 2000408559 66945008 31.9G Linux swap
- Is it at all possible to recover this drive so that it is bootable?
- Which should be the bootable partition?
- In the documentation I see that there's a way to mark a partition as bootable, but I don't seem to be able to do it using testdisk_win.exe. The option isn't there.
- Should all paritions be marked as Primary so that they are not deleted?
I would post the log file here but it is too long. Where can I put it do that you can see it? I don't see a place to upload a .txt file