|
已经可以量产成USB-cdrom+hdd了,现在需要一个自己的ISO
要求:1.启动win98.img
2.启动winpe
3.重启电脑
4.硬盘启动
附加要求:再加一个tools(自己常用的dos工具)
我已经用ezboot完成了iso
做成的iso在虚拟机中调试是正常的,一旦量产U就出现光驱无法访问的问题
自己尝试解决--没成功
1.在win98.img中的纯dos下加载ISO(一个只有tools的ISO),没成功
2.修改win98.img的config最后一句为devicehigh=ramdrive.sys /E 25920,进dos后虚拟内存盘还是8M(没变化),好像ramdrive.sys最大32M吧,应该不是虚拟内存盘的问题哦,是不是win98.img在其它的某个文件的某一句才是确定虚拟内存盘容量的,那一个?
3.更改ramdrive.sysy为XMSDSK,同时删除了config.sys的devicehigh=ramdrive.sys /E 25920一句,参考了矮人dos工具箱的img中autoexec.bat,修改为:
XMSDSK 26000 /Y>NUL
findramd>NUL
md %RAMDRIVE%\temp
set temp=%RAMDRIVE%\temp
set tmp=%RAMDRIVE%\temp
set path=%RAMDRIVE%\;a:\
copy command.com %RAMDRIVE%\ > NUL
set comspec=%RAMDRIVE%\command.com
%RAMDRIVE%
原版的auroexex.bat(红色的部分被修改)
@ECHO OFF
set EXPAND=YES
SET DIRCMD=/O:N
set LglDrv=27 * 26 Z 25 Y 24 X 23 W 22 V 21 U 20 T 19 S 18 R 17 Q 16 P 15
set LglDrv=%LglDrv% O 14 N 13 M 12 L 11 K 10 J 9 I 8 H 7 G 6 F 5 E 4 D 3 C
cls
call setramd.bat %LglDrv%
set temp=c:\
set tmp=c:\
path=%RAMD%:\;a:\;%CDROM%:\
copy command.com %RAMD%:\ > NUL
set comspec=%RAMD%:\command.com
copy extract.exe %RAMD%:\ > NUL
copy readme.txt %RAMD%:\ > NUL
:ERROR
IF EXIST ebd.cab GOTO EXT
echo Please insert Windows 98 Startup Disk 2
echo.
pause
GOTO ERROR
:EXT
%RAMD%:\extract /y /e /l %RAMD%: ebd.cab > NUL
echo The diagnostic tools were successfully loaded to drive %RAMD%.
echo.
IF "%config%"=="NOCD" GOTO QUIT
IF "%config%"=="HELP" GOTO HELP
LH %ramd%:\MSCDEX.EXE /D:mscd001 /L:%CDROM%
echo.
GOTO QUIT
:HELP
cls
call help.bat
echo Your computer will now restart and the startup menu will appear.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
restart.com
GOTO QUIT
:QUIT
echo To get help, type HELP and press ENTER.
echo.
rem clean up environment variables
set CDROM=
set LglDrv=
还有其它思路没?求教!!! |
|