LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   messed up my fstab file (https://www.linuxquestions.org/questions/linux-newbie-8/messed-up-my-fstab-file-32094/)

aditya 10-06-2002 10:35 PM

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?

linuxcool 10-07-2002 12:49 AM

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


All times are GMT -5. The time now is 06:00 PM.