The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

Поиск:  Каталог документации

Next Previous Contents

13. Appendix C - GRUB Details And A Sample grub.conf

See


bash# man grub
bash# man grubby   # (command line tool for configuring grub, lilo, and elilo)
bash# man grub-install

Edit the file /etc/grub.conf to make entries for the new kernel. See the sample file below:


# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,8)
#          kernel /boot/vmlinuz-version ro root=/dev/hda9
#          initrd /boot/initrd-version.img
#boot=/dev/hda

# By default boot the second entry
default=1

# Fallback to the first entry.
fallback 0

# Boot automatically after 2 minutes
timeout=120

splashimage=(hd0,8)/boot/grub/splash.xpm.gz

title Windows 2000 
unhide (hd0,0)
hide (hd0,1)
hide (hd0,2)
rootnoverify (hd0,0)
chainloader +1
makeactive

title Red Hat Linux (2.4.18-19.8.0.19mar2003)
        root (hd0,8)
        kernel /boot/bzImage.2.4.18-19.8.0.19mar2003 ro root=LABEL=/ hdd=ide-scsi
        initrd /boot/initrd-2.4.18-19.8.0custom.img.19mar03

title Red Hat Linux (2.4.18-19.8.0custom)
        root (hd0,8)
        kernel /boot/vmlinuz-2.4.18-19.8.0custom ro root=LABEL=/ hdd=ide-scsi
        initrd /boot/initrd-2.4.18-19.8.0custom.img

title Red Hat Linux (2.4.18-14)
        root (hd0,8)
        kernel /boot/vmlinuz-2.4.18-14 ro root=LABEL=/ hdd=ide-scsi
        initrd /boot/initrd-2.4.18-14.img

title MyKernel.26jan03 (Red Hat Linux 2.4.18-14)
        root (hd0,8)
        kernel /boot/bzImage.myker.26jan03 ro root=LABEL=/ hdd=ide-scsi
        initrd /boot/initrd-2.4.18-19.8.0.img

title Windows 98
hide (hd0,0)
hide (hd0,1)
unhide (hd0,2)
rootnoverify (hd0,2)
chainloader +1
makeactive

title DOS 6.22
hide (hd0,0)
unhide (hd0,1)
hide (hd0,2)
rootnoverify (hd0,1)
chainloader +1
makeactive

title Partition 2 (floppy)
hide (hd0,0)
unhide (hd0,1)
hide (hd0,2)
chainloader (fd0)+1

title Partition 3 (floppy)
hide (hd0,0)
hide (hd0,1)
unhide (hd0,2)
chainloader (fd0)+1


Next Previous Contents


Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2024 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру