硬盘安装情况如下:
主分区XP(sda1)
逻辑分区:
FAT32(sda5)
NTFS(sda6)
ext3(sda7)
swap(sda8)
ext3(sda9)
ext3(sda10)
安装情况如下:
先在sda7上安装红旗6.0 grub.conf文件如下:
# 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,6)
# kernel /boot/vmlinuz-version ro root=/dev/sda7
# initrd /boot/initrd-version.img
#boot=/dev/sda
default=0
timeout=5
gfxmenu (hd0,6)/boot/message
title RedFlag (2.6.22.6-1)
root (hd0,6)
kernel /boot/vmlinuz-2.6.22.6-1 ro root=LABEL=/ vga=788 splash=silent resume=/dev/sda8
initrd /boot/initrd-2.6.22.6-1.img
title Other
rootnoverify (hd0,0)
chainloader +1
后在sda9上安装fc8后,发现启动菜单就剩下FC了,然后在fc8的grub中添加红旗的启动项,启动菜单正常。grub.conf如下:
# 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/sda9
# initrd /boot/initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,8)/boot/grub/splash.xpm.gz
hiddenmenu
title RedFlag (2.6.22.6-1)
root (hd0,6)
kernel /boot/vmlinuz-2.6.22.6-1 ro root=LABEL=/ vga=788 splash=silent resume=/dev/sda8
initrd /boot/initrd-2.6.22.6-1.img
title Fedora (2.6.23.1-42.fc8)
root (hd0,8)
kernel /boot/vmlinuz-2.6.23.1-42.fc8 ro root=LABEL=/1 rhgb quiet
initrd /boot/initrd-2.6.23.1-42.fc8.img
title Other
rootnoverify (hd0,0)
chainloader +1
后来又在sda10上安装opensuse10.3后,启动后发现suse自动识别了其他系统,可为什么SUSE把FC8的启动菜单变成了红旗的,现在启动菜单红旗就有2个,两个红旗菜单进去后都是红旗,并没有其中一个是FC8的,为什么啊?该怎么找回FC8的菜单?
SUSE里面的/boot/grub中没有grub.conf只有menu.lst
SUSE的menu.lst文件如下:
# Modified by YaST2. Last modification on 涓? 3??19 15:07:27 UTC 2008
default 0
timeout 8
gfxmenu (hd0,9)/boot/message
###Don't change this comment - YaST2 identifier: Original name: linux###
title openSUSE 10.3
root (hd0,9)
kernel /boot/vmlinuz-2.6.22.5-31-default root=/dev/disk/by-id/scsi-SATA_ST3160811AS_6PT4JL2X-part10 vga=0x317 devfs=mount,dall resume=/dev/sda8 splash=silent showopts
initrd /boot/initrd-2.6.22.5-31-default
###Don't change this comment - YaST2 identifier: Original name: RedFlag (2.6.22.6-1) (/dev/sda7)###
title RedFlag (2.6.22.6-1) (/dev/sda7)
root (hd0,6)
configfile /boot/grub/menu.lst
###Don't change this comment - YaST2 identifier: Original name: RedFlag (2.6.22.6-1) (/dev/sda9)###
title RedFlag (2.6.22.6-1) (/dev/sda9)
root (hd0,8)
configfile /boot/grub/menu.lst
###Don't change this comment - YaST2 identifier: Original name: windows###
title Windows
rootnoverify (hd0,9)
chainloader (hd0,0)+1