PDA

View Full Version : [all variants] Multiple linux images found?



Camaguey
February 18th, 2010, 03:42 AM
I found that I had serveral versions of...? the linux kernel?


GLaDOS, sudo update-grub
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.31-20-generic
Found initrd image: /boot/initrd.img-2.6.31-20-generic
Found linux image: /boot/vmlinuz-2.6.31-19-generic
Found initrd image: /boot/initrd.img-2.6.31-19-generic
Found linux image: /boot/vmlinuz-2.6.31-18-generic
Found initrd image: /boot/initrd.img-2.6.31-18-generic
Found linux image: /boot/vmlinuz-2.6.31-14-generic
Found initrd image: /boot/initrd.img-2.6.31-14-generic
Found memtest86+ image: /boot/memtest86+.bin
done

Is it safe to delete all but the most recent one?

adam814
February 18th, 2010, 03:45 AM
Yes, if everything works for you in the newest kernel you can remove the packages associated with the older ones. It wouldn't be safe to have the package manager remove them automatically, but you can do it yourself.

Satoru-san
February 18th, 2010, 03:47 AM
I found that I had serveral versions of...? the linux kernel?
{snip}
Is it safe to delete all but the most recent one?
Why? Why would you delete them? They are there just incase something breaks and allow you to fix your system! They aren't hurting you and are taking up less than 5 megs each, not to mention that they are on a completly different partiton.

If you must delete, delete only the oldest one*. Keep the newer one!

*only if you run out of space


Yes, if everything works for you in the newest kernel you can remove the packages associated with the older ones. {snip}

bad advice is bad.

ubunterooster
February 18th, 2010, 03:51 AM
I got rid of mine. for more details go to my profile (by clicking on my avatar) and look at recent post " too many boot entries"

adam814
February 18th, 2010, 04:21 AM
Well, if you have the kernel images and the headers for them installed they can take up to 200MB each. If you have 5 or 6 old kernels it might be time to start pruning some of the older ones.

Satoru-san
February 18th, 2010, 04:33 AM
Well, if you have the kernel images and the headers for them installed they can take up to 200MB each. If you have 5 or 6 old kernels it might be time to start pruning some of the older ones.

here is the thing, you do NOT need the kernel source to boot a kernel that is already compiled. I unmerged my old kernel sources, but I can still boot my old kernels, just dont delete from the /boot/ folder.

ubunterooster
February 18th, 2010, 04:42 AM
just keep the 2 most recent. old kernels are backups and how many backups are needed?

Satoru-san
February 18th, 2010, 05:19 AM
just keep the 2 most recent. {snip}
This, except just mv them into your /home/ folder don't rm them.

kenji_03
March 5th, 2010, 12:29 PM
Here is Ubunterooster's thread and the way to do this for us Ubuntu noobs


To get rid of an older kernel (using 2.6.31-16-generic as an example) do:

sudo apt-get purge linux-image-2.6.31-16-generic

http://ubuntuforums.org/showthread.php?t=1397934&highlight=boot+entries

I was able to find a list of my entries using the "/boot/grub/menu.lst" file

adam814
March 5th, 2010, 02:06 PM
You can always find out which ones you have installed using "dpkg --list | grep linux-image". Only legacy GRUB users will have a menu.lst file.