ksatta1
May 12th, 2012, 06:35 PM
I accidentally deleted my partition table. I used dd ... bs=512 instead of bs=440 while trying to remove grub.. doh :D
Anyway I thought it would be easy for testdisk to find the partitions, but it looks like it only found 2 partitions which weren't actually partitions, I think they were some backup files I created with dd/fsarchiver/etc.. I tried deep search too.
Then it suggested to change the heads per cylinders to 8. Trying that now but it looks like it's not finding any partitions.
At the time I accidentally deleted the partition table it was something like this:
<unpartitioned space>
<ext4 partition>
<NTFS partition>
<extended>
<...>
I'm wondering if the unpartitioned space in the beginning is throwing testdisk off. Maybe if I find where the first ext4 partition starts then I could create some partition from position 0 - beginning of ext4 partition.
I'm thinking of creating a bash script to search for ext4 magic bytes, but if anyone else has more knowledge or something else I could try first :)
Also is there any chance that gpart would work better? (haven't tried it yet, each try takes a couple of hours, the drive is 1TB).
Anyway I thought it would be easy for testdisk to find the partitions, but it looks like it only found 2 partitions which weren't actually partitions, I think they were some backup files I created with dd/fsarchiver/etc.. I tried deep search too.
Then it suggested to change the heads per cylinders to 8. Trying that now but it looks like it's not finding any partitions.
At the time I accidentally deleted the partition table it was something like this:
<unpartitioned space>
<ext4 partition>
<NTFS partition>
<extended>
<...>
I'm wondering if the unpartitioned space in the beginning is throwing testdisk off. Maybe if I find where the first ext4 partition starts then I could create some partition from position 0 - beginning of ext4 partition.
I'm thinking of creating a bash script to search for ext4 magic bytes, but if anyone else has more knowledge or something else I could try first :)
Also is there any chance that gpart would work better? (haven't tried it yet, each try takes a couple of hours, the drive is 1TB).