Removing old kernels [Solved]

If you are new to Linux or new to Sabayon Linux and just not sure where to post, here ya go. Post without fear of being told to RTFM :-)

Moderator: Moderators

Removing old kernels [Solved]

Postby notzippy » Tue Apr 23, 2013 22:33

kernel-switcher makes it easy to install and run a new kernel - what is the best way to cleanly remove an old kernel (from system and grub2) ?

thanks
Nz
Last edited by notzippy on Tue Apr 23, 2013 23:03, edited 1 time in total.
notzippy
Growing Hen
 
Posts: 111
Joined: Sat Jun 16, 2012 14:34

Re: Removing old kernels

Postby Fitzcarraldo » Tue Apr 23, 2013 22:52

See Removing old kernels [Solved].

Then, if that does not also remove the old kernels from the GRUB 2 menu at boot, just update the GRUB 2 menu by doing the following:

Code: Select all
grub2-mkconfig -o /boot/grub/grub.cfg
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7977
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: Removing old kernels

Postby sabayonino » Tue Apr 23, 2013 23:00

@Fitz : grub2 will be updatet after install/remove the kernel automatically :

Example : Installing 3.7.4
Code: Select all
 Removing extents option for ext4 drives from /etc/fstab
 * Updating boot splash for /boot/initramfs-genkernel-x86_64-3.8.0-sabayon
 * Updating boot splash for /boot/initramfs-genkernel-x86_64-3.7.0-sabayon
Generating grub.cfg ...
Found background: /boot/grub/default-splash.png
Found linux image: /boot/kernel-genkernel-x86_64-3.8.0-sabayon
Found initrd image: /boot/initramfs-genkernel-x86_64-3.8.0-sabayon
Found linux image: /boot/kernel-genkernel-x86_64-3.7.0-sabayon
Found initrd image: /boot/initramfs-genkernel-x86_64-3.7.0-sabayon


removing 3.7.4
Code: Select all
Generating grub.cfg ...
Found background: /boot/grub/default-splash.png
Found linux image: /boot/kernel-genkernel-x86_64-3.8.0-sabayon
Found initrd image: /boot/initramfs-genkernel-x86_64-3.8.0-sabayon
  No volume groups found
done
:roll:
User avatar
sabayonino
Sagely Hen
 
Posts: 2463
Joined: Sun Sep 21, 2008 1:12
Location: Italy

Re: Removing old kernels

Postby notzippy » Tue Apr 23, 2013 23:03

Thanks, I did search in the forum for remove kernel and got nothing relevant.
And yes my grub file was adjusted during the removal

Nz
notzippy
Growing Hen
 
Posts: 111
Joined: Sat Jun 16, 2012 14:34


Return to Beginners|Newbies Area

Who is online

Users browsing this forum: No registered users and 1 guest