uninstall kernel from live cd

Write tutorials for Linux Mint here
More tutorials on https://github.com/orgs/linuxmint/discu ... /tutorials and (archive) on https://community.linuxmint.com/tutorial
Forum rules
Don't add support questions to tutorials; start your own topic in the appropriate sub-forum instead. Before you post read forum rules
Post Reply
la_monda
Level 2
Level 2
Posts: 65
Joined: Wed Apr 02, 2008 6:54 pm

uninstall kernel from live cd

Post by la_monda »

Hallo to all, i upgraded my kernel using the steps provided by this post: http://forums.linuxmint.com/viewtopic.php?f=42&t=40185
and ended up with an unbootable system. My laptop has only mint installed and since the upgrade i cant get into grub to boot to the earlier kernel to remove the one that i installed. Is there an way i can do this from a live cd?
Thnx in advance for the support!
User avatar
tdockery97
Level 14
Level 14
Posts: 5058
Joined: Sun Jan 10, 2010 8:54 am
Location: Mt. Angel, Oregon

Re: uninstall kernel from live cd

Post by tdockery97 »

When you install a new kernel, it doesn't remove/replace the old kernel. It will result in additional boot options in Grub, with your newest kernel being the default. If Grub is not showing up on boot, then it got borked somehow in the process. You need to use your live CD/DVD to reinstall grub. You'll find a howto here: https://help.ubuntu.com/community/Grub2. Item #12 on the index on the right side of the page.
Mint Cinnamon 20.1
mick55

Re: uninstall kernel from live cd

Post by mick55 »

tdockery97 wrote:If Grub is not showing up on boot, then it got borked somehow in the process.
If Mint is the only OS on his PC, then GRUB 2 will boot directly to the login
prompt or Desktop without displaying a menu.

Hold down SHIFT to display the hidden menu during boot, and then
select your previous kernel from the menu.




mick
User avatar
tdockery97
Level 14
Level 14
Posts: 5058
Joined: Sun Jan 10, 2010 8:54 am
Location: Mt. Angel, Oregon

Re: uninstall kernel from live cd

Post by tdockery97 »

la_monda wrote:My laptop has only mint installed
Sorry, I missed that part. :oops:
Mint Cinnamon 20.1
la_monda
Level 2
Level 2
Posts: 65
Joined: Wed Apr 02, 2008 6:54 pm

Re: uninstall kernel from live cd

Post by la_monda »

The "shift" trick revealed me the grub menu, booted with the old kernel and everything is ok. Now to remove the faulty kernel can i use synaptics? Thnx again!!
mick55

Re: uninstall kernel from live cd

Post by mick55 »

la_monda wrote:to remove the faulty kernel can i use synaptics? Thnx again!!
Yes you can.

Just search Synaptic for "linux-image-2.6" and "linux-headers-2.6" and remove the offending one. :wink:

When you remove the kernel via Synaptic Package Manager, Grub2 is automatically
updated to reflect the changes.You will regain about 200mb of disk space.



mick
la_monda
Level 2
Level 2
Posts: 65
Joined: Wed Apr 02, 2008 6:54 pm

Re: uninstall kernel from live cd

Post by la_monda »

Thanks again!!! :D
Post Reply

Return to “Tutorials”