# 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,8 )
# kernel /vmlinuz-version ro root=/dev/hda10
# initrd /initrd-version.img
#boot=/dev/hda9
default=0
timeout=3
splashimage=(hd0,8 )/grub/splash.xpm.gz
title Red Hat Linux 7.3 (2.4.18-3)
root (hd0,8 )
kernel /vmlinuz-2.4.18-3 ro root=/dev/hda10
initrd /initrd-2.4.18-3.img
title Red Hat Linux (2.4.20-8 )
rootnoverify (hd0,5)
chainloader +1
你这个写法应该是会出现两次菜单吧?
我新安装了一下,红旗和RedHat的boot区分开了,然后再把先装的系统的grub.conf添加到新装的系统的菜单里面。这样就只有一个菜单了:
# 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,1)
# kernel /vmlinuz-version ro root=/dev/hda6
# initrd /initrd-version.img
#boot=/dev/hda
default=4
timeout=6
splashimage=(hd0,1)/grub/splash.xpm.gz
title Red Hat Linux (2.4.20-
root (hd0,1)
kernel /vmlinuz-2.4.20-8 ro root=LABEL=/ hdc=ide-scsi vga=0x317
initrd /initrd-2.4.20-8.img
title Red Flag Linux (2.4.20-
root (hd0,7)
kernel /boot/vmlinuz-2.4.20-8 ro root=/dev/hda8 vga=785 console=/dev/null CONSOLE=/dev/tty2 acpi=off hdc=ide-scsi
initrd /boot/initrd-2.4.20-8.img
title Red Flag Linux (Safe Mode)
root (hd0,7)
kernel /boot/vmlinuz-2.4.20-8 root=/dev/hda8 acpi=off 4 hdc=ide-scsi
initrd /boot/initrd-2.4.20-8.img
title Red Flag Linux (Console Mode)
root (hd0,7)
kernel /boot/vmlinuz-2.4.20-8 root=/dev/hda8 acpi=off 3 hdc=ide-scsi vga=0x317
initrd /boot/initrd-2.4.20-8.img
title Windows XP
rootnoverify (hd0,0)
chainloader +1
title Red Flag Linux (Safe Mode)
root (hd0,7)
kernel /boot/vmlinuz-2.4.20-8 root=/dev/hda8 acpi=off 4 hdc=ide-scsi
initrd /boot/initrd-2.4.20-8.img
title Red Flag Linux (Console Mode)
root (hd0,7)
kernel /boot/vmlinuz-2.4.20-8 root=/dev/hda8 acpi=off 3 hdc=ide-scsi vga=0x317
initrd /boot/initrd-2.4.20-8.img