How To Fix A Non-Bootable Ubuntu System Due To Broken Updates Using A LiveCD And Chroot

If your Ubuntu system doesn’t boot because of some broken updates and the bug was fixed in the repositories, you can use an Ubuntu Live CD and chroot to update the system and fix it.1. Create a bootable Ubuntu CD/DVD or USB stick, boot from it and select “Try Ubuntu without installing”. Once you get to the Ubuntu desktop, open a terminal. 2. You need to find out your root partition on your Ubuntu installation. On a standard Ubuntu installation, the root partition is “/dev/sda1″, but it may be different for you. To figure out what’s the root partition, run the following command:sudo fdisk -lThis will display a list of hard disks and partitions from which you’ll have to figure out which one is the root partition.To make sure a certain partition is the root partition, you can mount it (first command under step 3), browse it using a file manager and make sure it contains folders that you’d normally find in a root partition, such as “sys”, “proc”, “run” and “dev”.3. Now let’s mount the root partition along with the /sys, /proc, /run and /dev partitions and enter chroot:sudo mount ROOT-PARTITION /mntfor i in /sys /proc /run /dev; do

Read more …

Comments are closed.