Grub2无法引导Windows
- smallapple
- 论坛版主
- 帖子: 7868
- 注册时间: 2009-03-28 15:12
Re: Grub2无法引导Windows
### 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都行。
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都行。
-
- 帖子: 102
- 注册时间: 2006-04-16 15:48
Re: Grub2无法引导Windows
我又试了一下,启动时出现GRUB LOADING...时按TAB键,选项出来了,而修改GRUB.CFG以前,按TAB也没有用。
这样,ubuntu是可以进入了。
再重启,选项自己会出来。
这样,ubuntu是可以进入了。
再重启,选项自己会出来。
-
- 帖子: 102
- 注册时间: 2006-04-16 15:48
Re: Grub2无法引导Windows
嗯 ,按按照smallapple大侠的指点修改,现在能成功引导进入winxp了,灰常的感谢。
希望对碰到类似问题的兄弟有帮助。
希望对碰到类似问题的兄弟有帮助。
- smallapple
- 论坛版主
- 帖子: 7868
- 注册时间: 2009-03-28 15:12
-
- 帖子: 22
- 注册时间: 2008-01-25 16:57
Re: Grub2无法引导Windows
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
这句只在你电脑可用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
/dev/sda 是WINDOWS,
/dev/sdb 是Ubuntu
Grub2安装的位置是 /dev/sdb
/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
/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
}
/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
- 联系:
- smallapple
- 论坛版主
- 帖子: 7868
- 注册时间: 2009-03-28 15:12