Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello, I am using OpenSUSE Leap 42.2. I made a typo in fstab by commenting a whole line that was /dev/system/home. Now I just want to comment, I think #/home, and the columns after that. I tried editing but it was read-only. I tried :wq! but it didn't work. I think I'm running as root. How do I make fstab writable?
I tried mount / -o remount,rw but It just let me type an indefinite number of lines. How do I exit that?
Last edited by ComputerCritic; 04-15-2017 at 11:33 AM.
Not sure what you mean with comment out HOME. If you mean that line you just need to remove HOME from that line as you cannot comment out just home from it without commenting out everything that follows.
For what it's worth, whenever I change a line in /etc/fstab, I remark out the original line and create a new line. That makes it easier, if I muck it up, to revert to the previous configuration. That has saved my bacon several times.
If worse come to worse, you can boot to a Live CD of something, mount the root partition, and edit /etc/fstab from there.
For what it's worth, whenever I change a line in /etc/fstab, I remark out the original line and create a new line. That makes it easier, if I muck it up, to revert to the previous configuration. That has saved my bacon several times.
If worse come to worse, you can boot to a Live CD of something, mount the root partition, and edit /etc/fstab from there.
How do I mount from a live CD?
And, I tried rescue system. Couldn't find out how to mount it from there.
Distribution: Mainly Devuan with some Tiny Core, Fatdog, Haiku, & BSD thrown in.
Posts: 5,442
Rep:
The file /etc/fstab is a system file therefore you must be the root operator to save changes to it.
(You can also use sudo if it is configured on your system.)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.