![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-08-11 21:38 |
47,811 topics / 349,897 posts / today 0 new / 48,256 members |
| GRUB4DOS、SYSLINUX及其它启动管理软件讨论专区 » How to add a GRUB boot entry in the BOOTMGR of the WIN7 system |
| Printable Version 12,060 / 5 |
| Floor1 martin325 | Posted 2010-11-17 22:48 |
| 银牌会员 Posts 603 Credits 1,582 | |
|
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!
|
|
| Floor2 fengxi | Posted 2010-11-17 23:26 |
| 初级用户 Posts 7 Credits 122 | |
|
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 The root directory of drive C needs to have gdldr.mbr and grldr |
|
| Floor3 martin325 | Posted 2010-11-17 23:52 |
| 银牌会员 Posts 603 Credits 1,582 | |
Originally posted by fengxi at 2010-11-17 23:26: Thank you for the advice. This method can be completed without relying on third-party tools. |
|
| Floor4 martin325 | Posted 2010-11-17 23:54 |
| 银牌会员 Posts 603 Credits 1,582 | |
|
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 ] |
|
| Floor5 DXSX | Posted 2011-01-20 18:03 |
| 中级用户 Posts 147 Credits 247 | |
|
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 |
|
| Floor6 gangong | Posted 2024-01-26 18:43 |
| 初级用户 Posts 14 Credits 27 | |
|
Ask a master, how to make a boot?
|
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |