How to edit /etc/fstab when system boots to read only file system?
The way you have tried the mount
command still uses the information from /etc/fstab
.
Try the following version and it should work independent of the contents of /etc/fstab
:
mount -o remount,rw /dev/sdb6 /
Note: Instead of /dev/sdb6, use whatever device is valid for your drive.
To get things back to where they should be, I:
- Highlighted 'Ubuntu' at the boot menu
- hit 'e' to edit the configuration
- in the line starting with
linux=
, I switched the 'ro' to 'rw' and added the word 'single' at the very end of the line - hit f10 to boot
once it booted, as root, I did:
mount -o remount,rw /
as root, I edited /etc/fstab to get it where it needed to be
- rebooted normally and everything seems to be fixed