Page 1 of 1

Can TestDisk recover paritions inside another partition?

Posted: 15 Jul 2018, 06:41
by bhch
My internal hard disk just crashed and all the partitions are gone. I tried using TestDisk's Deep Search feature
but it's taking too long - it just hangs at 45% for more than a day. Scanning 1 cylinder takes more than 5 minutes.
Probably the disk is too damaged.

I understand that I should first clone this disk to another disk using ddrescue and then try running TestDisk on
that new disk to recover partitions, that way it would much faster.

The problem is that I have only 1 external disk. and it already has some data. I was thinking of creating a new partition
on my external disk and then clone my internal disk into that partition using ddrescue.

My question is, if I create a partition on my new disk and clone my old hard disk into that partition, will TestDisk
be able to recover old partitions from that new partition?
The scenario would be like partitions within a partition, I don't know if that works or not.

Re: Can TestDisk recover paritions inside another partition?

Posted: 15 Jul 2018, 09:22
by cgrenier
You can use ddrescue to create an image file and once it's done run testdisk on the image.dd file.
It will be better to using ddrescue to write to a partition.

Re: Can TestDisk recover paritions inside another partition?

Posted: 15 Jul 2018, 10:10
by bhch
Follow up question:
My hard disk had NTFS and Ext4 partitions.
So in which format should I create the new partition to hold the image?
Or that doesn't really matter?

Re: Can TestDisk recover paritions inside another partition?

Posted: 17 Jul 2018, 05:53
by cgrenier
It doesn't really matter but it must not be fat32 as no file bigger than 4 GB can be created on it.

Re: Can TestDisk recover paritions inside another partition?

Posted: 18 Jul 2018, 11:19
by bhch
I can't thank you enough for you help.