Grub2无法引导Windows

启动讨论 grub/grub2/syslinux/grub4dos/Lilo
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: Grub2无法引导Windows

#16

帖子 smallapple » 2009-09-06 20:35

### BEGIN /etc/grub.d/30_os-prober ###
if keystatus; then
if keystatus --shift; then
set timeout=-1
else
set timeout=0
fi
else
if sleep --interruptible 3 ; then
set timeout=0
fi
fi
### END /etc/grub.d/30_os-prober ###

这地方设了timeout=0就出不来了,直接删掉或修改为大于0都行。
tony988
帖子: 102
注册时间: 2006-04-16 15:48

Re: Grub2无法引导Windows

#17

帖子 tony988 » 2009-09-06 20:35

我又试了一下,启动时出现GRUB LOADING...时按TAB键,选项出来了,而修改GRUB.CFG以前,按TAB也没有用。
这样,ubuntu是可以进入了。
再重启,选项自己会出来。
tony988
帖子: 102
注册时间: 2006-04-16 15:48

Re: Grub2无法引导Windows

#18

帖子 tony988 » 2009-09-06 20:40

嗯 ,按按照smallapple大侠的指点修改,现在能成功引导进入winxp了,灰常的感谢。

希望对碰到类似问题的兄弟有帮助。
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: Grub2无法引导Windows

#19

帖子 smallapple » 2009-09-06 20:44

:em05
awl
帖子: 22
注册时间: 2008-01-25 16:57

Re: Grub2无法引导Windows

#20

帖子 awl » 2009-09-08 15:04

smallapple 写了:那修改部分就改成这样

### BEGIN /etc/grub.d/30_otheros ###

### END /etc/grub.d/30_otheros ###
改为:


### BEGIN /etc/grub.d/30_otheros ###

# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
menuentry "Windows NT/2000/XP (loader)" {
set root=(hd0,1)
chainloader +1
}
### END /etc/grub.d/30_otheros ###

C盘是FAT32的,不用加ntfs.mod


menuentry "Windows NT/2000/XP" {
set root=(hd0,1)
search --fs-uuid --set 0e48a65048a6367d
drivemap -s (hd0) ${root}
chainloader +1
}
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: Grub2无法引导Windows

#21

帖子 smallapple » 2009-09-08 16:03

search --fs-uuid --set 0e48a65048a6367d
这句只在你电脑可用
drivemap -s (hd0) ${root}
这句单硬盘没作用。
双硬盘从第二硬盘启动xp的可以这样用
menuentry "Microsoft Windows XP Professional (on /dev/sdb2)" {
set root=(hd1,2)
drivemap -s (hd0) ${root}
chainloader +1
}
头像
arvan
帖子: 190
注册时间: 2005-08-02 18:04
来自: Lanzhou
联系:

Re: Grub2无法引导Windows

#22

帖子 arvan » 2009-09-11 16:27

/dev/sda 是WINDOWS,
/dev/sdb 是Ubuntu

Grub2安装的位置是 /dev/sdb
Jonathan Swift - "May you live every day of your life."
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: Grub2无法引导Windows

#23

帖子 smallapple » 2009-09-11 16:35

/dev/sda 是WINDOWS,
/dev/sdb 是Ubuntu

Grub2安装的位置是 /dev/sdb

# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
menuentry "Windows NT/2000/XP (loader)" {
set root=(hd1,1)
drivemap -s (hd0) ${root}
chainloader +1
}
头像
arvan
帖子: 190
注册时间: 2005-08-02 18:04
来自: Lanzhou
联系:

Re: Grub2无法引导Windows

#24

帖子 arvan » 2009-09-11 20:27

thanks. :em01
Jonathan Swift - "May you live every day of your life."
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: Grub2无法引导Windows

#25

帖子 smallapple » 2009-09-11 20:28

Welcome :em01
回复