China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-24 20:18
中国DOS联盟论坛 » GRUB4DOS、SYSLINUX及其它启动管理软件讨论专区 » How to automatically switch between Vista & DOS dual systems <Urgent> View 2,947 Replies 9
Original Poster Posted 2009-02-08 16:14 ·  中国 山东 烟台 联通
初级用户
Credits 23
Posts 12
Joined 2009-02-05 23:25
17-year member
UID 138145
Gender Male
Status Offline
How to achieve booting into DOS next time under Vista system. Conversely, how to achieve booting into Vista system next time under DOS.
Floor 2 Posted 2009-02-13 15:20 ·  中国 黑龙江 大兴安岭地区 联通
初级用户
★★
Credits 190
Posts 101
Joined 2008-11-23 14:58
17-year member
UID 131841
Gender Male
Status Offline
It's best to use GRUB, install GRUB to the MBR, and then make a menu.lst.
Floor 3 Posted 2009-02-17 23:20 ·  中国 山东 烟台 联通
初级用户
Credits 23
Posts 12
Joined 2009-02-05 23:25
17-year member
UID 138145
Gender Male
Status Offline
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.
Floor 4 Posted 2009-02-19 10:35 ·  中国 北京 歌华宽带
初级用户
Credits 41
Posts 20
Joined 2005-09-23 22:43
20-year member
UID 42769
Status Offline
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
Floor 5 Posted 2009-02-19 11:33 ·  中国 广东 江门 电信
中级用户
★★
Credits 256
Posts 124
Joined 2007-12-18 16:41
18-year member
UID 106049
Gender Male
Status Offline
### 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
Floor 6 Posted 2009-02-19 21:39 ·  中国 山东 联通
初级用户
Credits 23
Posts 12
Joined 2009-02-05 23:25
17-year member
UID 138145
Gender Male
Status Offline
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!
Floor 7 Posted 2009-02-20 12:07 ·  中国 安徽 马鞍山 联通
金牌会员
★★★★
Credits 3,946
Posts 1,884
Joined 2006-01-20 13:00
20-year member
UID 49283
Gender Male
Status Offline
I didn't understand what it means.
Windows 一键还原
http://www.yjhy.com
Floor 8 Posted 2009-03-03 11:55 ·  中国 山东 烟台 联通
初级用户
Credits 23
Posts 12
Joined 2009-02-05 23:25
17-year member
UID 138145
Gender Male
Status Offline
Thanks everyone, learned a lot!~·
Floor 9 Posted 2009-03-03 12:01 ·  中国 山东 烟台 联通
初级用户
Credits 23
Posts 12
Joined 2009-02-05 23:25
17-year member
UID 138145
Gender Male
Status Offline
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
Floor 10 Posted 2009-03-18 22:07 ·  中国 河南 新乡 电信
初级用户
Credits 25
Posts 16
Joined 2007-10-27 16:01
18-year member
UID 100933
Gender Male
From 河南新乡
Status Offline
Comrade on floor 5 is very capable, give a thumbs up
Forum Jump: