[问题]双启动问题!

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
cjxin2007
帖子: 5
注册时间: 2007-01-17 0:33

[问题]双启动问题!

#1

帖子 cjxin2007 » 2007-01-17 0:42

先是在一块硬盘里安装了XP在第一个分区,然后拔掉插上另一块硬盘安装了UBUNTU。再把原来安装XP的硬盘插上设为从盘。请问如何才能搞个双启动的菜单出来?现在我要启动XP只能进CMOS里设置才能进。谢谢各位!!
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

#2

帖子 eexpress » 2007-01-17 0:48

启动项自己可以加到/boot/grub/menu.lst文件。很多例子的。
这样安装系统,你这是把事情搞复杂。
● 鸣学
cjxin2007
帖子: 5
注册时间: 2007-01-17 0:33

#3

帖子 cjxin2007 » 2007-01-17 1:11

小弟刚接触LINUX,怕把分区表搞坏,里面有些比较重要的资料的~ :lol:
这位大哥能不能详细的说明一下~~谢谢~!!
yohu
帖子: 955
注册时间: 2006-12-18 17:04
来自: 福建泉州

#4

帖子 yohu » 2007-01-17 1:12

有很多种方法,看你要用xp来引导ubuntu,还是要用ubuntu来引导xp,简单点的方法就是,自己手动添加xp启动到menu.lst。
参考:

代码: 全选

title           Windows NT/2000/XP (loader)
root            (hd0,0)
savedefault
chainloader     +1
如果xp是从盘的话,可能要把(hd0,0)改成(hd1,0)。
拥有超级牛力的搜索引擎:
http://www.google.com/linux
http://www.google.com/
cjxin2007
帖子: 5
注册时间: 2007-01-17 0:33

#5

帖子 cjxin2007 » 2007-01-17 1:15

谢谢~~!!我试试先~~~ :lol: :D :D
soumer
帖子: 13
注册时间: 2007-01-14 0:58

#6

帖子 soumer » 2007-01-17 1:15

要不你在Windows下面装个bootmanager
cjxin2007
帖子: 5
注册时间: 2007-01-17 0:33

#7

帖子 cjxin2007 » 2007-01-17 1:32

不行,我刚才说错了。安装XP那块硬盘是插在第二个IDE口的,也是设成主盘的。请大哥详细点说一下。谢谢~!!
yohu
帖子: 955
注册时间: 2006-12-18 17:04
来自: 福建泉州

#8

帖子 yohu » 2007-01-17 1:54

什么意思,也是设成主盘?不明白。
简单点说吧,如果你是用ubuntu的grub来引导xp的话就用上面的方法,如果你是用xp做引导,来启动ubuntu的话,那就稍微复杂些,自己找grub for dos来搞吧。
拥有超级牛力的搜索引擎:
http://www.google.com/linux
http://www.google.com/
cjxin2007
帖子: 5
注册时间: 2007-01-17 0:33

#9

帖子 cjxin2007 » 2007-01-17 2:13

就是第一个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
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

#10

帖子 eexpress » 2007-01-17 2:17

boot加最后。
● 鸣学
头像
skyx
论坛版主
帖子: 9202
注册时间: 2006-12-23 13:46
来自: Azores Islands
联系:

#11

帖子 skyx » 2007-01-17 14:44

重装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一下
no security measure is worth anything if an attacker has physical access to the machine
回复