Have you accidentally deleted all your Linux kernels and don't know what to do to fix your system? In this guide, we will help you repair your operating system using the instructions given below. You can use these instructions in the following Linux distributions:

  • Ubuntu 12.10/12.04/11.10 or older
  • Linux Mint 13/12 or older

  • Internet Connection
  • Ubuntu/Linux Mint Live CD/DVD/USB
Getting Started

Insert your Live CD/DVD or USB and boot into it. In the welcome screen of Ubuntu, select "Try Ubuntu without installing":

For Linux Mint, select "Start Linux Mint":

Wait now until your desktop loads completely, then start the terminal and run this command to check your hard disks:

 sudo fdisk -l
For my system, the Ubuntu/Linux Mint partition is mounted as /dev/sda1:

Run now these sequence of commands to get root privileges on your hard disk:

sudo mkdir -p /media/ubuntu 
sudo mount /dev/sda1 /media/ubuntu 
sudo mount --bind /dev /media/ubuntu/dev 
sudo mount --bind /proc /media/ubuntu/proc 
sudo mount --bind /sys /media/ubuntu/sys 
sudo chroot /media/ubuntu

Note: the word "ubuntu" is randomly selected and can be changed to any other name of your choice.

Let's now install the Linux kernel with this command:

apt-get install linux-image-generic

When the installation is complete, remove the live CD/DVD/USB and reboot your system.

Post a Comment