Emergency mode fstab
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? |
To check if you are root run;
Code:
whoami |
Start by rebooting - force by holding the power button in need. That way we know what state you are in. Try the command as
Code:
mount -o remount,rw / |
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. |
Quote:
And, I tried rescue system. Couldn't find out how to mount it from there. |
Quote:
|
Quote:
Code:
mount --help Code:
fdisk -l /dev/sda Code:
gdisk -l /dev/sda Code:
mount -t auto /dev/sda1 /mnt Code:
blkid /dev/sda3 |
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.) |
All times are GMT -5. The time now is 08:19 PM. |