How to Repair a Broken System After Kernel Upgrade Using Recovery Mode – Ubuntu 12.10 / 12.04 / 11.10 / Linux Mint 13

How to recover Ubuntu or Mint

The Linux kernel is very solid, but also one of the most sensitive parts of the system, any deeper modifications can make the system unstable, but do not despair it is hardly necessary to re-format.

In this tutorial we will look at how to use recovery mode to repair a corrupted system resulting from installing or upgrading to a new kernel. This will help you avoid formatting and reinstalling the operating system as well as regaining access to your data. This tutorial applies to the following distributions:

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

First steps

Select the recovery entry in GRUB as soon as the computer starts:

grub-recovery "src =" http://1.bp.blogspot/-_YAvrJXlqrg/UFSTdc6y66I/AAAAAAAAGlU/Q1-4AvXqoHg/s640/grub-recovery-mode-1.png "title =" Select recovery mode

Then select the recovery method by terminal as ROOT:

Now we need to give a command to allow reading and writing files on our Linux:

mount -rw -o remount /

Now we need to disable / uninstall the kernel that is causing problem and return to the previous one.

sudo apt-get purge linux-image-x.x.x *


Replace xxx with the Linux kernel version you installed (3.5.3, 3.4.8, 3.4.0, etc.). You can display the current version of the installed kernel with the command:

uname -r

After eliminating the defective kernel in question, we have to have GRUB redetect the installed kernel versions with the command:

sudo update-grub

Once this is done, type the command:


and then select the option start the system normally or resume normal boot.

Extra Solution

Another way to solve this problem (perhaps even simpler) is to use the input "Previous Linux versions "in the GRUB menu.

And then…

This way you could boot the system with the old kernel, so in a graphical environment you can use Synaptic or the terminal to remove or reinstall the defective kernel package.

Note: If you do not have Synaptic installed, you can easily install it with the command:

sudo apt-get install synaptic

Alternatively you can download the package from the Ubuntu program center (Mint already comes with Synaptic), look for "Linux-image-xxxx" where "xxxx" is the version of the kernel you wish to uninstall.

That's it guys.


Stay on top of everything that happens at Diolinux …

Twitter Diolinux "src =" http://2.bp.blogspot/-VCCu7Ke2LFA/TqLa2WjzHaI/AAAAAAAAZQ/EbYw32VQMZs/s000/twitter.png "style =" cursor: move;@blogdiolinux Facebook "src =" http://1.bp.blogspot/-XfyY7vEVwxw/TqLa2pTRTKI/AAAAAAAAAZY/VsLafhC-cfI/s000/facebook.png blogdiolinux Twitter Diolinux "src =" http://2.bp.blogspot/-VCCu7Ke2LFA/TqLa2WjzHaI/AAAAAAAAQ/EbYw32VQMZs/s000/twitter.png@dionatanvs Google Plus "src =" http://1.bp.blogspot/-Pk6eu7KfCSc/TqLa23mRhkI/AAAAAAAAAZg/3z2_LnO_rTI/s000/gplus.png Go Google +