ubuntu和windows双启

启动讨论 grub/grub2/syslinux/grub4dos/Lilo
回复
ussn
帖子: 8
注册时间: 2009-05-23 8:57

ubuntu和windows双启

#1

帖子 ussn » 2009-05-31 16:36

按我上次发贴的安装方法安装Ubuntu后,并没有实现windows 和 Ubuntu的双启动。

下面是实现双启的方法:

应用程序->附件->终端
输入:sudo gedit /boot/grub/menu.lst回车
然后输入密码,注意输入密码时什么显示都没有,不会有星星提示你输入了多少位。
menu.lst打开后在最后添加

title Windows
root (hd0,0)
makeactive
chainloader +1


解释一下;
这里的(hd0,0)表示你的windows是安装在第一个硬盘的第一个分区里,如果你的windows装在其它位置,请注意修改。

保存,重启

在开机时会有提示,按ESC,可以进入启动菜单,在里面选windows就可以了。

如果请默认启动windows,把刚才的代码放到这个位置上

title Windows XP
root (hd0,0)
makeactive
chainloader +1


title Ubuntu 9.04, kernel 2.6.28-11-generic
uuid fc1fb140-f2c1-4051-822a-f777d45739a4
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=fc1fb140-f2c1-4051-822a-f777d45739a4 ro quiet splash
initrd /boot/initrd.img-2.6.28-11-generic
quiet

title Ubuntu 9.04, kernel 2.6.28-11-generic (recovery mode)
uuid fc1fb140-f2c1-4051-822a-f777d45739a4
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=fc1fb140-f2c1-4051-822a-f777d45739a4 ro single
initrd /boot/initrd.img-2.6.28-11-generic

title Ubuntu 9.04, memtest86+
uuid fc1fb140-f2c1-4051-822a-f777d45739a4
kernel /boot/memtest86+.bin
quiet
头像
nlr
帖子: 472
注册时间: 2009-04-27 21:07
来自: 柚香何处闻?

Re: ubuntu和windows双启

#2

帖子 nlr » 2009-05-31 19:31

偶就是用你的方法实现的,不过是在几天前别处自己谷歌的。顶一个。 :em11
OS :Ubuntu13.04
头像
qingshi163
帖子: 275
注册时间: 2007-12-16 0:45

Re: ubuntu和windows双启

#3

帖子 qingshi163 » 2009-06-04 16:40

如果windows盘是ntfs分区的,root (hd0, 0)需要改成rootnoverify (hd0, 0)。并且像这种不需要读取这个分区数据的活儿,还是交给 rootnoverify 比较通用。
回复