LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   fstab editing (https://www.linuxquestions.org/questions/linux-newbie-8/fstab-editing-424789/)

similar 03-14-2006 01:26 PM

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

angel115 03-14-2006 01:32 PM

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.

angel115 03-14-2006 02:03 PM

Does it work?

similar 03-15-2006 04:09 AM

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

marozsas 03-15-2006 05:52 AM

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,


All times are GMT -5. The time now is 08:31 AM.