首先,你得先将你U盘或移动硬盘(我用的纽曼亮剑系列80G)做为启动盘.方法这里不多介绍.
记得将启动分区设为活动.
将ghost83 传到移动硬盘上,然后就修改config.sys和autoexec.bat
请确保你已经准备好了文章中所涉及的文件比如USBASPI.SYS,DI1000DD.SYS等等
需要的文件列表:
DEVLOAD.COM,在DOS下加载驱动的工具
USBASPI.SYS,USB驱动,松下的.
DI1000DD.SYS 据说是分配盘的
cd.sys,有待补充
SMARTDRV.EXE,加速磁盘读取的,详细请查阅google
XMSDSK,虚拟磁盘工具
findramd,好象是查找虚拟盘符的
ghost.exe,这个不用介绍了吧?我用的8.3版本的
文件包下载地址:
http://v.xok.cc/win/soft/dos/dos_upload.rar
会遇到的错误信息有:
the following file is missing or corrupt:USBASPI.SYS
not ready reading drive c
Abort, Retry, Fail?
我的如下:
下载: CONFIG.SYS
menuitem=A, NORMAL BOOT! (HIMEM.SYS)
menuitem=B, HIMEM+USB SUPPORT BOOT
menudefault=A,6
menucolor=14,0
DEVICEHIGH=himem.sys /testmem:off
DEVICEHIGH=himem.sys /testmem:off
DEVICEHIGH=USBASPI.SYS /norst
DEVICEHIGH=DI1000DD.SYS
DEVICEHIGH=cd.sys /D:ARGZS
DOS=HIGH,UMB,AUTO
FCBSHIGH=4,0
FILESHIGH=30
BUFFERSHIGH=30,0
LASTDRIVEHIGH=32
STACKSHIGH=9,256
lastdrive=z
B,是加载高速USB2.0驱动的,但是在移动硬盘上会失效,原因是:
当USB2.0驱动USBASPI.SYS加上后,USB设备会被重置(可能是地址号),一旦重置,就不能读取当前分区的内容,相当于已经将盘取了.但是ghost还是能认出的.所以DEVICEHIGH=USBASPI.SYS之后的所有内容就不再执行,包括autoexec.bat也不会执行,那么我们怎么来解决呢?可以这样,可以在内存中虚拟出一个磁盘来,将常用的命令以及ghost命令复制过去,这样,就直接在内存中操作了,不受重置影响.
具体操作:
在上面代码中选择A,进入.不加载USB驱动.
内存中虚拟磁盘交给autoexec.bat完成,代码为:
下载: 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
copy command.com %RAMDRIVE%\ > NUL
set comspec=%RAMDRIVE%\command.com
md %RAMDRIVE%\ghost
copy tools\ghost\ghost.exe %RAMDRIVE%\ghost > NUL
copy DELTREE.EXE %RAMDRIVE%\ > NUL
copy EXTRACT.EXE %RAMDRIVE%\ > NUL
%RAMDRIVE%\EXTRACT /y /e /l %RAMDRIVE% ebd.cab
copy FDISK.EXE %RAMDRIVE%\ > NUL
copy XCOPY.EXE %RAMDRIVE%\ > NUL
copy usb\DEVLOAD.COM %RAMDRIVE%\ > NUL
copy usb\Usbaspi.sys %RAMDRIVE%\ > NUL
copy usb\DI1000DD.SYS %RAMDRIVE%\ > NUL
copy GHOST.BAT %RAMDRIVE%\ > NUL
%RAMDRIVE%
:ext
代码中可以看出,我划分的32M做X盘.是内存中的.我试过划分50M,失败了.原因还是X.
到这里,已经将2个文件修改好了,那么启动后会自动虚拟磁盘,并把常用文件COPY到虚拟的内存中,并自动切换到X盘中.
现在就差加载USB2.0驱动了,我是这样做的,在执行ghost之前加载USB2.0驱动,代码为
x:\devload.com x:\usbaspi.sys /norst
/norst参数,不重置USB鼠标键盘.如果你地方鼠标键盘是USB接口的,很有需要的
然后再执行ghost,速度达到1200M/M 左右,也就是20M/S左右.速度爽啊.
要明白usb1的速度就1-2M/S的样子哦.2M/S还是很理想的了
以上文件打包地址:
http://v.xok.cc/win/soft/dos/dos_upload.rar
文章中,难免很多不足的,欢迎大家到我BLOG指出.谢谢
本文来自:E点废墟(
www.xok.la) 详细出处参考:
BLOG:
http://xok.la/2008/04/dos_usb_harddisk_20m.html
First of all, you need to make your USB flash drive or external hard drive (I use the Newmine Bright Sword series 80G) as a bootable disk. The method is not introduced much here.
Remember to set the boot partition as active.
Transfer ghost83 to the external hard drive, and then modify config.sys and autoexec.bat
Please make sure you have prepared the files involved in the article, such as USBASPI.SYS, DI1000DD.SYS, etc.
List of required files:
DEVLOAD.COM, a tool to load drivers under DOS
USBASPI.SYS, USB driver, Panasonic's.
DI1000DD.SYS is said to be for assigning disks
cd.sys, to be supplemented
SMARTDRV.EXE, to accelerate disk reading, for details please refer to Google
XMSDSK, virtual disk tool
findramd, seems to be for finding virtual drive letters
ghost.exe, no need to introduce it, right? I use the 8.3 version
File package download address:
http://v.xok.cc/win/soft/dos/dos_upload.rar
The error messages you may encounter are:
the following file is missing or corrupt:USBASPI.SYS
not ready reading drive c
Abort, Retry, Fail?
Mine is as follows:
Download: CONFIG.SYS
menuitem=A, NORMAL BOOT! (HIMEM.SYS)
menuitem=B, HIMEM+USB SUPPORT BOOT
menudefault=A,6
menucolor=14,0
DEVICEHIGH=himem.sys /testmem:off
DEVICEHIGH=himem.sys /testmem:off
DEVICEHIGH=USBASPI.SYS /norst
DEVICEHIGH=DI1000DD.SYS
DEVICEHIGH=cd.sys /D:ARGZS
DOS=HIGH,UMB,AUTO
FCBSHIGH=4,0
FILESHIGH=30
BUFFERSHIGH=30,0
LASTDRIVEHIGH=32
STACKSHIGH=9,256
lastdrive=z
B is for loading the high-speed USB2.0 driver, but it will fail on the external hard drive. The reason is:
When the USB2.0 driver USBASPI.SYS is added, the USB device will be reset (probably the address number). Once reset, the content of the current partition cannot be read, which is equivalent to having removed the disk. But ghost can still recognize it. So all the content after DEVICEHIGH=USBASPI.SYS will not be executed, including autoexec.bat will not be executed. Then how do we solve it? We can virtualize a disk in memory, copy common commands and ghost commands to it, so that we can operate directly in memory without being affected by the reset.
Specific operation:
Select A in the above code to enter. Do not load the USB driver.
The virtual disk in memory is completed by autoexec.bat. The code is:
Download: 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
copy command.com %RAMDRIVE%\ > NUL
set comspec=%RAMDRIVE%\command.com
md %RAMDRIVE%\ghost
copy tools\ghost\ghost.exe %RAMDRIVE%\ghost > NUL
copy DELTREE.EXE %RAMDRIVE%\ > NUL
copy EXTRACT.EXE %RAMDRIVE%\ > NUL
%RAMDRIVE%\EXTRACT /y /e /l %RAMDRIVE% ebd.cab
copy FDISK.EXE %RAMDRIVE%\ > NUL
copy XCOPY.EXE %RAMDRIVE%\ > NUL
copy usb\DEVLOAD.COM %RAMDRIVE%\ > NUL
copy usb\Usbaspi.sys %RAMDRIVE%\ > NUL
copy usb\DI1000DD.SYS %RAMDRIVE%\ > NUL
copy GHOST.BAT %RAMDRIVE%\ > NUL
%RAMDRIVE%
:ext
It can be seen from the code that I divided 32M as drive X. It is in memory. I tried dividing 50M and it failed. The reason is still X.
Up to here, the two files have been modified. Then after booting, it will automatically virtualize the disk, copy common files to the virtual memory, and automatically switch to drive X.
Now only the USB2.0 driver needs to be loaded. I do it like this. Load the USB2.0 driver before executing ghost. The code is
x:\devload.com x:\usbaspi.sys /norst
/norst parameter, do not reset the USB mouse and keyboard. If your mouse and keyboard are USB interfaces, it is very necessary
Then execute ghost, and the speed reaches about 1200M/M, that is, about 20M/S. The speed is great.
You should understand that the speed of usb1 is about 1-2M/S. 2M/S is still very ideal.
The above file package address:
http://v.xok.cc/win/soft/dos/dos_upload.rar
There are many deficiencies in the article, welcome everyone to point out in my BLOG. Thank you
This article is from: E Point Ruins (
www.xok.la) For detailed origin reference:
BLOG:
http://xok.la/2008/04/dos_usb_harddisk_20m.html