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-18 13:34
中国DOS联盟论坛 » DOS启动盘 & LOGO技术 (启动盘室) » How to drive a USB flash drive under DOS View 4,967 Replies 15
Original Poster Posted 2006-06-17 14:34 ·  中国 福建 泉州 电信
初级用户
Credits 34
Posts 13
Joined 2006-03-31 20:51
20-year member
UID 53122
Gender Male
From fj
Status Offline
There are many kinds of drivers for USB flash drives (mass storage disks) under DOS, but I found that only duse can support plug and play. However, when actually driving the USB flash drive, it only recognizes insertion and removal. That is, it cannot be driven normally.
I hope everyone can give some suggestions, or share experiences in this regard.
Another thing: I am using DOS ver6.22, and the configuration file config.sys is
device=a:\duse.exe nocd driver=1 ver=2 sec=2048 xfer=8
Floor 2 Posted 2006-06-17 15:43 ·  中国 上海 松江区 电信
铂金会员
★★★★
DOS一根葱
Credits 5,493
Posts 2,315
Joined 2006-05-01 10:41
20-year member
UID 54766
Gender Male
From 上海
Status Offline
DUSE takes up too much memory and identifies few USB drive types. If there's no special need, it's better to use USBASPI.SYS.
Floor 3 Posted 2006-06-17 17:33 ·  中国 福建 泉州 电信
初级用户
Credits 34
Posts 13
Joined 2006-03-31 20:51
20-year member
UID 53122
Gender Male
From fj
Status Offline
Originally posted by fastslz at 2006-6-17 15:43:
DUSE takes up too much memory, and it identifies few USB drive types. If there's no special need, it's better to use USBASPI.SYS.

But if we use USBASPI.SYS, it doesn't support plug and play. Have you ever done something to make it support plug and play?
Floor 4 Posted 2006-06-17 19:41 ·  中国 上海 松江区 电信
铂金会员
★★★★
DOS一根葱
Credits 5,493
Posts 2,315
Joined 2006-05-01 10:41
20-year member
UID 54766
Gender Male
From 上海
Status Offline
Hehe, I mean if there is no special need, unless the work environment only has the DOS system and can't be shut down. After all, restarting DOS only takes 4 to 8 seconds. However, USBASPI.SYS can also be loaded by command or batch processing.

DEVLOAD /H /Q /A USBASPI.SYS /V
DEVLOAD /H /Q /A DI1000DD.SYS
Floor 5 Posted 2006-06-18 12:49 ·  中国 福建 泉州 电信
初级用户
Credits 34
Posts 13
Joined 2006-03-31 20:51
20-year member
UID 53122
Gender Male
From fj
Status Offline
Originally posted by fastslz at 2006-6-17 19:41:
Hehe, I mean if there is no special need, unless the working environment only has the DOS system and cannot be powered off. After all, restarting DOS only takes 4-8 seconds. However, USBASPI.SYS can also be loaded by command or batch processing method

DEVLO ...

I am working under DOS and want to read files from the USB flash drive at any time. Plug and play is not supported. Every time I read a file, I have to restart the machine once, which is very troublesome.

[ Last edited by amamnn on 2006-6-18 at 12:50 ]
Floor 6 Posted 2006-06-18 14:29 ·  中国 山东 济南 移动
钻石会员
★★★★★
Credits 10,046
Posts 3,039
Joined 2002-11-11 00:00
23-year member
UID 223
Gender Male
Status Offline
The working environment of the landlord is quite demanding. It has to work under DOS and also transfer large amounts of data. Why not install an MS client?
简单就是美
Floor 7 Posted 2006-06-19 08:20 ·  中国 福建 泉州 电信
初级用户
Credits 34
Posts 13
Joined 2006-03-31 20:51
20-year member
UID 53122
Gender Male
From fj
Status Offline
Originally posted by Michael at 2006-6-18 14:29:
The working environment of the original poster is very demanding. You have to work under DOS and also transfer large amounts of data. Why not install an MS client?

I mainly want to achieve USB plug-and-play function under DOS.
Floor 8 Posted 2006-06-19 15:41 ·  中国 广东 佛山 电信
金牌会员
★★★★
Credits 3,467
Posts 1,616
Joined 2004-06-21 00:00
22-year member
UID 27148
Status Offline
You can use loadsys to manually repeatedly load and unload USBASPI.SYS and DI1000DD.SYS.
Floor 9 Posted 2006-06-19 16:15 ·  中国 福建 泉州 电信
初级用户
Credits 34
Posts 13
Joined 2006-03-31 20:51
20-year member
UID 53122
Gender Male
From fj
Status Offline
Originally posted by fujianabc at 2006-6-19 15:41:
You can manually repeatedly load and unload USBASPI.SYS and DI1000DD.SYS using loadsys.

