Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question is following Unable to mount /home/ partition after reinstalling grub after reinstalling windows 7 where the diagnostic was that installing windows 7 deleted my /home partition, lovingly called /dev/sda3.

Since almost nothing have been done with this computer since the incident, we can expect that the content of the partition is still intact and that it is only unusable for the moment.

The mission is to try to rescue the files that were inside this partition by restoring it to its original ext4 format.

Does anyone know how to proceed?

share|improve this question
up vote 2 down vote accepted

Right off the bat make a dd disk image of the drive, and work with that instead of the drive itself. That lets you experiment.

dd if=/dev/sda3 bs=1M > sda3.img

Beyond that I'm not sure. I'd hit google. Might look at it later.

edit; http://www.cgsecurity.org/wiki/TestDisk looks promising.

share|improve this answer
Testdisk is a good option. – jippie Oct 14 '12 at 9:03
I prefer using of=sda3.img, because using > is provided by the shell. Usually both work fine, but only the of-method is always guaranteed. – jippie Oct 14 '12 at 9:09
Thanks, I was able to restore my partition by following the TestDisk tutorial: cgsecurity.org/wiki/TestDisk_Step_By_Step – authchir Oct 14 '12 at 14:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.