Grub不能引导Windows[双硬盘],请指教!

启动讨论 grub/grub2/syslinux/grub4dos/Lilo
回复
头像
arvan
帖子: 190
注册时间: 2005-08-02 18:04
来自: Lanzhou
联系:

Grub不能引导Windows[双硬盘],请指教!

#1

帖子 arvan » 2008-10-12 19:24

我的系统两块硬盘,Primary Slave是一块IDE的硬盘,安装了Ubuntu 8.04,还有一块SATA硬盘,安装了WINXP。

fdisk -l的显示如下:

代码: 全选

$ sudo fdisk -l

Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xf0b1ebb0

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1         243     1951866   82  Linux swap / Solaris
/dev/sda2             244       14593   115266375    5  Extended
/dev/sda5             244       14593   115266343+  83  Linux

Disk /dev/sdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x1ba41ba3

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1        3824    30716248+   7  HPFS/NTFS
/dev/sdb2            3825       30401   213479752+   f  W95 Ext'd (LBA)
/dev/sdb5            3825       14278    83971723+   7  HPFS/NTFS
/dev/sdb6           14279       30401   129507966    7  HPFS/NTFS
menu.lst文件的Ubuntu和windows部分的代码如下:

代码: 全选

title		Ubuntu 8.04.1, kernel 2.6.24-21-generic
root		(hd0,4)
kernel		/boot/vmlinuz-2.6.24-21-generic root=UUID=7fab4bcf-a237-42b0-b51f-254d42fea748 ro splash noapic locale=zh_CN vga=792 quiet
initrd		/boot/initrd.img-2.6.24-21-generic
quiet

title		Microsoft Windows XP Professional
rootnoverity		(hd1,0)
savedefault
makeactive
chainloader	+1
boot
目前Windows 无法引导,请教一下,windows部分的menu.lst应该怎么写。 :em06
aoskas
帖子: 249
注册时间: 2007-11-06 13:56

Re: Grub不能引导Windows[双硬盘],请指教!

#2

帖子 aoskas » 2008-10-12 21:03

第一法.
map (hd1) (hd0)
rootnoverify (hd1,0)
makeactive
chainloader +1



第二法.
find --set-root /yykXP.ck_
chainloader /ntldr


abcxp.ck_ 把这个放在你的XP区的根下.(XP的那里就放在那个根下).
头像
arvan
帖子: 190
注册时间: 2005-08-02 18:04
来自: Lanzhou
联系:

Re: Grub不能引导Windows[双硬盘],请指教!

#3

帖子 arvan » 2008-10-13 0:52

非常感谢。我已经搞定它了。

有个问题,我在grub里面 find --set-root/ntldr 为什么是file not found?? :em01
Jonathan Swift - "May you live every day of your life."
billbear
帖子: 3681
注册时间: 2008-05-03 23:42

Re: Grub不能引导Windows[双硬盘],请指教!

#4

帖子 billbear » 2008-10-13 8:54

find --set-root 是 grub4dos 的东西
grub 里没有这个玩意
ruwnzang
帖子: 2
注册时间: 2009-01-20 12:39

Re: Grub不能引导Windows[双硬盘],请指教!

#5

帖子 ruwnzang » 2009-01-20 12:41

还没说怎么解决得呢?
我也遇到了一样的问题
头像
arvan
帖子: 190
注册时间: 2005-08-02 18:04
来自: Lanzhou
联系:

Re: Grub不能引导Windows[双硬盘],请指教!

#6

帖子 arvan » 2009-01-23 9:44

ruwnzang 写了:还没说怎么解决得呢?
我也遇到了一样的问题
> map (hd1) (hd0)
> rootnoverify (hd1,0)
> makeactive
> chainloader +1

第二种办法:
> find –set-root /abcxp.ck_
> chainloader /ntldr
>
abcxp.ck_ 把这个放在你的XP区的根下.(XP的那里就放在那个根下).
Jonathan Swift - "May you live every day of your life."
回复