LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   corrupt reiserfs (https://www.linuxquestions.org/questions/linux-software-2/corrupt-reiserfs-165659/)

jacquedp 04-03-2004 05:17 AM

corrupt reiserfs
 
Hi,

I had a pwerfailure, and after this my SuSE 9 server boots up with an error " fsck failed"

I have remounted the file system as writable and then typed

fsck.reiserfs rebuild tree

This returns an error stating "failed to open the file system"

This has happened previously and I had to reload the server.

Please help all ye wise linux people ?

jailbait 04-03-2004 11:17 AM

"I have remounted the file system as writable and then typed

fsck.reiserfs rebuild tree"

You have to run fsck against an unmounted file system. If necessary boot into a rescue CD and run rsck from there.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites

jacquedp 04-03-2004 11:29 PM

If I don't mount the filesystem I get the same error "Unable to open the filesystem."

There must be a easy solution to this. Like in ms when it runs a scandisk and repairs errors on reboot.

jacquedp 04-03-2004 11:31 PM

Rescue cd ?

Should I boot from the cd and try to repair the installation ?

jailbait 04-04-2004 12:36 PM

"There must be a easy solution to this. Like in ms when it runs a scandisk and repairs errors on reboot."

The equivalent Linux program is fsck. See:
man fsck
http://www.die.net/doc/linux/man/man8/fsck.8.html

"Should I boot from the cd and try to repair the installation ?"

Yes. Instead of:
fsck.reiserfs rebuild tree

try the following command (assuming that your reiserfs partition is /dev/hda3):
fsck.reiserfs /dev/hda3

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites

jacquedp 04-05-2004 01:03 AM

I will give it a shot, thanks.

bigearsbilly 04-05-2004 05:40 AM

If you look at the messages you get from Suse when you boot
it tells you everything you need to do.

as above posting, and then
remount -o rw /dev/hd[blah] /

or similar.


billy

jacquedp 04-07-2004 02:27 AM

All up and running again.

I didn't type the (--) in front of :


fsck.reiserfs (--)rebuild-tree /dev/hda4

Thanks.


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