Review your favorite Linux distribution.
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 09-07-2004, 08:23 PM   #1
LQ Newbie
Registered: Aug 2004
Posts: 4

Rep: Reputation: 0
fstab file corrupted

While trying to create a RAID disk, my fstab file was corrupted. The YaST module deleted the / entry for my main filesystem and my computer will no longer boot into X. Because the filesystem is not in fstab it cannot be mounted. If I try to replace the file it says that the /etc/ directory is read-only. Because it is read only, I am unable to do anything with it. If I could just find a way to edit the file I am sure it will boot properly again. Can anyone help?

Old 09-07-2004, 08:35 PM   #2
Gentoo Developer
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 56
I don't know why it won't let you if you are root?
Old 09-07-2004, 11:14 PM   #3
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
/etc/fstab should be read-only for normal users, and read-write for root. I hope you have some kind of boot disc, like perhaps the install cd to boot into. If so, once booted, open a terminal and do 'ls -l /etc/fstab' to see the r-w-x permissions and ownership. If the permissions are ok, then you should only need to su to root, and use vi to edit fstab. Then reboot without the cd.


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 2 08-12-2005 01:12 PM
help backup server corrupted /etc/fstab mahaila Linux - General 2 08-12-2005 01:12 PM
Yet another corrupted /etc/fstab Dag Linux - General 2 06-08-2004 11:17 AM
Corrupted fstab DevlshOne Linux - Newbie 1 01-16-2004 06:57 PM
Corrupted /etc/fstab nxny Linux - General 15 09-01-2003 09:06 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:24 PM.

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