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-07-23 01:58
中国DOS联盟论坛 » DOS启动盘 & LOGO技术 (启动盘室) » [Original] Successfully loaded USB 2.0 mobile hard disk under DOS, speed 20M/S View 6,998 Replies 21
Original Poster Posted 2008-04-09 13:00 ·  中国 四川 成都 电信
初级用户
Credits 24
Posts 8
Joined 2007-02-02 04:33
19-year member
UID 78386
Gender Male
Status Offline
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
Floor 2 Posted 2008-04-09 16:05 ·  中国 广东 惠州 电信
初级用户
Credits 94
Posts 36
Joined 2005-09-19 01:08
20-year member
UID 42619
Status Offline
Take a sofa.

It seems that sometimes it is beneficial to load drivers after booting into DOS.

Learned.
Floor 3 Posted 2008-04-10 09:04 ·  中国 湖北 潜江 电信
中级用户
★★
Credits 376
Posts 164
Joined 2006-12-05 01:28
19-year member
UID 72582
Gender Male
Status Offline
Simple Method to Speed up U Disk Version XPE

I've been playing with operating systems on U disks for a long time. (Specifically, you can see my posts in the China DOS Union). I've always been troubled by the slow boot of the system on the U disk. The other day, I saw someone on Wuyou mention that first drive the USB 2.0 under DOS and then load XPE. Actually, I thought of this method a long time ago, but I couldn't successfully drive my 2G ADATA U disk. Finally, I used the most compatible usbaspi.sys and aspidisk.sys to drive it. The method is as follows, and I hope it will be helpful to everyone: First, use xmsdsk to make a memory disk, set the drive letter to M. The advantage of this is that the drive letter of the successfully driven U disk will be N or later. This is very important. If there are not more than two USBs at the same time, the drive letter of the driven U disk must be N. At least I've tried it on many machines. The batch command I use to drive USB 2.0 is USB2.BAT, and the content is: @echo off
xmsdsk 1440 M: /y >nul
mkdir m:\usb2 >nul
copy \command.com m:\ /y >nul
copy \dos\usb2\usb2ok.bat m:\usb2 /y >nul
copy \dos\usb2\aspidisk.sys m:\usb2 /y >nul
copy \dos\usb2\usbaspi.sys m:\usb2 /y >nul
copy \dos\usb2\loadsys.exe m:\usb2 /y >nul
set comspec=M:\command.com >nul
m:
\usb2\usb2ok.bat  Among them, the content of usb2ok.bat is: @echo off
cls
echo Loading USB2.0 driver now.
echo Waitting...
m:
cd \usb2
loadsys usbaspi.sys /e /v /norst >nul
loadsys aspidisk.sys >nul
set drive=n:
PATH=.\;%drive%\;%drive%\dos;%drive%\boot;%drive%\boot\media;%drive%\boot\net;%drive%\boot\ext
%drive%
cd \boot
echo Now USB disk is: %drive%
echo. In the above part, I put several programs under \dos\usb2. The drive variable is defined in autoexec.bat. Initially, it is A (USB_ZIP), or C (USB_HDD). The part that hasn't been improved is the judgment when there are more than two USBs connected. I don't have time to write it well. Please modify it and share it with everyone when you have time. In this way, the U disk is driven to 2.0 and has a drive letter, and then use GRUB4DOS or other methods to load XPE or other larger IMG.

[ Last edited by minchengan on 2008-4-10 at 09:05 AM ]
Floor 4 Posted 2008-04-10 13:47 ·  中国 广东 湛江 电信
初级用户
Credits 61
Posts 33
Joined 2007-01-13 03:02
19-year member
UID 76342
Gender Male
Status Offline
Give it a thumbs up. The method of Wuyou chenall is very good, compact and fast, supports USB flash drives, and can be tested.

See http://bbs.wuyou.com/viewthread.php?tid=117004
Floor 5 Posted 2008-04-10 13:58 ·  中国 北京 鹏博士BGP
新手上路
Credits 12
Posts 6
Joined 2006-11-24 03:47
19-year member
UID 71534
Gender Male
Status Offline
Learning
Floor 6 Posted 2008-04-10 15:02 ·  中国 北京 联通
新手上路
Credits 2
Posts 1
Joined 2008-04-10 14:23
18-year member
UID 115474
Gender Male
Status Offline
Floor 7 Posted 2008-04-28 21:39 ·  中国 广东 佛山 联通
初级用户
Credits 52
Posts 27
Joined 2008-04-17 12:05
18-year member
UID 116137
Gender Male
Status Offline
Learning
Floor 8 Posted 2008-04-29 22:28 ·  中国 浙江 杭州 网易云BGP数据中心
初级用户
Credits 26
Posts 13
Joined 2007-08-27 22:46
18-year member
UID 95977
Gender Male
Status Offline
Learn, good
Floor 9 Posted 2008-04-30 10:12 ·  中国 贵州 贵阳 电信
初级用户
★★
Credits 153
Posts 63
Joined 2008-02-17 15:25
18-year member
UID 110834
Gender Male
Status Offline
That's really impressive. Let's learn about it.
Floor 10 Posted 2008-05-06 11:55 ·  中国 辽宁 鞍山 联通
新手上路
Credits 14
Posts 7
Joined 2007-02-17 12:02
19-year member
UID 79696
Gender Male
Status Offline
My card reader + 2G SD card, has always only seen the drive letter, can't read the content,
This time to try again...
Floor 11 Posted 2008-05-10 18:45 ·  中国 河南 郑州 电信
新手上路
Credits 3
Posts 6
Joined 2007-06-10 11:34
19-year member
UID 90860
Gender Male
Status Offline
Top, support it~~
Floor 12 Posted 2008-05-22 17:51 ·  中国 天津 河北区 中移铁通
初级用户
Credits 26
Posts 13
Joined 2006-10-06 08:29
19-year member
UID 64690
Status Offline
Alas. . . Not to mention 20m/s, I still have occasional freezes. . . The gap
Floor 13 Posted 2008-05-22 19:22 ·  中国 福建 宁德 联通
初级用户
终极菜鸟
Credits 111
Posts 6
Joined 2004-07-28 00:00
21-year member
UID 29185
Gender Male
Status Offline
Currently researching USB flash drive three-in-one, please refer to it
Floor 14 Posted 2008-08-07 12:38 ·  中国 广东 中山 电信
新手上路
Credits 8
Posts 4
Joined 2008-08-07 11:48
17-year member
UID 122885
Gender Male
Status Offline
Learn, nice
Floor 15 Posted 2008-08-07 23:11 ·  中国 湖北 宜昌 电信
新手上路
Credits 4
Posts 2
Joined 2008-08-07 22:48
17-year member
UID 122938
Gender Male
Status Offline
Let's see how it is. I just need it.
Forum Jump: