Index: [Article Count Order] [Thread]

Date:  Wed, 26 Aug 2009 15:26:02 -0500
From:  "Gerald Waugh" <gwaugh (at mark) frontstreetnetworks.com>
Subject:  [coba-e:15954] Re: Strange kernel stuff
To:  <coba-e (at mark) bluequartz.org>
Message-Id:  <25D803650B644741AC0A0B7AA5D6DF1D@raqware>
References:  <4A959A9C.4124.C8EEC8 (at mark) localhost> <4A95A0EF.11270.E1A496 (at mark) localhost>
X-Mail-Count: 15954

Martyn Bailey wrote;

> On 26 Aug 2009, at 15:39, Richard Siddall wrote:
>
>> I think the RPM uninstall scripts do a good job of cleaning up
>> grub.conf.  I haven't noticed cruft in grub.conf or leftover .gz files
>> to be a problem (but that may be me not paying attention).
>
> I always seem to end up (whatever method I use) with a couple of
> errand entries in grub.conf (my box at home still lists the nuonce
> original kernel in there I think).  I'll occasionally feel tempted to: rm
> *.gz - but TBH, they don't take up that much space.
>
> Oddity on this box I'm looking at is that grub conf is saying
>
> default=1
> timeout=5
> splashimage=(hd0,0)/grub/splash.xpm.gz
> hiddenmenu
> title CentOS (2.6.9-89.0.9.EL)
>        root (hd0,0)
>        kernel /vmlinuz-2.6.9-89.0.9.EL ro root=/dev/md1
>        initrd /initrd-2.6.9-89.0.9.EL.img
> title CentOS (2.6.9-89.0.9.ELsmp)
>        root (hd0,0)
>        kernel /vmlinuz-2.6.9-89.0.9.ELsmp ro root=/dev/md1
>        initrd /initrd-2.6.9-89.0.9.ELsmp.img
> title CentOS (2.6.9-78.0.22.EL)
>        root (hd0,0)
>        kernel /vmlinuz-2.6.9-78.0.22.EL ro root=/dev/md1
>        initrd /initrd-2.6.9-78.0.22.EL.img
> title CentOS (2.6.9-78.0.22.ELsmp)
>        root (hd0,0)
>        kernel /vmlinuz-2.6.9-78.0.22.ELsmp ro root=/dev/md1
>        initrd /initrd-2.6.9-78.0.22.ELsmp.img
>
>
> so it looks like it's set to boot from the latest kernel, but uname -a
> returns
>
> 2.6.9-78.0.8.ELsmp #1 SMP Wed Nov 19 20:05:04 EST 2008 i686
> i686 i386 GNU/Linux
>
> Think I'll go for a coffee and try to unforget all that stuff about
> booting and kernels!

Change default=1
 to default=0
and reboot.
During reboot, you may hit the space bar, to allow time to select a kernel 
to boot, in case you have trouble you can boot a dif kernel

Also, I like a high resolution console screen, so I add vga=791 to the 
kernel line.
kernel /vmlinuz-2.6.9-89.0.9.ELsmp ro root=/dev/md1 vga=791

Gerald