|  | 
 
| martin325 银牌会员
 
      
 
 
 
 积分 1582
 发帖 603
 注册 2006-2-20
 状态 离线
 | 
| 『楼 主』:
 如何在WIN7系统的BOOTMGR中添加GRUB启动项
 
使用 LLM 解释/回答一下 
 
 
就像在XP系统中的“boot.ini”文件,添加C:\GRLDR="Start GRUB"那么简单地加载GRUB启动项,在WIN7系统中如何实现?
 请高手指点一下,多谢!
 
Just like in the XP system's "boot.ini" file, adding "C:\GRLDR=\"Start GRUB\"" to simply load the GRUB boot item, how to achieve this in the WIN7 system? Please give guidance from the experts, thanks! 
 
 
 
 |  
                  |  非凡财富Q群:62667973
 @投资研讨,共享财富@
 |  | 
|  2010-11-17 22:48 |  | 
|  | 
 
| fengxi 初级用户
 
   
 
 
 积分 122
 发帖 7
 注册 2003-8-7
 状态 离线
 | 
| 『第 2 楼』:
 
 
使用 LLM 解释/回答一下 
 
 
bcdedit /create /d "GRUB" /application bootsector此时生成一个{id}
 bcdedit /set {id} device partition=C:
 bcdedit /set {id} path \gdldr.mbr
 bcdedit /displayorder {id} /addlast
 
 c盘根目录需放有gdldr.mbr,grldr
 
bcdedit /create /d "GRUB" /application bootsectorAt this time, a {id} is generated
 bcdedit /set {id} device partition=C:
 bcdedit /set {id} path \gdldr.mbr
 bcdedit /displayorder {id} /addlast
 
 The root directory of drive C needs to have gdldr.mbr and grldr
 
 
 
 |  | 
|  2010-11-17 23:26 |  | 
|  | 
 
| martin325 银牌会员
 
      
 
 
 
 积分 1582
 发帖 603
 注册 2006-2-20
 状态 离线
 | 
| 『第 3 楼』:
 
 
使用 LLM 解释/回答一下 
 
 
Originally posted by fengxi at 2010-11-17 23:26:bcdedit /create /d "GRUB" /application bootsector
 此时生成一个{id}
 bcdedit /set {id} device partition=C:
 bcdedit /set {id} path \gdldr.mbr
 bcdedit /displayorder {id} /addlast
 
 ...
 
谢谢指点,这个方法不需要借助第三方工具就能完成。 
Originally posted by fengxi at 2010-11-17 23:26:bcdedit /create /d "GRUB" /application bootsector
 At this time, a {id} is generated
 bcdedit /set {id} device partition=C:
 bcdedit /set {id} path \gdldr.mbr
 bcdedit /displayorder {id} /addlast
 
 ...
 
Thank you for the advice. This method can be completed without relying on third-party tools. 
 
 
 
 |  
                  |  非凡财富Q群:62667973
 @投资研讨,共享财富@
 |  | 
|  2010-11-17 23:52 |  | 
|  | 
 
| martin325 银牌会员
 
      
 
 
 
 积分 1582
 发帖 603
 注册 2006-2-20
 状态 离线
 | 
| 『第 4 楼』:
 
 
使用 LLM 解释/回答一下 
 
 
刚才我自己测试了一把,原来在安装好的WIN7系统下系统盘C:\boot下也有BCD文件,只是文件大小与ISO中的不同,然后把BcdTool(或easybcd)复制到BOOT文件下,也能修改这个BCD文件,于是就设置了GRUB的实模式启动,然后复制grldr.mbr、grldr、menu.lst以及自己制作的DOS映像文件到C:\根目录下,重新启动WIN7,可选菜单出现了,应用成功!
 Last edited by martin325 on 2010-11-18 at 00:17 ]
 
Just now I tested it myself. It turns out that in the installed WIN7 system, there is also a BCD file under the system disk C:\boot, but the file size is different from that in the ISO. Then copy BcdTool (or easybcd) to the BOOT file, and you can also modify this BCD file. So I set up the real-mode boot of GRUB, then copied grldr.mbr, grldr, menu.lst and the self-made DOS image file to the C:\ root directory. Restarted WIN7, the optional menu appeared, and the application was successful!
 Last edited by martin325 on 2010-11-18 at 00:17 ]
 
 
 
 
 |  
                  |  非凡财富Q群:62667973
 @投资研讨,共享财富@
 |  | 
|  2010-11-17 23:54 |  | 
|  | 
 
| DXSX 中级用户
 
    
 
 
 
 积分 247
 发帖 147
 注册 2009-4-9
 状态 离线
 | 
| 『第 5 楼』:
 
 
使用 LLM 解释/回答一下 
 
 
需要 grldr.mbr /grldr 两个文件,同时把下面内容编辑成 cmd 脚本并运行。
 @ECHO OFF
 for /f "tokens=2" %%c in ('BCDEDIT /CREATE /D "BOOT FROM GRUB" /application bootsector ') do set id=%%c
 bcdedit /set %id% device partition=c:
 bcdedit /set %id% path \grldr.mbr
 bcdedit /displayorder %id% /addlast
 COPY GRLDR C:\ /Y >NUL
 COPY GRLDR.MBR C:\ /Y >NUL
 PAUSE
 
Need the two files grldr.mbr /grldr, and edit the following content into a cmd script and run it.
 @ECHO OFF
 for /f "tokens=2" %%c in ('BCDEDIT /CREATE /D "BOOT FROM GRUB" /application bootsector ') do set id=%%c
 bcdedit /set %id% device partition=c:
 bcdedit /set %id% path \grldr.mbr
 bcdedit /displayorder %id% /addlast
 COPY GRLDR C:\ /Y >NUL
 COPY GRLDR.MBR C:\ /Y >NUL
 PAUSE
 
 
 
 |  | 
|  2011-1-20 18:03 |  | 
|  | 
 
| gangong 初级用户
 
   
 
 
 
 积分 27
 发帖 14
 注册 2023-12-31
 状态 离线
 | 
| 『第 6 楼』:
 双系统dos和xp系统可以共存一硬盘不
 
使用 LLM 解释/回答一下 
 
 
求助一大师们怎么做引导了 
Ask a master, how to make a boot? 
 
 
 |  | 
|  2024-1-26 18:43 |  |