LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 06-08-2005, 05:39 PM   #1
djib
Member
 
Registered: May 2004
Location: France
Distribution: Debian
Posts: 132

Rep: Reputation: 15
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
 
Old 06-08-2005, 08:32 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,796

Rep: Reputation: 323Reputation: 323Reputation: 323Reputation: 323
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.

Last edited by bigrigdriver; 06-08-2005 at 08:33 PM.
 
Old 06-09-2005, 01:53 AM   #3
djib
Member
 
Registered: May 2004
Location: France
Distribution: Debian
Posts: 132

Original Poster
Rep: Reputation: 15
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
corrupt ext3 partition - need to recover whysyn Linux - Hardware 8 07-02-2010 09:30 AM
Trying to recover files with ext3 filesystem bgenora Linux - Newbie 1 11-07-2005 12:54 PM
recover fat partition formatted with ext3 by error mermoz Linux - Newbie 3 05-31-2005 07:55 AM
Reformatted ext3 filesystem - recover? addy86 Linux - General 11 01-10-2005 01:49 AM
recover files in ext3 hana_abe Linux - Newbie 3 11-16-2003 10:46 AM


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

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration