Least Action

Nontrivializing triviality..and vice versa.

Archive for February 2011

Use the Ubuntu Live CD to mount your local installation

leave a comment »

If you’re having trouble booting into Ubuntu, you can boot off the Live CD/DVD, and click on “Try Ubuntu”. Then, fire up a terminal window and type

sudo mount /dev/sdXX /mnt  (XX is where your installation is, e.g. sdb1)
sudo mount --bind /dev  /mnt/dev
sudo mount --bind /dev/pts  /mnt/dev/pts
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys  /mnt/sys
sudo chroot /mnt

These commands will mount your Ubuntu system in /mnt, and the last command will change the root directory to /mnt, so whatever commands you issue will now apply to your original Ubuntu installation (not the Live CD).

After you’ve diagnosed and repaired the problem, type

exit
sudo umount /mnt/dev/pts
sudo umount /mnt/dev
sudo umount /mnt/proc
sudo umount /mnt/sys
sudo umount /mnt
Advertisements

Written by Vivek

February 5, 2011 at 02:07

Posted in Linux, Technology