LinuxQuestions.org
Register a domain and help support LQ
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-06-2002, 11:35 PM   #1
aditya
Member
 
Registered: Aug 2002
Distribution: RH 7.x
Posts: 71

Rep: Reputation: 15
Red face messed up my fstab file


Hi,
I recently was at root login, and ran some stupid command (don't ask me), and it appended the result to my fstab file. I then also forgot to delete that rubbish, and restore the file.
So, on restarting the computer linux says that it can't undestand what's written in fstab, and then it asks the root password for file system maintanance. But it mounts the filesystem read-only, so I was able to open the fstab, but couldn't correct it.
Then I thought I'd boot from linux CD in rescue mode, and then mount my linux partition, and correct fstab.
But on booting from CD in rescue, I found out that the /dev directory didn't have a file named /hda(something). So, I couldn't correct it from there either.
Again, I booted in linux single mode, but didn't get the result.


Any suggestions?
 
Old 10-07-2002, 01:49 AM   #2
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
Boot into single mode again and try running mount -n -o remount,rw /. If it doesn't work with the ' / ' at the end of the command, try specifying the root partition.
( Ex. mount -n -o remount,rw /dev/hda6 ).
 
  


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
Need with messed up fstab. Tiyogi Linux - General 11 03-26-2008 01:57 AM
file system messed up, help! eaglegst Debian 3 08-31-2005 07:14 PM
Messed up my fstab, now wont boot! Help, please. MillyFish Linux - Newbie 11 05-13-2004 08:37 AM
RH9 - won't boot - messed up fstab amanu1 Linux - Newbie 1 05-06-2004 08:52 PM
fstab got messed up after adding cd burner drrnsk8ter4 Linux - Software 3 04-24-2004 06:49 PM


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