无忧启动论坛

标题: [求助]在DOS中加载USB2.0驱动后,如果启动PE [打印本页]

作者: wq168111    时间: 2008-6-29 18:32
标题: [求助]在DOS中加载USB2.0驱动后,如果启动PE
我从网上找教程,终于实现在DOS中加载USB2.0驱动,但不知如何加载PE,网上的教程说得不详细,我是刚接触U盘启动技术的新人,希望高手指点一下。还有,我用的机子是技嘉845E的主板,U盘是天朗2G,在dos中加载USB2.0驱动后,ghost速度可达850M/分,可在NF5芯片组的七彩虹和铭暄板中,速度才200多M/分,这是为什么?

     附上AUTOEXEC.BAT:

@echo off
rem x,is xok.la
SMARTDRV.EXE
XMSDSK 32768 x: /Y>NUL
findramd>NUL
IF %RAMDRIVE%#==# goto no_ramdrive
if "%RAMDRIVE%"=="C:" goto c_drive
goto success
:c_drive
ECHO NO CCCCCCC
goto success
:no_ramdrive
ECHO CCCCCCCCC
pause
goto ext
:success
md %RAMDRIVE%\temp
set temp=%RAMDRIVE%\temp
set tmp=%RAMDRIVE%\temp
rem set path=%RAMDRIVE%\;c:\
copy command.com %RAMDRIVE%\ > NUL
set comspec=%RAMDRIVE%\command.com
copy EXTRACT.EXE %RAMDRIVE%\ > NUL
%RAMDRIVE%\EXTRACT /y /e /l %RAMDRIVE% ebd.cab
copy usb\DEVLOAD.COM %RAMDRIVE%\ > NUL
copy usb\Usbaspi.sys %RAMDRIVE%\ > NUL
copy usb.BAT %RAMDRIVE%\ > NUL
copy usb\ASPIDISK.SYS %RAMDRIVE%\ > NUL
x:\devload.com x:\usbaspi.sys /norst
x:\devload.com x:\ASPIDISK.SYS
%RAMDRIVE%

:ext



CONFIG.SYS:

[menu]
menuitem=A, NORMAL BOOT!  (HIMEM.SYS)
menudefault=A,0
menucolor=14,0
[A]
DEVICEHIGH=himem.sys /testmem:off

[COMMON]
DEVICEHIGH=cd.sys /D:ARGZS
DOS=HIGH,UMB,AUTO
FCBSHIGH=4,0
FILESHIGH=30
BUFFERSHIGH=30,0
LASTDRIVEHIGH=32
STACKSHIGH=9,256
lastdrive=z
作者: songshf123    时间: 2008-6-29 18:53
没必要这么麻烦...
作者: wwwccc    时间: 2008-7-4 16:31
config.sys:
device=himem.sys /testmem:off
device=usbaspi.sys /e /r /norst
devicehigh=aspidisk.sys
files=20
buffers=30
dos=high,umb
lastdrive=z

autoexec.bat:
@echo off
cls
path a:\
echo Searching USB DEVICE......
set UDrv=
set PeFlag=minipe\pe
rem 找PeFlag文件就代表找到U盘
if exist z:\%PeFlag% set UDrv=z:
IF not "%UDrv%"=="" GOTO ufind
if exist y:\%PeFlag% set UDrv=y:
IF not "%UDrv%"=="" GOTO ufind
if exist x:\%PeFlag% set UDrv=x:
IF not "%UDrv%"=="" GOTO ufind
if exist w:\%PeFlag% set UDrv=w:
IF not "%UDrv%"=="" GOTO ufind
if exist v:\%PeFlag% set UDrv=v:
IF not "%UDrv%"=="" GOTO ufind
if exist u:\%PeFlag% set UDrv=u:
IF not "%UDrv%"=="" GOTO ufind
if exist t:\%PeFlag% set UDrv=t:
IF not "%UDrv%"=="" GOTO ufind
if exist s:\%PeFlag% set UDrv=s:
IF not "%UDrv%"=="" GOTO ufind
if exist r:\%PeFlag% set UDrv=r:
IF not "%UDrv%"=="" GOTO ufind
if exist q:\%PeFlag% set UDrv=q:
IF not "%UDrv%"=="" GOTO ufind
if exist p:\%PeFlag% set UDrv=p:
IF not "%UDrv%"=="" GOTO ufind
if exist o:\%PeFlag% set UDrv=o:
IF not "%UDrv%"=="" GOTO ufind
if exist n:\%PeFlag% set UDrv=n:
IF not "%UDrv%"=="" GOTO ufind
if exist m:\%PeFlag% set UDrv=m:
IF not "%UDrv%"=="" GOTO ufind
if exist l:\%PeFlag% set UDrv=l:
IF not "%UDrv%"=="" GOTO ufind
if exist k:\%PeFlag% set UDrv=k:
IF not "%UDrv%"=="" GOTO ufind
if exist j:\%PeFlag% set UDrv=j:
IF not "%UDrv%"=="" GOTO ufind
if exist i:\%PeFlag% set UDrv=i:
IF not "%UDrv%"=="" GOTO ufind
if exist h:\%PeFlag% set UDrv=h:
IF not "%UDrv%"=="" GOTO ufind
if exist g:\%PeFlag% set UDrv=g:
IF not "%UDrv%"=="" GOTO ufind
if exist f:\%PeFlag% set UDrv=f:
IF not "%UDrv%"=="" GOTO ufind
if exist e:\%PeFlag% set UDrv=e:
IF not "%UDrv%"=="" GOTO ufind
if exist d:\%PeFlag% set UDrv=d:
IF not "%UDrv%"=="" GOTO ufind
if exist c:\%PeFlag% set UDrv=c:
IF not "%UDrv%"=="" GOTO ufind
if exist b:\%PeFlag% set UDrv=b:
IF not "%UDrv%"=="" GOTO ufind
if exist a:\%PeFlag% set UDrv=a:
IF not "%UDrv%"=="" GOTO ufind
GOTO ERR_FindUDrv

:ufind
a:
cd\
if not exist grub.exe copy %UDrv%\boot\grub\grub.exe
cd minipe
rem 以U盘的minipe中的PE作标准配置位置
copy %UDrv%\minipe\pe

rem 准备PE镜像和Winpe.ini文件
copype %UDrv%
cd\

rem 用grub.exe来链式装载PE
grub.exe --config-file="root (fd0);chainloader (fd0)/ldrxpe"
goto end

:ERR_FindUDrv
cls
echo USB Device Not Found.
goto end

:ERR_CopyFile
echo Not found "PE" file!
goto END

:END
作者: wq168111    时间: 2008-7-5 18:36
原帖由 wwwccc 于 2008-7-4 04:31 PM 发表
config.sys:
device=himem.sys /testmem:off
device=usbaspi.sys /e /r /norst
devicehigh=aspidisk.sys
files=20
buffers=30
dos=high,umb
lastdrive=z

autoexec.bat:
@echo off
cls
...


这样不行啊,死机。我那AUTOEXEC.BAT先实现划分一个虚拟分区X,再加载USB2.0驱动的,我只想知道如何在DOS的状态中加载PE




欢迎光临 无忧启动论坛 (http://bbs.wuyou.net./) Powered by Discuz! X3.3