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.
- Hold 'Shift' while the machine is starting up to load up GNU GRUB
- Start up Ubuntu in recovery mode
- Choose "Drop To Root Shell Prompt'
- By default, this will allow you to access the file system in read-only mode
- Switch to read/write mode by executing
$ mount -o remount,rw /
Now I can fix whatever files I messed up earlier