How To Repair Your Ubuntu System After Accidental Deletion Of All Linux Kernels
https://haxordoubt.blogspot.com/2012/11/how-to-repair-your-ubuntu-system-after.html
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:
Run now these sequence of commands to get root privileges on your hard disk:
Let's now install the Linux kernel with this command:
When the installation is complete, remove the live CD/DVD/USB and reboot your system.
source:http://www.upubuntu.com/
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 -lFor 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.
source:http://www.upubuntu.com/