LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 10-13-2003, 10:03 AM   #1
Schultz
LQ Newbie
 
Registered: Aug 2003
Posts: 3

Rep: Reputation: 0
Recover Data in Dead ReiserFS Filesystem


I am wondering how i can go about to get my data back on a dead ReiserFS.
My Kernal Paniced out for some reason when i rebooted and then when i tried to boot again it said i had a invalid Super Block on a ReiserFs So i read some documents and tried the reiserfsck --create-sb option from boot disks i had for Slackware and went through the options.. trying to recreate it.. It created one and then i tried to do a reiserfsck --rebuild-x (can't fully remember the command) so it would try to rebuild the system.. and it Kernal Panics out there.. So i think i created the Super block wrong but i can't create a new one because it says one is just fine.. Is ther any way for me to edit the super block again? Or any way to recreate teh Super block to try and get it the same as before? I haven't written anything to the drive.. i have tried using the dd option and it also kernal panics out. I am mainly wanting my MySQL database and some web files since my wife create a large photo gallery of our daughter.. and i know she wants them back.. the harddrive is create like this..

/dev/hda1 256M Linux Swap
/dev/hda2 5000M Linux (ReiserFS) /
/dev/hda3 10000M Linux (ext3) mounted /home
/dev/hda4 Rest of Harddrive (ext3) mount /develop for all my source downloads
Its a 20 gig Maxtor.. I can't get more detailed because i am reinstalling Slackware on another 20 gig harddrive.. Just wondering if there will be any way to pull my data of that partition the other Partitions are just fine. i was running Kernel 2.4.22 also.. Thanks..
 
Old 10-13-2003, 05:46 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,539

Rep: Reputation: 149Reputation: 149
If you have another Linux running, put both drives to the machine and boot the 'working' system. Then try to mount the Reiser partition. The commands will be:
mkdir /mnt/rescue
mount -t reiserfs /dev/hdb2 /mnt/rescue
(I'm assuming that the drive with broken partition is /dev/hdb now. If not use the command
mount -t reiserfs /dev/hda2 /mnt/rescue
insted) Does it work?
 
Old 10-13-2003, 06:01 PM   #3
Schultz
LQ Newbie
 
Registered: Aug 2003
Posts: 3

Original Poster
Rep: Reputation: 0
No i get errors that its an Invaild ReiserFS even after doing all that.. Thats why i tried re-creating the Super Block but i think it failed to do it correctly.. So i am wondering if there is any way you can recreate the partition without Formating and then try and rebuild the tree or anything of that nature..
 
Old 10-15-2003, 05:03 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,539

Rep: Reputation: 149Reputation: 149
So you tried --rebuild-sb option. Have you tried --check? You have always --rebuild-tree left, but I wouldn't do this without a backup (do you have enough place to copy the whole partition?).
 
Old 10-15-2003, 05:18 PM   #5
Schultz
LQ Newbie
 
Registered: Aug 2003
Posts: 3

Original Poster
Rep: Reputation: 0
well the problem was i could never copy the partition anywhere.. I couldn't mount it and dd would cause a kernal panic and not copy anything. I finally got --rebuild-tree to work without crashing.. To get all the # folders.. But i finally found all the files i was wanting to save.. thanks for your help anyways..
 
  


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
Software to acess and recover data on Fat32 data NeoSpawn Linux - Software 2 09-04-2005 12:37 PM
reiserfs partition lost, any way to recover? kostian Linux - Newbie 7 10-29-2004 05:31 PM
possible to recover corrupted reiserfs partition???? hollywoodb Linux - Newbie 1 10-10-2003 06:44 PM
How can you recover a dead redhat 9? slinkysteve Linux - Software 2 06-27-2003 11:37 AM
filesystem: recover or not to recover? bdp Linux - General 3 06-06-2003 04:40 AM


All times are GMT -5. The time now is 12:27 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration