[Centos] Changing booted Kernel with grub
Wayne Bastow
ayu.njoman at gmail.com
Tue Jan 25 04:51:18 UTC 2005
Mike,
grub.conf has the line default=1 in it. The complete file follows:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/cciss/c0d0p6
# initrd /initrd-version.img
#boot=/dev/cciss/c0d0
default=1
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title CentOS (2.4.21-27.0.2.EL)
root (hd0,0)
kernel /vmlinuz-2.4.21-27.0.2.EL ro root=LABEL=/
initrd /initrd-2.4.21-27.0.2.EL.img
title CentOS (2.4.21-27.0.2.ELsmp)
root (hd0,0)
kernel /vmlinuz-2.4.21-27.0.2.ELsmp ro root=LABEL=/
initrd /initrd-2.4.21-27.0.2.ELsmp.img
title CentOS (2.4.21-27.0.1.EL)
root (hd0,0)
kernel /vmlinuz-2.4.21-27.0.1.EL ro root=LABEL=/
initrd /initrd-2.4.21-27.0.1.EL.img
title CentOS (2.4.21-27.0.1.ELsmp)
root (hd0,0)
kernel /vmlinuz-2.4.21-27.0.1.ELsmp ro root=LABEL=/
initrd /initrd-2.4.21-27.0.1.ELsmp.img
title CentOS release 3.3 (2.4.21-20.EL.c0smp)
root (hd0,0)
kernel /vmlinuz-2.4.21-20.EL.c0smp ro root=LABEL=/
initrd /initrd-2.4.21-20.EL.c0smp.img
title CentOS release 3.3-up (2.4.21-20.EL.c0)
root (hd0,0)
kernel /vmlinuz-2.4.21-20.EL.c0 ro root=LABEL=/
initrd /initrd-2.4.21-20.EL.c0.img
What I don't understand is why the System.map symbolic link is changed.
Regards,
Wayne
On Mon, 24 Jan 2005 22:45:59 -0600, Mike Kercher <mike at camaross.net> wrote:
> Wayne Bastow wrote:
> > Hi,
> >
> > I have updated the kernel to 2.4.21-27.0.2 on Centos 3.4 (was 3.3
> > when I did the kernel update) and have modified grub.conf to use the
> > single CPU kernel:
> >
> > # grub.conf generated by anaconda
> > #
> > # Note that you do not have to rerun grub after making changes to
> > this file # NOTICE: You have a /boot partition. This means that #
> > all kernel and initrd paths are relative to /boot/, eg. #
> > root (hd0,0) # kernel /vmlinuz-version ro
> > root=/dev/cciss/c0d0p6 # initrd /initrd-version.img
> > #boot=/dev/cciss/c0d0
> > default=1
> > timeout=10
> > splashimage=(hd0,0)/grub/splash.xpm.gz
> > title CentOS (2.4.21-27.0.2.EL)
> > root (hd0,0)
> > kernel /vmlinuz-2.4.21-27.0.2.EL ro root=LABEL=/
> > initrd /initrd-2.4.21-27.0.2.EL.img title CentOS
> > (2.4.21-27.0.2.ELsmp) root (hd0,0)
> > kernel /vmlinuz-2.4.21-27.0.2.ELsmp ro root=LABEL=/
> > initrd /initrd-2.4.21-27.0.2.ELsmp.img title CentOS
> > (2.4.21-27.0.1.EL) .......
> >
> > I then created a new symbolic link for Sytem.map in /boot to point to
> > System.map-2.4.21-27.0.2.EL.
> >
> > When I reboot the 2.4.21-27.0.1.ELsmp is used and System.map has been
> > changed to point to the smp kernel.
> >
> > Is there a step I'm missing out?
> >
> > BTW, the upgrade from 3.3 to 3.4 using yum seems to have worked - I'm
> > running Oracle on the server.
> >
> > Thanks,
> > Wayne
> > _______________________________________________
> > CentOS mailing list
> > CentOS at caosity.org
> > http://lists.caosity.org/mailman/listinfo/centos
>
> Perhaps you need:
>
> default=1
>
> You only pasted one entry from your grub.conf. Do you have more entries?
>
> Mike
>
> _______________________________________________
> CentOS mailing list
> CentOS at caosity.org
> http://lists.caosity.org/mailman/listinfo/centos
>
More information about the CentOS
mailing list