找回密码
 注册
搜索
系统gho:最纯净好用系统下载站投放广告、加入VIP会员,请联系 微信:wuyouceo
查看: 3710|回复: 5

请教grub如何写才能引导xp和win7

[复制链接]
发表于 2010-4-16 21:29:58 | 显示全部楼层 |阅读模式
官方的帮助里面是把2个系统的引导分成2个菜单的,如下:
title find and load NTLDR of Windows NT/2K/XP
fallback 1
find --set-root --ignore-floppies --ignore-cd /ntldr
map () (hd0)
map (hd0) ()
map --rehook
find --set-root --ignore-floppies --ignore-cd /ntldr
chainloader /ntldr
savedefault --wait=2

title find and load BOOTMGR of Windows VISTA
fallback 2
find --set-root --ignore-floppies --ignore-cd /bootmgr
map () (hd0)
map (hd0) ()
map --rehook
find --set-root --ignore-floppies --ignore-cd /bootmgr
chainloader /bootmgr
savedefault --wait=2


如何写才能不管xp还是vista都可以引导呢?
发表于 2010-4-16 22:15:17 | 显示全部楼层
我是这样写的不知对不对:
title windows XP
find --set-root /ntldr
chainloader /ntldr

title windows 7
find --set-root /bootmgr
chainloader /bootmgr
回复

使用道具 举报

发表于 2010-4-17 00:02:56 | 显示全部楼层

回复 #1 l4ever 的帖子

想法很有意思  就是完全不可能  XP和Vista引导文件不同名
回复

使用道具 举报

 楼主| 发表于 2010-4-17 02:15:49 | 显示全部楼层
原帖由 icons 于 2010-4-16 22:15 发表
我是这样写的不知对不对:
title windows XP
find --set-root /ntldr
chainloader /ntldr

title windows 7
find --set-root /bootmgr
chainloader /bootmgr

xp那样写在我台式机上无法运行
回复

使用道具 举报

发表于 2010-4-17 11:39:14 | 显示全部楼层
title  1.............................
find --set-root --ignore-floppies --ignore-cd /ntldr || find --set-root --ignore-floppies --ignore-cd /bootmgr
map () (hd0)
map (hd0) ()
map --rehook
find --set-root --ignore-floppies --ignore-cd /ntldr || find --set-root --ignore-floppies --ignore-cd /bootmgr
chainloader /ntldr || chainloader /bootmgr

------------------------------------------------------------------------------

记得是0pe里的写法
回复

使用道具 举报

发表于 2010-4-17 13:32:48 | 显示全部楼层
楼上的方法很对!~!~
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1|闽公网安备35020302032614号 )

GMT+8, 2026-4-2 19:07

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表