中国DOS联盟论坛

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-12 01:27
47,811 topics / 349,897 posts / today 0 new / 48,256 members
GRUB4DOS、SYSLINUX及其它启动管理软件讨论专区 » How to automatically switch between Vista & DOS dual systems <Urgent>
Printable Version  3,148 / 9
Floor1 cmleo Posted 2009-02-08 16:14
初级用户 Posts 12 Credits 23
How to achieve booting into DOS next time under Vista system. Conversely, how to achieve booting into Vista system next time under DOS.
Floor2 Qtwdftxvt Posted 2009-02-13 15:20
初级用户 Posts 101 Credits 190
It's best to use GRUB, install GRUB to the MBR, and then make a menu.lst.
Floor3 cmleo Posted 2009-02-17 23:20
初级用户 Posts 12 Credits 23
But when installing the CD version of DOS under Windows Vista, you cannot change the MBR, otherwise the purpose of mutual conversion cannot be achieved. I don't know why.
Floor4 coastline Posted 2009-02-19 10:35
初级用户 Posts 20 Credits 41
Deep Mountain Red Leaf's Vista/Windows XP Boot Mode Switching Program
Or the method on the 2nd floor: Making a menu - should be the best solution
Floor5 Sufone Posted 2009-02-19 11:33
中级用户 Posts 124 Credits 256
### From grub4dos Tutorial
1. grub4dos Beginner's Tutorial - Introductory Section

1.3 How to Install grub4dos?

1.3.4 Enter grub4dos through the Boot Menu of Windows VISTA/Window 7

Automatically load grub4dos into the Vista boot item (not MBR) using a batch script.

Loading grub4dos into the Vista boot item is relatively safer compared to loading it into the MBR.
【For Vista system, you cannot restore the MBR by fdisk /mbr, which will cause Vista to fail to boot.】

There are some introductions on the Internet about the manual method of loading grub4dos into the Vista boot item. Compared with modifying Boot.ini in WinXP, the operation is much more complicated.

The main thing is that an ID number [such as: b88a2da4-0a4e-11dc-813a-00e04c75ef59] needs to be generated during the operation, and it needs to be entered manually 3 times, which is really troublesome.

The following batch script automatically completes the entire loading operation.

Instructions:
1. When the batch script and grldr.mbr are in the same directory, the grldr.mbr file is automatically copied to the system root directory; otherwise, it needs to be copied manually.
2. After adding the grub4dos item in the boot item, copy the prepared menu.lst and grldr files to C:\ (can also be placed in the root directory of other partitions).

-------------------------------
Installation Batch Script

@echo off
rem by lianjiang
cls
echo.
echo Please run as an administrator.
echo.
pause
set gname=GRUB for DOS
set vid=
set timeout=5
bcdedit >bcdtemp.txt
type bcdtemp.txt | find "\grldr.mbr" >nul && echo. && echo There is already a grub4dos item in the BCD boot item, no need to install again.&& pause && goto exit
bcdedit /export "Bcd_Backup" >nul
bcdedit /create /d "%gname%" /application bootsector >vid.ini
for /f "tokens=2 delims={" %%i In (vid.ini) Do (
set vida=%%i
)
for /f "tokens=1 delims=}" %%i In ("%vida%") Do (
set vid={%%i}
)
echo %vid%>vid.ini
bcdedit /set %vid% device partition=%systemdrive% >nul
bcdedit /set %vid% path \grldr.mbr >nul
bcdedit /displayorder %vid% /addlast >nul
bcdedit /timeout %timeout% >nul
if exist grldr.mbr copy grldr.mbr %systemdrive%\ /y && goto exit
echo.
echo Please copy grldr.mbr to the root directory of %systemdrive%\ later
echo.
pause
:exit
del bcdtemp.txt >nul

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

Uninstallation Batch Script

@echo off
rem by lianjiang
cls
echo.
echo It is required that there is a temporary file automatically saved when the installation batch script is used for installation.
echo.
echo Please run as an administrator.
echo.
pause
set vid=
set timeout=5
if exist Bcd_Backup bcdedit /import "Bcd_Backup" >nul&& goto 1

if not exist vid.ini (
echo.
echo Because the relevant files are deleted, the boot item project cannot be deleted automatically, and it can only be deleted manually.
echo.
pause
goto exit
)

for /f "tokens=1" %%i In (vid.ini) Do (
set vid=%%i
)
bcdedit /delete %vid% /cleanup >nul
bcdedit /timeout %timeout% >nul
:1
del vid.ini >nul
if exist %systemdrive%\grldr.mbr (
attrib -h -s -r %systemdrive%\grldr.mbr >nul
del %systemdrive%\grldr.mbr >nul
)

:exit
Floor6 cmleo Posted 2009-02-19 21:39
初级用户 Posts 12 Credits 23
How to use Ghost to make an image for a dual system of DOS and Vista?

I installed the dual system using grub. Please tell me how to quickly make an image to ensure it is usable. Thanks!
Floor7 lianjiang2004 Posted 2009-02-20 12:07
金牌会员 Posts 1,884 Credits 3,946
I didn't understand what it means.
Floor8 cmleo Posted 2009-03-03 11:55
初级用户 Posts 12 Credits 23
Thanks everyone, learned a lot!~·
Floor9 cmleo Posted 2009-03-03 12:01
初级用户 Posts 12 Credits 23
Through the research on Ghost, the following functions have been realized! ~
Realized through the following batch processing: Ghost-clone, mode={copy│load│dump}, src={drive│file│drive:partition}, dst={drive│file│drive:partition}/fro/fx/rb/f32/Z(n)/sure
Floor10 ben1314 Posted 2009-03-18 22:07
初级用户 Posts 16 Credits 25 From 河南新乡
Comrade on floor 5 is very capable, give a thumbs up
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023