I have used usbaspi.sys and DI1000DD.SYS, but it doesn't support plug and play. The config.sys file is like this:
device=a:\usbaspi.sys
device=a:\di1000dd.sys
But I haven't tried repeatedly loading and unloading using loadsys. Can you be more specific about how to achieve plug and play with this as well?

[ Last edited by amamnn on 2006-6-19 at 16:55 ]
Floor 10 Posted 2006-06-19 17:38 ·  中国 福建 泉州 电信
初级用户
Credits 34
Posts 13
Joined 2006-03-31 20:51
20-year member
UID 53122
Gender Male
From fj
Status Offline
Originally posted by fujianabc at 2006-6-19 15:41:
You can manually repeatedly load and unload USBASPI.SYS and DI1000DD.SYS using loadsys.

I tried this loadsys in the afternoon and found a problem.
First, I loaded the USB driver (which are the above two files) in config.sys, and I could access the USB flash drive.
Then, I unplugged the USB flash drive and inserted another one. When I then tried to manually repeatedly load and unload USBASPI.SYS and DI1000DD.SYS, the system crashed.
I found that when unloading di1000dd.sys, there was a warning!!!!warning NO TSR or device driver name di1000dd.sys found!
After that, when reloading, the warning: Failed to load di1000dd.sys.

The second method, I did not load in the config.sys file, but when loading manually, I found it worked.
I don't know what the problem is. Is it a memory allocation issue.
集体的智慧是巨大的,无限的,对此我深信不疑.
Floor 11 Posted 2006-06-19 21:16 ·  加拿大 Bell
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
Originally posted by amamnn at 2006-6-19 05:38 PM:

The second method, I didn't load it in the config.sys file, but when I loaded it manually, it worked.
I don't know what the problem is. Is it related to memory allocation?


It's not a memory allocation issue. The key point is that loadsys can only unload drivers loaded by itself, not those loaded in the config.sys file. Can't you just make it a batch file to load?
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 12 Posted 2006-06-19 23:16 ·  中国 福建 泉州 电信
初级用户
Credits 34
Posts 13
Joined 2006-03-31 20:51
20-year member
UID 53122
Gender Male
From fj
Status Offline
Originally posted by Wengier at 2006-6-19 21:16:

It's not a matter of memory allocation. The key point is that loadsys can only unload drivers loaded by itself, not those loaded in the config.sys file. Why not just make it into a batch script to load...

The administrator above, I saw that you are very familiar with this aspect in the forum. Have you ever used DUSE to drive a USB flash drive?
The above method is still a bit inconvenient. I really want to use DUSE, a software that supports plug and play. I wonder if you can give me some pointers?
集体的智慧是巨大的,无限的,对此我深信不疑.
Floor 13 Posted 2006-06-19 23:20 ·  加拿大 Bell
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
Originally posted by amamnn at 2006-6-19 11:16 PM:

Administrator above, I see that you are very familiar with this aspect. Have you ever used DUSE to drive a USB flash drive?
The above method is still a bit inconvenient. I really want to use DUSE, which supports plug and play...


Unfortunately, DUSE indeed does not support USB flash drives. It mainly supports USB floppy/hard drives and USB optical drives, and is indeed powerless for USB flash drives. To support USB flash drives, basically only the USBASPI method is feasible.
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 14 Posted 2006-06-20 07:57 ·  中国 福建 泉州 电信
初级用户
Credits 34
Posts 13
Joined 2006-03-31 20:51
20-year member
UID 53122
Gender Male
From fj
Status Offline
Originally posted by Wengier at 2006-6-19 23:20:

It's a pity that DUSE doesn't support USB flash drives. It mainly supports USB floppy/hard drives and USB CD-ROM drives, and is indeed powerless against USB flash drives. To support USB flash drives, basically only the USBASPI method is feasible.

I also saw that in the DUSE manual, but someone told me that he had achieved it. Then I went to ask him, and he said it was a long time ago and he forgot.
It makes me think about how to achieve it every day. I've looked for many materials but can't achieve it. Really depressed.
集体的智慧是巨大的,无限的,对此我深信不疑.
Floor 15 Posted 2006-06-21 23:29 ·  中国 上海 松江区 电信
初级用户
Credits 20
Posts 4
Joined 2006-06-17 01:27
20-year member
UID 57130
Status Offline
But can USBASPI drive some USB devices with multiple LUNs? Some USB devices can have both USB-CDROM and USB-HDD at the same time.
Forum Jump: