Booting with Grub

Leonard Chatagnier lenc5570 at sbcglobal.net
Wed Jan 21 05:17:06 UTC 2009


--- On Wed, 1/21/09, Chris Mohler <cr33dog at gmail.com> wrote:

> From: Chris Mohler <cr33dog at gmail.com>
> Subject: Re: Booting with Grub
> To: kirkabbott at yahoo.com, "Ubuntu user technical support, not for general discussions" <ubuntu-users at lists.ubuntu.com>
> Date: Wednesday, January 21, 2009, 10:50 AM
> On Wed, Jan 21, 2009 at 6:44 PM, kirk abbott
> <kirkabbott at yahoo.com> wrote:
> > One of the things that I have been noticing lately, is
> that as I continue update from the original 8.04
> configuration, more startup lines are showing up on
> grubs' boot list, with the most recent update at the
> top. And each update has two lines, plus two for the windows
> partition.
> >
> > Is there a reason for that? Do I really need each
> entry, or is there a way to get of redundant entries?
> 
> It's good to keep one or two old ones around just in
> case something is
> broken in the new kernel and you need to boot from the
> older one(s).
> 
> Fire up Synaptic (or the package manager of your choice)
> and remove
> the linux-image-x.x.x packages that are the oldest to get
> rid of
> them...
> 
> Chris
> 
> PS - when I was running Fedora, there was a way to tell yum
> to only
> keep a certain number of kernels around - is there
> something  similar
> for apt perhaps?
> 
Yes there is a way to set the number of kernels.  It's in the 
/boot/grub/menu.lst file in the first section as I recall.
Here is the entry from my menu.lst.  Just change the "all" to
whatever number of kernels you want to keep. I, being a kde fan,
use sudo nano /boot/grub/menu.lst to edit the file and usually
keep all the kernels mostly because I'm too lazy to edit menu.lst.

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
##      howmany=7
# howmany=all

Note: be sure to read the lead in info so you don't change something
you shouldn't.  The pound signs, #, are not to be changed.
Leonard Chatagnier
lenc5570 at sbcglobal.net


> -- 
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users




More information about the ubuntu-users mailing list