LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 05-02-2004, 04:45 AM   #1
antipop
Member
 
Registered: Apr 2004
Distribution: debian
Posts: 62

Rep: Reputation: 15
corrupted reiserfs, can't repair


i had troubles with mandrake 10.0 and twice it hanged up while shutting down so i had to hard reset it.
First time it went well but now i can't load mandrake anymore, durng the boot i have an eror message. Something along those lines :
Warning : bad format on line 1 of /etc/fstab
Warning : Your /etc/fstab does not contain the fsck passno

Then it ask me if i want the system to try to repair the disk but it always fails
I can boot into a kind of terminal mode to repair the disk but if i do fsck.reiserfs --check my reiser device it always tell me that it had no problem
I did anyway the --repair-tree and --repair-sb without any success

when i type exit to reboot the comp i get various message (i can't read them all cause i't's going fast)
However i've 2 warning like this :
Warning : no final new line at hte end of the /etc/fstab
Warning : no final new line at hte end of the /etc/mbtab
 
Old 05-02-2004, 05:14 AM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Post your fstab...
 
Old 05-02-2004, 05:17 AM   #3
antipop
Member
 
Registered: Apr 2004
Distribution: debian
Posts: 62

Original Poster
Rep: Reputation: 15
how can i access it with the repair tool, there si no thing as vi or emacs
I tried to open it in some way but i didn't found the proper tool
 
Old 05-02-2004, 02:19 PM   #4
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
use cat. You will have to copy it manually.

Now that I think about it, you must have some sort of editor available from this rescue mode...I don't know about Mandrake but I remember using Redhat, and from the rescue mode you would have to mount your / filesystem to access it, something like 'mount /dev/hdx /mnt/sysimage' then you could chroot to /mnt/sysimage to make repairs.
 
Old 05-02-2004, 04:21 PM   #5
antipop
Member
 
Registered: Apr 2004
Distribution: debian
Posts: 62

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by bulliver
use cat. You will have to copy it manually.

damn i forgot about cat, maybe that's why i'm still a newb
 
Old 05-04-2004, 04:54 AM   #6
antipop
Member
 
Registered: Apr 2004
Distribution: debian
Posts: 62

Original Poster
Rep: Reputation: 15
I did a cat for fstab and mtab
I only got an internet server adress and some exotic random letters
How can i repair this?
 
Old 05-04-2004, 05:15 PM   #7
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Do you remember how your partitions are set up? You will just have to create it manually. Just remember the format of it:
Code:
# <filesystem>     <mountpoint>    <type>     <opts>       <dump/pass>
# Example:
/dev/hda1           /boot          ext2            defaults          1 2
/dev/hda2           /                reiserfs        defaults          0 1
/dev/hda3           /usr            reiserfs        defaults          0 0
/dev/hda4           /home         reiserfs        defaults          0 0
/dev/hdb3           none          swap           sw                 0 0
none                  /proc          proc            defaults          0 0
Just look some more at your rescue disk for a text editor. I know you said there isn't one, but there must be. A rescue disk without an editor is useless. cd to /bin and ls it. Look for vi(m) joe, nano, something like that.
 
Old 05-04-2004, 05:20 PM   #8
antipop
Member
 
Registered: Apr 2004
Distribution: debian
Posts: 62

Original Poster
Rep: Reputation: 15
I didn't said there wasn't a text editor i said that i didn't found one, but i mustn't have looked at the right place

However i don't remember exactly how the partition was set up, is there a way to recover it using knoppix?
 
Old 05-04-2004, 09:14 PM   #9
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Sure. Boot the knoppix cd, run fdisk or cfdisk and print the partition table. Write this down!!! If you still cant remember what's on each partition, mount them somewhere and have a look. Probably easier just to fix your fstab from knoppix as well.
 
  


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
repair corrupted ext3 filesystem rvijay17 Linux - General 3 06-20-2009 11:35 AM
2.6.7, reiserfs and corrupted tree stelmed Slackware 2 10-26-2004 07:46 AM
Corrupted my ReiserFS by fixing it...HELP! pAn1k Linux - Software 7 09-13-2004 12:40 AM
reiserfs got corrupted - fsck hangs hd !? krizu Linux - General 4 06-13-2004 05:37 PM
repair a damaged reiserfs wfettich Linux - General 2 05-21-2004 03:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:44 PM.

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