Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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 partion, lovingly call /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 it's original ext4 format.

Does anyone know how to proceed?

share|improve this question
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.