Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 06-08-2004, 03:07 AM   #1
LQ Newbie
Registered: Jun 2004
Posts: 26

Rep: Reputation: 15
Yet another corrupted /etc/fstab

Hey all,
I was using Mandrake (10) just a few minutes earlier, and while loading the computer configuration app, it started getting a slow... really slow... and then most of KDE - well, disappeared. Poof. I was left with the config window and my GAIM window, neither of which had borders, or (hence) could be moved or modified in any way. I spent a couple minutes trying to get KDE to reappear (no, the taskbar wasn't just hidden) and, having no luck, I decided that I'd just shut it down manually (since I couldn't get out of KDE either) and reboot. Big mistake, I guess.

I rebooted it and started loading Linux to find that /etc/fstab was basically totally corrupted, which is, obviously, somewhat problematic.

I popped in my install disc, ran it under rescue mode and fsck'd dev/hda2 (my Linux partition) with -f - nothing looked abnormal, so now I guess what I need to do is try to restore/rewrite my /etc/fstab, but I'm really not sure how to do this from the rescue prompt. I was thinking I could make a copy of a bare-bones fstab, load it on a floppy and try to copy it that way, but will that work if the floppy is DOS/Windows formatted? It would be nice if there were some way to restore an earlier version of fstab, actually, because I'm not sure how well Mandrake will work on this laptop with a bare-bones version.

Suggestions? Am I just going to have to do a fresh install and hope this doesn't happen again?

Last edited by Dag; 06-08-2004 at 03:13 AM.
Old 06-08-2004, 09:13 AM   #2
Senior Member
Registered: Oct 2003
Posts: 2,666

Rep: Reputation: 238Reputation: 238Reputation: 238
When fstab is rewritten, mdk should make a backup copy of the old fstab automatically at /etc/fstab~. If you can mount your root partition in rescue mode you should be able to overwrite your corrupted fstab with the backup fstab~ by doing:

# mv /etc/fstab~ /etc/fstab

Before doing so you might want to check and make sure fstab~ looks good by running:

# cat /etc/fstab~
Old 06-08-2004, 12:17 PM   #3
LQ Newbie
Registered: Jun 2004
Posts: 26

Original Poster
Rep: Reputation: 15
Thanks... I tried that earlier and I couldn't get it to work, but I was just leaving the house and hence in a bit of a rush - I didn't get to try everything I would've liked to (read: I'm not sure I did it right) so I'll have to try again when I get home and hopefullly I'll be able to work things out.

If not, I guess I'll try with the floppy and if that doesn't work I'll probably just reinstall - I didn't have much on the Linux partition anyway.


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
help backup server corrupted /etc/fstab mahaila Linux - General 18 08-13-2005 02:02 PM
help backup server corrupted /etc/fstab mahaila Linux - General 2 08-12-2005 02:12 PM
fstab file corrupted LSEmpyrean Linux - General 2 09-08-2004 12:14 AM
Corrupted fstab DevlshOne Linux - Newbie 1 01-16-2004 07:57 PM
Corrupted /etc/fstab nxny Linux - General 15 09-01-2003 10:06 AM > Forums > Linux Forums > Linux - General

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration