LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Recover Data in Dead ReiserFS Filesystem (https://www.linuxquestions.org/questions/linux-newbie-8/recover-data-in-dead-reiserfs-filesystem-103397/)

Schultz 10-13-2003 09:03 AM

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..

Mara 10-13-2003 04:46 PM

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?

Schultz 10-13-2003 05:01 PM

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..

Mara 10-15-2003 04:03 PM

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?).

Schultz 10-15-2003 04:18 PM

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..


All times are GMT -5. The time now is 04:21 AM.