硬碟安裝情況如下: 主分區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