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
Select the recovery entry in GRUB as soon as the computer starts:
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:
After eliminating the defective kernel in question, we have to have GRUB redetect the installed kernel versions with the command:
Once this is done, type the command:
and then select the option start the system normally or resume normal boot.
Another way to solve this problem (perhaps even simpler) is to use the input "Previous Linux versions "in the GRUB menu.
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 …
@blogdiolinux blogdiolinux @dionatanvs Go Google +