分页: 1 / 1
[问题]双启动问题!
发表于 : 2007-01-17 0:42
由 cjxin2007
先是在一块硬盘里安装了XP在第一个分区,然后拔掉插上另一块硬盘安装了UBUNTU。再把原来安装XP的硬盘插上设为从盘。请问如何才能搞个双启动的菜单出来?现在我要启动XP只能进CMOS里设置才能进。谢谢各位!!
发表于 : 2007-01-17 0:48
由 eexpress
启动项自己可以加到/boot/grub/menu.lst文件。很多例子的。
这样安装系统,你这是把事情搞复杂。
发表于 : 2007-01-17 1:11
由 cjxin2007
小弟刚接触LINUX,怕把分区表搞坏,里面有些比较重要的资料的~
这位大哥能不能详细的说明一下~~谢谢~!!
发表于 : 2007-01-17 1:12
由 yohu
有很多种方法,看你要用xp来引导ubuntu,还是要用ubuntu来引导xp,简单点的方法就是,自己手动添加xp启动到menu.lst。
参考:
代码: 全选
title Windows NT/2000/XP (loader)
root (hd0,0)
savedefault
chainloader +1
如果xp是从盘的话,可能要把(hd0,0)改成(hd1,0)。
发表于 : 2007-01-17 1:15
由 cjxin2007
发表于 : 2007-01-17 1:15
由 soumer
要不你在Windows下面装个bootmanager
发表于 : 2007-01-17 1:32
由 cjxin2007
不行,我刚才说错了。安装XP那块硬盘是插在第二个IDE口的,也是设成主盘的。请大哥详细点说一下。谢谢~!!
发表于 : 2007-01-17 1:54
由 yohu
什么意思,也是设成主盘?不明白。
简单点说吧,如果你是用ubuntu的grub来引导xp的话就用上面的方法,如果你是用xp做引导,来启动ubuntu的话,那就稍微复杂些,自己找grub for dos来搞吧。
发表于 : 2007-01-17 2:13
由 cjxin2007
就是第一个IDE口接现在安装UBUNTU的这块硬盘,第二个IDE口接安装XP的那块硬盘。我试了上面的方法,好像启动不起来。我把menu.lst贴上来,看看是那里错了。
## lockold=true
# lockold=false
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery) single
# altoptions=(recovery mode) single
## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all
## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true
## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false
## ## End Default Options ##
title Ubuntu, kernel 2.6.17-10-generic
root (hd0,1)
kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/hda2 ro quiet splash locale=zh_CN
initrd /boot/initrd.img-2.6.17-10-generic
quiet
savedefault
boot
title Ubuntu, kernel 2.6.17-10-generic (recovery mode)
root (hd0,1)
kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/hda2 ro single
initrd /boot/initrd.img-2.6.17-10-generic
boot
title Ubuntu, memtest86+
root (hd0,1)
kernel /boot/memtest86+.bin
quiet
boot
title Windows NT/2000/XP (loader)
root (hd1,0)
savedefault
chainloader +1
### END DEBIAN AUTOMAGIC KERNELS LIST
发表于 : 2007-01-17 2:17
由 eexpress
boot加最后。
发表于 : 2007-01-17 14:44
由 skyx
重装grub,把grub安装在ext3所在分区,然后让ubuntu所在的硬盘通过ntloader 去引导ubuntu
再在bios中设定ubuntu所在的硬盘引导系统
修改ubuntu所在硬盘的boot.ini,加入xp所在硬盘的xp 选项,
这样处理后:就可以通过ubuntu所在的硬盘的ntloader引导两块硬盘中的所有系统
以后不怕重装xp,也不怕再在任何一块硬盘上安装xp或vista ,不用再拔掉硬盘也不会出任何问题
如果再boot目录中加入dos启动相关映像,同时修改 menu.list,这样处理后用ghost备份这两个系统也非常方便
如何用ntloader 引导 ubuntu 的具体做法可参考安装版块的置顶帖。如何修改boot.ini,google一下