Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 03-14-2006, 01:26 PM   #1
LQ Newbie
Registered: Mar 2006
Posts: 2

Rep: Reputation: 0
fstab editing

hello all,
i am a new user of linux. i was using redhat9 machine networked with a server. when we login to the pc it was made to mount on to the /home of the server. now for making independant from the server (ie to boot solely on the pc) i edited the fstab. i made some mistake and now i cant edit the fstab as it is readonly. even if i log in as root on the pc there is no right to edit the fstab. i understand that the root on the server had the permissions and how can i tackle the problem? any suggestions and directions would be appreciated. when booting the system it asks for root password to solve. should i give the root password of the server? please help in this regard.
Old 03-14-2006, 01:32 PM   #2
Registered: Jul 2005
Location: France / Ireland
Distribution: Debian mainly, and Ubuntu
Posts: 536

Rep: Reputation: 79

first login as root and check the right of the fstab ls -l /etc/fstab
if even root is in read only type this chmod 600 /etc/fstab then you can try to edit with vi or what even you want but loged as root, and it should work.

Old 03-14-2006, 02:03 PM   #3
Registered: Jul 2005
Location: France / Ireland
Distribution: Debian mainly, and Ubuntu
Posts: 536

Rep: Reputation: 79
Does it work?
Old 03-15-2006, 04:09 AM   #4
LQ Newbie
Registered: Mar 2006
Posts: 2

Original Poster
Rep: Reputation: 0
thanks, but

hello angel,
i mentioned in the question that i could not change the permission by 'chmod' even when i login as root(of the local machine). the thing is that, the local machine was booting onto the server (linux only) and our work was done on the /home of the server. i tried to change the local machine to boot on to its /home so that i can work independantly. then error came and when i reboot fstab can not be edited. how can i change the permission of /etc/fstab? by giving the root password of the server? (since when the local machine was networked with the server our root was on the server). or what should i do to change the permission of the /etc/fstab? hope it is now clear to you.
thanks for your help...
Old 03-15-2006, 05:52 AM   #5
Senior Member
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,413
Blog Entries: 1

Rep: Reputation: 65
The problem is your filesystem is mounted as read only.
This is normal in the early stages of boot.
You need to remount the root filesystem in read-write mode.
# mount -o rw,remount /
Edit the /etc/fstab, and reboot right after that.



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
editing the fstab nkoplm Linux - Newbie 1 06-30-2005 02:21 AM
Editing fstab GingerMegs Linux - Software 1 06-04-2005 04:24 PM
Editing etc/fstab- yet again:-) hitest Slackware 7 04-21-2005 12:50 PM
Editing fstab jodef Yoper 4 11-27-2004 09:06 AM
Who is editing my fstab???!!! laszlo Linux - Newbie 5 06-30-2004 05:37 AM > Forums > Linux Forums > Linux - Newbie

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