看看我的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 (hd1,0)
# kernel /vmlinuz-version ro root=/dev/sdb9
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=10
splashimage=(hd1,0)/grub/splash.xpm.gz
#hiddenmenu
title Windows XP
rootnoverify (hd0,0)
chainloader +1
刘冲 于 2009-05-15 21:53:03发表:
[i=s] 本帖最后由 刘冲 于 2009-5-15 22:01 编辑 [/i]
1# celestial
别弄那么复杂,直接安装就行了,grub引导安装在每个linux版本自己的引导盘(/或者/boot)的引导扇区就行了。每个linux各自有一个引导区,最后主引导区mbr上有一个总引导程序就行了。这样最省心,各自有各自的/BOOT。
看看我的主引导的menu.lst
default 6
timeout 10
color black/red red/black
password --md5 ********
title Make A Choice In 10s:
root
title Boot Microsoft Windows,
rootnoverify (hd0,0)
chainloader (hd0,0)+1
title Boot FreeBSD,
rootnoverify (hd0,2)
chainloader (hd0,2)+1
title Boot OpenSolaris,
rootnoverify (hd0,2)
chainloader (hd0,2)+1
title Debian GNU/Linux,
rootnoverify (hd1,0)
chainloader (hd1,0)+1
title Reboot,
reboot
title Default Halt.
halt
看得出,我在第一块硬盘上安装了windows,freebsd,opensolaris,第二块硬盘上安装了debian。
ffsedan 于 2009-05-15 16:59:22发表:
10楼牛人!
mongodoc 于 2009-05-15 11:49:37发表:
建议用虚拟机啊,搞那么复杂
aa65535 于 2009-05-15 11:08:16发表:
看看我的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 (hd1,0)
# kernel /vmlinuz-version ro root=/dev/sdb9
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=10
splashimage=(hd1,0)/grub/splash.xpm.gz
#hiddenmenu
title Windows XP
rootnoverify (hd0,0)
chainloader +1
title openSUSE 11.1
root (hd1,5)
kernel /boot/vmlinuz-2.6.27.21-0.1-default root=/dev/disk/by-id/ata-WDC_WD1600AAJS-00B4A0_WD-WMAT10551292-part6 resume=/dev/disk/by-id/ata-WDC_WD1600AAJS-00B4A0_WD-WMAT10551292-part5 splash=silent showopts vga=0x315
initrd /boot/initrd-2.6.27.21-0.1-default
title Ubuntu 9.04
root (hd1,6)
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=7f540cb3-9236-4029-b4c2-66951c653cae ro quiet splash locale=zh_CN vga=0x315
initrd /boot/initrd.img-2.6.28-11-generic
title Fedora 10
root (hd1,7)
kernel /boot/vmlinuz-2.6.27.5-117.fc10.i686 ro root=UUID=dda53260-36c2-471f-8b7b-e7e9c8ac82aa rhgb quiet vga=0x315
initrd /boot/initrd-2.6.27.5-117.fc10.i686.img
#title Fedora 11
#root (hd1,0)
#kernel /vmlinuz-2.6.29.1-102.fc11.i686.PAE ro root=UUID=fd2eb6c3-f7cb-4544-b6cd-9d89216a19c0 rhgb quiet
#initrd /initrd-2.6.29.1-102.fc11.i686.PAE.img
haibian 于 2009-05-14 23:21:03发表:
多系统引导时,grub可以装在MBR上,也可以装在该系统的引导扇区上
hantu 于 2009-05-14 19:27:36发表:
你不会是两个Linux共用/boot吧,这样会有文件相互覆盖并会引起问题的。
grub的引导部分要么安装到MBR要么在安装到Linux分区的引导扇区(即分区的第一个扇区),这跟是否单独分/boot没有任何关系。
相思爱文 于 2009-05-14 19:18:13发表:
不明白,新的linux就把grub装在分区上,然后修改原linux的grub配置文件。
我是用单独的/boot分区引导,独立于任何linux系统。
hantu 于 2009-05-14 19:13:51发表:
只留其中的一个Linux的grub在硬盘的MBR位置,由它来引导多个系统。
比如第二个安装的Linux,它的grub不要安装在MBR而是要安装在其分区的引导扇区上,然后用ubuntu启动并挂载新装Linux的分区,将它的grub.conf的相关内容拷贝到ubuntu的grub.conf以便让ubuntu的grub管理两个Linux(还有win)的启动。
或者第二个安装的Linux的grub安装到MBR,那么就把ubuntu的grub.conf的相关内容拷贝到新linux的grub.conf中,以便让新Linux的grub来管理几个系统的启动。
haibian 于 2009-05-14 19:08:40发表:
尚未研究
me26659408 于 2009-05-14 17:38:53发表:
加个启动项就OK了
GRUB可以引导相当多的OS 所以不用担心。。。。
ajian 于 2009-05-14 17:08:06发表:
不同的系统grub格式可能有些不一样
但基本是通用的
ajian 于 2009-05-14 17:07:41发表:
没有什么特殊的 跟装两个系统是一样的情况
默认是用哪个grub决定者是最后一个安装的系统
当然也可以手动更改 这个主要参考grub的命令
如果有哪一个不能启动的情况 只要修改一下grub的配置文件就可以了