LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-14-2006, 01:26 PM   #1
similar
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.
thanks
rajesh
 
Old 03-14-2006, 01:32 PM   #2
angel115
Member
 
Registered: Jul 2005
Location: France / Ireland
Distribution: Debian mainly, and Ubuntu
Posts: 492

Rep: Reputation: 75
Hi

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.

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

Rep: Reputation: 75
Does it work?
 
Old 03-15-2006, 04:09 AM   #4
similar
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...
rajesh
 
Old 03-15-2006, 05:52 AM   #5
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,393
Blog Entries: 1

Rep: Reputation: 63
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.
Code:
# mount -o rw,remount /
Edit the /etc/fstab, and reboot right after that.


cheers,
 
  


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


All times are GMT -5. The time now is 03:22 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration