Removing Old Kernels

Tom H tomh0665 at gmail.com
Sat Dec 12 17:33:33 UTC 2009


>>>>>>> There was a feature in ubuntu some time in the earlier releases where in
>>>>>>> there used to be only a specific copies of kernels maintained. The older
>>>>>>> one's would get deleted once the updates were applied. Not sure if its
>>>>>>> there in the current versions of ubuntu 9.10

>>>>>> You can add a "howmany=X" line to menu.lst to limit the number of
>>>>>> kernels that grub1's update-grub adds to menu.lst.

>>>>> Please advse of the path for menu.lst .

>>>> Unless I misunderstand you request, menu.lst is in folder /boot/grub when using
>>>> grub1.  For grub2, menu.lst is replaced by grub.cfg in the same folder.

>>> That is not the end of the story. How do you change grub.cfg?
>>> Menu.lst you just edited with gedit, simple. Editing grub.cfg
>>> is NOT SIMPLE!

>> If you type gedit /boot/grub.cfg, and read the first 5 lines, you see
>> that they clearly state that you shouldn't edit this file, but edit
>> /etc/default/grub and use grub-mkconfig. Grub-mkconfig automatically
>> detects available kernels and initrd's, and creates your config
>> accordingly. Which is actually a lot easier than grub1.

> Exactly. I did that once with sudo grubmkconfig and it ran
> but didn't allow me to make any changes! It just ran through
> grub. I need to know how to make windows the first thing to
> boot. Easy on menu.lst but can't see a way with grub-mkconfig.

With grub2, the proper was is to make changes in the files that I
pointed out in my earlier email in this thread. But we've gone OT in
respect of the OP.




More information about the ubuntu-users mailing list