Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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
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.
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.