Re: Change default boot kernel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 24 Apr 2003 20:48:19 -0400
lovswr1 <lovswr1@xxxxxxxxxxxxx> wrote:

> Hello.  I used apt-get to upgrade to the latest stable kernel.  In
> 8.0, I would always use up2date & it would also configure grub
> accordingly. Alas apt-get did not do this.  How in 9.0 do I change the
> default kernel that boots (I use KDE & in the KDE Control Panel, the
> kernel tab has been removed as far as I can tell since 8.0)

Hello :)
If you are using anything other than Grub as your bootloader, this might
not help you.  But if you are using Grub, using the following excerpt
from my /etc/grub.conf file, this should help :)

#boot=/dev/hda
default=1
timeout=10
splashimage=(hd1,0)/grub/splash.xpm.gz
title Red Hat Linux (2.5.9)
	root (hd1,0)
	kernel /vmlinuz-2.5.9 ro root=LABEL=/ hdc=ide-scsi hdd=ide-scsi
	initrd /initrd-2.5.9.img
title Red Hat Linux (2.4.20-6custom)
	root (hd1,0)
	kernel /vmlinuz-2.4.20-6custom ro root=LABEL=/ hdc=ide-scsi
        initrd /initrd-2.4.20-6custom.img
title Red Hat Linux (2.4.20-9)
	root (hd1,0)
	kernel /vmlinuz-2.4.20-9 ro root=LABEL=/ hdc=ide-scsi hdd=ide-scsi
	initrd /initrd-2.4.20-9.img
#title Red Hat Linux (2.4.20-6)
#	root (hd1,0)
#	kernel /vmlinuz-2.4.20-6 ro root=LABEL=/ hdc=ide-scsi hdd=ide-scsi
#	initrd /initrd-2.4.20-6.img
title Windows XP
	rootnoverify (hd0,0)
	chainloader +1

You will notice in the line that says "default", there is a number "1" 
You will further notice that I have 5 seperate entries in my grub.conf
file.  They are numbered 0,1,2,3,4,5 - which makes "Red Hat Linux
(2.4.20-6custom)" my default kernel.  If I wanted to boot Windows XP by
default, I'd change the "1" in the "default" line to "4", so that it
would read "default=4", then if I let the default 10 seconds elapse
without selecting a different kernel, then Windows XP would boot.  If I
wanted to boot "Red Hat Linux (2.4.20-9)" by default, then I would make
sure that the "default=" line said "default=2"

I hope this helps :)
Steven P. Ulrick





[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux