Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Fedora This forum is for the discussion of the Fedora Project.


  Search this Thread
Old 01-19-2006, 02:00 AM   #1
LQ Newbie
Registered: Jan 2006
Posts: 1

Rep: Reputation: 0
cannot edit fstab in SELinux active mode

I'm not a newbie using Fedora but this is the first time I encountered this problem.

I installed a new hard drive to a FC4 machine. I formatted using FDISK and followed instructions to setup the new hard drive. My last step was to edit /etc/fstab. adding LABEL=....

I messed it up. Now, I'm forced into a SELinux active mode. I can login using ROOT pwd but when I try to modify /etc/fstab, it says that is a read-only file.

My machine doesnt boot any further since this is a problem with file system. Any help is appreciated.

Old 01-19-2006, 04:38 AM   #2
Senior Member
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Rep: Reputation: 45
You will have to force-write (or change the perms on) the file. If you are using vi as your editor, save with :x! to force it (the file will remain read-only), the other way is to chmod +w the file, edit it (with nano, emacs, vi), save, chmod -w again.


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
fstab not edit-able? lefty.crupps MEPIS 1 06-06-2005 06:36 PM
How do I edit /etc/fstab? linusownsme Linux - Software 9 03-05-2005 12:30 PM
edit fstab - what i ve to do ? thinkdifferent Linux - Newbie 4 12-23-2003 05:20 PM
edit fstab LinuxOG Linux - Distributions 2 09-01-2003 11:27 AM
How do I change "fstab" to Write/Edit Mode? sharathkv Linux - Newbie 4 07-29-2003 08:52 AM > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 03:38 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