Last Updated: February 25, 2016
·
40.1K
· ihcsim

Ubuntu Recovery Mode - R/W File System

Messed up the /etc/environment file in my Ubuntu 12.04 LTS vm today. Here's how I boot into Ubuntu recovery mode and access the file system as root in write mode.

  1. Hold 'Shift' while the machine is starting up to load up GNU GRUB
  2. Start up Ubuntu in recovery mode
  3. Choose "Drop To Root Shell Prompt'
  4. By default, this will allow you to access the file system in read-only mode
  5. Switch to read/write mode by executing

This:

$ mount -o remount,rw /

Now I can fix whatever files I messed up earlier