> esc
move open g h home ? help
$ cat /post/ubuntu-recovery-mode-mounting-read-only-filesystem.md

Ubuntu recovery mode mounting read only filesytem

I recently made some changes to my /etc/X11/xorg.conf file which backfired and Ubuntu (12.10 in this case) would crash while loading the operating system.

It should be simple enough to undo the last change you made to a system file when booting into recovery mode, but alas it is not straightforward because when booting into recovery mode the filesystem is mounted as read-only! Oh dear!

  1. Boot into the Advanced options → Recovery Mode entry on the GRUB menu (hold Shift during boot if GRUB is hidden).
  2. From the recovery menu pick “Drop to root shell prompt” (exact wording may vary slightly by Ubuntu version).
  3. Enter the following command to remount your filesystem as read-write:
mount -o remount,rw /
  1. Make the required changes to your operating system and then exit / reboot.

The mount -o remount,rw / incantation is the evergreen part — it has worked unchanged from Ubuntu 12.10 through every release since.

$ env | grep ^CAT
CAT_01=sysadmin
CAT_02=configuration
$ env | grep ^TAG
TAG_01=x11
TAG_02=xorg
TAG_03=ubuntu
TAG_04=mount
TAG_05=recovery mode