LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-07-2006, 11:05 AM   #1
gmorr
LQ Newbie
 
Registered: Mar 2006
Posts: 5

Rep: Reputation: 0
Unhappy how do I recover files from a disk crash


Greetings. It started out as an error at bootup saying that I had a bad superblock (2.6.17 kernel). However a 2.4.? kernel booted normally!! So I decided to run mke2fs with the -j (ext3) and -S (write superblock but don't touch the inodes, etc) options. It was very late and I was in a hurry and I left off the -S (ouch)!! I saw the mistake immediatly but you know linux - it's faster than superman at his best. I have no root directory!!! However, most of the disk is unchanged and I would like to try to find my config files in /etc, my bind files in /var, my config files in /usr/src/linux and my /root directory. Is there a program that will scan a disk for directory structures and recover them? I have a slackware distribution.
 
Old 09-07-2006, 11:20 AM   #2
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
You may want to repair the bad superblocks with a good one using the fsck command. You'll need to find the inodes of the copies of the superblock first with the dumpe2fs command.

My second choice would be to try TestDisk (http://www.cgsecurity.org/wiki/TestDisk).
 
Old 09-07-2006, 11:33 AM   #3
gmorr
LQ Newbie
 
Registered: Mar 2006
Posts: 5

Original Poster
Rep: Reputation: 0
Fortunatly, I had already used dumpe2fs to get the blocksize, etc. (and wrote the info down) and have replaces the superblocks. I still need to recover the directories. Will testdisk do this?

Gary
 
  


Reply



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
Get files from a disk image ? (How do I recover a floppy using Linux ?) me3 Linux - Software 7 06-11-2006 05:28 PM
Recover files from formatted hard disk bankfishin Linux - General 2 10-22-2004 04:39 PM
How can I recover from crash? glore Linux - Newbie 3 04-27-2004 09:49 AM
Mandrake 9.2 logout fills disk with crash files greatphotos Mandriva 3 01-20-2004 01:09 PM
Recover from a crash Scrotonomous Linux - Newbie 2 05-17-2003 11:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:34 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration