Re: Grub Loader

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

 



Thank you, Gene.  I infer from your grub.conf listing that the "default=11" specification in your grub.conf listing designates the default kernel for booting and the "fallback=9" defines the kernel for loading if the first one fails.  I also gather that #  in the first column signals a comment line that is not acted upon by the grub loader and enables one to insert entries to facilitate human processing.

I note that your grub.conf file lists kernels in descending order of age (earlier kernels before later kernels).  My grub.conf file, on the other hand, lists the kernels with the latest first and the earliest last.  When initially opened, my grub.conf file specified default=1.  I changed that to read default=0.  We will see what happens.

Gene Heskett wrote:
On Tuesday 18 January 2005 23:22, David Curry wrote:
  
Greetings everyone.

While still running the initial FC-2 install (Kernel 2.6.5-1.358),
Grub asked me to designate a default kernel for loading.  At the
time there was one and only one kernel available for loading.

How do I now change the default boot specification from K2.6.5-1.358
to K2.6.10-1.8_FC2?
    

Gee, I dunno.  Maybe 'vim /boot/grub/grub.conf' and add whatever you want?

Here is a sample of it thats a thorough mess, but guess what, it works.
------------------------
# 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/hda3
#          initrd /initrd-version.img
# boot=/dev/hda1
default=11
fallback=9
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz

# 0
title Red Hat Linux (2.4.18-14)
 root (hd0,0)
 kernel /vmlinuz-2.4.18-14 ro root=LABEL=/ hdc=ide-scsi
 initrd /initrd-2.4.18-14.img

# 1
title Red Hat Linux (2.4.23-pre8)
 root (hd0,0)
 kernel /vmlinuz-2.4.23-pre8 ro root=/dev/hda7 hdc=ide-scsi

# 2
title Red Hat Linux (2.4.22-pre10)
 root (hd0,0)
 kernel /vmlinuz-2.4.22-pre10 ro root=/dev/hda7 hdc=ide-scsi vga=ask

# 3
title Red Hat Linux (2.6.10)
 root (hd0,0)
 kernel /vmlinuz-2.6.10 ro root=/dev/hda7 vga=ask

# 4 
title Red Hat Linux (2.6.10-rc3)
        root (hd0,0)
        kernel /vmlinuz-2.6.10-rc3 ro root=/dev/hda7 vga=ask

# 5
title Red Hat Linux (2.6.10-ac1)
        root (hd0,0)
        kernel /vmlinuz-2.6.10-ac1 ro root=/dev/hda7 vga=ask

# 6
title Red Hat Linux (2.6.10-ac2)
        root (hd0,0)
        kernel /vmlinuz-2.6.10-ac2 ro root=/dev/hda7 vga=ask

# 7
title Red Hat Linux (2.6.10-mm1-V0.7.34-01)
 root (hd0,0)
 kernel /vmlinuz-2.6.10-mm1-V0.7.34-01 ro root=/dev/hda7 vga=ask

# 8
title Red Hat Linux (2.6.10-ac8)
        root (hd0,0)
        kernel /vmlinuz-2.6.10-ac8 ro root=/dev/hda7 vga=ask

# 9
title Red Hat Linux (2.6.11-rc1)
        root (hd0,0)
        kernel /vmlinuz-2.6.11-rc1 ro root=/dev/hda7 vga=ask

#10
title Red Hat Linux (2.6.11-rc1-V0.7.35-01)
        root (hd0,0)
        kernel /vmlinuz-2.6.11-rc1-V0.7.35-01 ro root=/dev/hda7 vga=ask

#11
title Red Hat Linux (2.6.11-rc1-V0.7.35-01-FW)
        root (hd0,0)
        kernel /vmlinuz-2.6.11-rc1-V0.7.35-01-FW ro root=/dev/hda7 elevator=cfq vga=ask

#12
title Red Hat Linux (2.6.10-rc2-bk7)
        root (hd0,0)
        kernel /vmlinuz-2.6.10-rc2-bk7 ro root=/dev/hda7 acpi_skip_timer_override 

#13
title Red Hat Linux (2.6.10-rc2-mm3)
        root (hd0,0)
        kernel /vmlinuz-2.6.10-rc2-mm3 ro root=/dev/hda7

#14
title Red Hat Linux (2.6.10-rc2-bk8)
        root (hd0,0)
        kernel /vmlinuz-2.6.10-rc2-bk8 ro root=/dev/hda7 acpi_skip_timer_override

#15
title DOS
 rootnoverify (hd0,1)
 makeactive
 chainloader +1
-------------
The # commented numbers are there strictly for me as it helps
me keep track of which is the default boot.

  


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux