I've been downloading the new kernel versions as they come out for my version of Fedora Core 2. They seem to load fine, how do I change my boot loader (GRUB I think) so that it loads the latest kernel version by default? As at the moment it loads the kernel version that came on the DVD and I have to manually select the newer version(s) if I want to load them.
Cheers,
Daniel
Hi,
I've been downloading the new kernel versions as they come out for my version of Fedora Core 2. They seem to load fine, how do I change my boot loader (GRUB I think) so that it loads the latest kernel version by default?
Normally when you upgrade a kernel, grub should change to select the newer kernel. However...
su vi /boot/grub/grub.conf
There is a line which says "default=x" (where x >= 0)
Change this to
default=0 :wq!
and that's it. It will always default to the kernel at the top of the list.
TTFN
Paul
Daniel,
Danielb wrote:
I've been downloading the new kernel versions as they come out for my version of Fedora Core 2. They seem to load fine, how do I change my boot loader (GRUB I think) so that it loads the latest kernel version by default? As at the moment it loads the kernel version that came on the DVD and I have to manually select the newer version(s) if I want to load them.
I would just copy the existing section with the old kernel and replace things which have changed
[root@rubikon ~]$ cat /boot/grub/grub.conf # grub.conf generated by anaconda # # Note that you do not have to rerun grub after making changes to this # file #boot=/dev/hda default=3 timeout=10 splashimage=(hd0,1)/boot/grub/splash.xpm.gz
# New kernel title Fedora Core (2.6.6-1.435.2.3) root (hd0,1) kernel /boot/vmlinuz-2.6.6-1.435.2.3 ro root=LABEL=/ rhgb quiet initrd /boot/initrd-2.6.6-1.435.2.3.img
# Original kernel title Fedora Core 2 (2.6.5-1.358) root (hd0,1) kernel /boot/vmlinuz-2.6.5-1.358 ro root=LABEL=/ rhgb quiet initrd /boot/initrd-2.6.5-1.358.img title Windows XP Professional rootnoverify (hd0,0) chainloader +1
Cheers,
Daniel
Hope this helps.
Alex