LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Recover ext3 ? (http://www.linuxquestions.org/questions/linux-software-2/recover-ext3-331654/)

djib 06-08-2005 04:39 PM

Recover ext3 ?
 
Hello,
I have recently installed gentoo and during the install process, I used cfdisk to change my partition table. I deleted hda1 (ntfs, ex-windows) and made an ext3. I didn't change anything else, and wrote my partition table on disk.
Now I have gentoo on hda1, but can't boot my debian on hda3 anymore. When I mount the disk in gentoo, I see only a lost+found directory. When I do a hexdump
Code:

hexdump -C /dev/hda3
I can see all my data (I can read some old mail, see text files, ...). How can I get this files back ?
I tried to recover my partition table with gpart but it didn't change a thing...
How can I get my files back ?

Thank you.

djib

bigrigdriver 06-08-2005 07:32 PM

Let's see if I understand correctly. You used to be able to boot Deb, but can't anymore. You can boot Gentoo. Correct?

Then, the most likely thing is that you either elected to install the Gentoo bootloader to the MBR, or Gentoo defaults to install there, and you missed the de-select "install to MBR" during installation. Then, Gentoo didn't correctly write the bootloader config which would let you to boot Deb.

How to verify? Since you can do a hexdump and see your Deb files, they're obviously still there. The fact that you can't see them when you mount the partition (or think you have mounted it) suggests the problem lies in the Gentoo /etc/fstab and the bootloader config.

Try this. Using hexdump, get the contents of the Deb /etc/fstab, and the Deb bootloader config. Then compare the contents of those files with the Gentoo /etc/fstab and bootloader config.

Edit as necessary to get Gentoo to recognize Deb and correctly mount the partition.

If this works, make a boot disk of some kind of each distro, so that you don't have to go through this again.

djib 06-09-2005 12:53 AM

Hey,
I don't really care about booting my Debian anymore but I wish I could access to its files. When I do a
Code:

mount /dev/hda3 /mnt/debian
I get no error message and then in /mnt/debian I only have one directory called /lost+foud.
I've been trying TestDisk utility that claims to be able to recover data from a ext3, but I did't get any good result...
Thanks for your help.

djib


All times are GMT -5. The time now is 08:41 AM.