Question

DOS drivers for USB

Asked by: mopr

I'm looking to use a small form factor PC (see PDF) that runs code under DOS 6.22. There is no windows or other OS installed. What I would like to do is to use a memory stick on one of the USB ports to off load data from the system.

I currently use a ZIP drive on an IDE interface for the same function (which works well) but getting rid of the ZIP drive would be a move in the right direction and would reduce power consumption.

I have looked around and there seems to be several ways of potentially doing this. One uses USBASPI.SYS and DUSE.EXE but all the examples I can find on the net all veer off towards CDROM drives and I'm having trouble de-cyphering what's going on in the config.sys and autoexec.bat file examples.

Anybody got any experience of this sort of stuff?

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-07-07 at 06:37:15ID24549428
Tags

DOS USB

Topics

MS DOS

,

Drivers

Participating Experts
2
Points
500
Comments
33

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. where is my config.sys and autoexec.bat?
    it seems that my config.sys and autoexec.bat are empty now, since i got a new hard drive. I am unable to do ems stuff, or even memmaker or even help in dos now. What can I do to correct this. I tried to reinstall windows to no avail.
  2. Win98 without autoexec.bat & config.sys
    I've just noticed that my Autoexec.bat & Config.sys have disappeared from my system, but WIN98 still boots and all programs seem to function normally. I can even use DOS programs from WIN98. How can this be???? I noticed that the 2 files were gone when there was a bad han...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: JT92677Posted on 2009-07-07 at 07:43:08ID: 24794654

The motherboard has USB 2.0 support, so you might find that the BIOS has "legacy USB support" and the ability to allow you to boot from a USB drive.

Maybe this will allow you to make some progress.

 

by: moprPosted on 2009-07-07 at 07:48:58ID: 24794708

I don't want to boot from the USB drive - I'll have 512M of disc on module for that. The system gathers data over a period of time (It's a remote logging system - solar powered) and on periodic visits I want to pop a data stick in the usb port (reboot probably) and copy the data off the system and remove the data stick.

 

by: JT92677Posted on 2009-07-07 at 08:21:48ID: 24795055


The warning/caveat seems to be these do NOT support hotplug, so you have to boot with the USB device attached, or so they say.

In config sys
device=USBASPI.SYS /w /v   (put in the right path to USBASPI.SYS)

/w

Wait, displays prompt message to allow swapping/attaching of target USB device

/v Verbose, shows USB details - excellent troubleshooting tool

In verbose mode. USBASPI displays details on controller type and USB devices it detects. It displays the vendor & product ID codes, the controller address range (memory map or I/O port map) of controllers, and the connection speed code for each device.

The link to download the Panasonic version 2.20 driver is
http://hddguru.com/download/software/USBASPI-MS-DOS-Driver/usbaspi-v2.20.zip

More information is here:
http://www.computing.net/answers/dos/usb-mass-storage-driver-for-dos/15416.html

Maybe this will help.

Jeff

 

by: jjjtuohyPosted on 2009-07-08 at 03:10:21ID: 24802127

A USB stick booted to DOS, can be removed and plugged back in without any issues because it is not polled unless the user runs a command.

To work, you will need to stop the system from trying to access the stick when it is unplugged OR add error handling.

 

by: moprPosted on 2009-07-08 at 03:44:49ID: 24802302

Well something is working... I get the screen shot as shown but it doesn't give me a drive letter as I was expecting. The light on the datastick flashes so DOS is seeing the device. How do I get a drive letter for the device?

Thanks

Mark

 

by: moprPosted on 2009-07-08 at 03:46:52ID: 24802310

The 'bad command or file name' at the end is just a rem'd out batch file that boots the actual logging application.

 

by: jjjtuohyPosted on 2009-07-08 at 04:24:05ID: 24802514

check if it is emulating the a: drive

 

by: moprPosted on 2009-07-08 at 04:43:57ID: 24802630

No it isn't - it just hits the floppy drive if you type a:

 

by: jjjtuohyPosted on 2009-07-08 at 05:23:47ID: 24802914

Let me think about this.
You want the OS on the pc's ram not the stick.
When we boot the key to dos we map a drive to the key.
I wonder if we can do this when booted to the pc.

I use a program called Himalaya to enumerate attached USB sticks and map them to a drive letter.
I cannot upload the utility i use because it is a *.exe but I wonder if you can find one in the wild.

You could try booting the system with the USB key attached so that it assigns a drive letter (hopefully) or try this in config.sys
device=Boot\emm386.exe noems
device=Boot\USB\USBASPI.SYS
device=Boot\USB\Di1000dd.SYS

 

by: moprPosted on 2009-07-08 at 05:32:25ID: 24802970

When I boot the system I have the stick attached - and it comes up as per the screen shot further up the page. No drive letter assigned.

What is Di1000dd.sys?

 

by: jjjtuohyPosted on 2009-07-08 at 05:39:19ID: 24803015

 

by: jjjtuohyPosted on 2009-07-08 at 05:58:34ID: 24803174

ASPI DISK DRIVER

 

by: moprPosted on 2009-07-08 at 06:07:37ID: 24803268

I get 'bad or missing file' for the three lines

device=Boot\emm386.exe noems
device=Boot\USB\USBASPI.SYS
device=Boot\USB\Di1000dd.SYS

I put Di1000dd.SYS in the root

 

by: jjjtuohyPosted on 2009-07-08 at 06:10:39ID: 24803300

I could give you the Dell utility Himalaya but I cannot upload exe's

 

by: moprPosted on 2009-07-08 at 06:19:30ID: 24803397

Can you not re-name it? Maybe that's not allowed either. Alternatively I could post my email address - but is that allowed? I don't want to break any rules. I have had a quick search on the web and didn't come up with anything.

Why do you think I am getting the 'bad or missing file'? What exactly is device=Boot\....... trying to do?

 

by: jjjtuohyPosted on 2009-07-08 at 06:19:44ID: 24803401

Sorry, I was in a rush there:

USBASPI maps mass storage devices to ASPI devices
Di1000dd maps the USB hard drive to a drive letter in DOS

Add the following to the CONFIG.SYS file on the PC.
Try it first with only the last three lines

FILES=30
BUFFERS=30
STACKS=9,256
DEVICE=USBASPI.SYS /v /noprt /L=6
DEVICE=DI1000DD.SYS /h0
LASTDRIVE=Z

 

by: moprPosted on 2009-07-08 at 06:45:54ID: 24803666

Now we seem to be getting somewhere...

Now what I get is

read error in partition read
read error in boot sector read

I think that is because the drive is an 8G one and formatted in FAT32.

I'll dig about tonight and see if I can find a small stick and format it in FAT and see if that changes anything

 

by: jjjtuohyPosted on 2009-07-08 at 06:46:54ID: 24803686

512MB or less

 

by: jjjtuohyPosted on 2009-07-08 at 06:51:08ID: 24803732

eg this should allow you to access a USB cd drive mapped to d:

config.sys
  DOS=HIGH,UMB
  lastdrive=Z
  device=HIMEM.SYS
  devicehigh=USBASPI.SYS /v /w /e
  devicehigh=DI1000DD.SYS
  devicehigh=USBCD.SYS /d:USBCD001

autoexec.bat
LH MSCDEX /d:USBCD001

 

by: jjjtuohyPosted on 2009-07-08 at 06:52:50ID: 24803748

 

by: moprPosted on 2009-07-09 at 03:02:32ID: 24812011

Right... got a 256M data stick and formatted it in FAT. DOS sees it OK and even assigns it a drive letter (D:) so all looks good. However if I try and access the drive then the PC crashes and re-boots.

 

by: jjjtuohyPosted on 2009-07-09 at 03:45:22ID: 24812219

Try formatting the stick as a bootable drive in FAT16.
Do you have a partition utility like gdisk to examine the partitions?

 

by: jjjtuohyPosted on 2009-07-09 at 04:20:44ID: 24812424

For the stick, look up the HP utility SP27213.exe

 

by: moprPosted on 2009-07-13 at 07:01:50ID: 24839764

The utility works fine  however I still can't access the drive - does exactly the same as when formatted under XP

 

by: JT92677Posted on 2009-07-13 at 07:17:05ID: 24839913

In the BAT file with MSCDEX, add the switch /L:  to give the device a "Logical drive letter"  -- for example

LH MSCDEX /d:USBCD001  /L:F

The default is the "Next available block device letter" but you can change that with the /L:x   switch  where x is the drive letter.

As another pointed out, DOS is most likely going to work best (or only) with FAT16 formatted devices.

After the device is mounted to a drive letter, can you use the DOS FDISK to see the partition(s) on the stick? If so, you might be able to delete the non-dos partition, create a partition, and format it with the DOS FORMAT utility.


 

by: moprPosted on 2009-07-14 at 07:34:10ID: 24849961

I dont have MSCDEX in the bat file. It sounds like a CD driver - and I don't have a CD drive

 

by: moprPosted on 2009-07-14 at 08:22:36ID: 24850547

DOS FDISK just puts up a banner saying 'Waiting for system shutdown' and hangs there forever. So does Format d:

I've included the Autoexec.bat and config.sys in case there are things in there that there shouldn't be.

 

by: JT92677Posted on 2009-07-14 at 10:28:56ID: 24851968

Mopor wrote " I dont have MSCDEX in the bat file. It sounds like a CD driver - and I don't have a CD drive"

jjjt... suggested:

config.sys
  DOS=HIGH,UMB
  lastdrive=Z
  device=HIMEM.SYS
  devicehigh=USBASPI.SYS /v /w /e
  devicehigh=DI1000DD.SYS
  devicehigh=USBCD.SYS /d:USBCD001

autoexec.bat
LH MSCDEX /d:USBCD001

Notice the reference to MSCDEX here. It looks like a fakeout to treat the USB drive referenced in USBCD.SYS as another kind of block device that can be handled by MSCDEX.

My comment was to add a logical device letter to the MSCDEX command.

MSCDEX is referenced in other articles discussing the interfacing of a USB device in DOS, but you're right, it USUALLY refers to a CD, but a CD is just a block device, the real work is done by USBCD.SYS.

Anyway, just trying to help.

Jeff

 

by: moprPosted on 2009-07-21 at 08:12:35ID: 24905446

Got tied up with other stuff... hopefully will be back on to this tomorrow.... Thanks

 

by: moprPosted on 2009-07-28 at 02:58:25ID: 24959127

Sorry for the delay - work is getting in the way of work

That just gives me a 'bad or missing HIMEM.SYS' and an 'error in config.sys line 3'

 

by: JT92677Posted on 2009-07-28 at 18:33:43ID: 24966612

You can remove the HIMEM.SYS line  (put a REM at the beginning of the line)

Then change all the "Devicehigh=" to simply "Device="

The himem.sys and devicehigh parts are not critical, just trying to push as much code into high memory as possible, but you can test without worrying about memory issues.

Jeff

 

by: jjjtuohyPosted on 2009-07-29 at 02:10:46ID: 24968315

Sorry, I was away from this thread for so long.

I found a superb article on:
http://www.computing.net/answers/dos/usb-driver-for-dos-usbaspisys/15568.html

It covers switches, driver links, examples and roubleshooting.



Here are useful excerpts: To detect your USB Mass storage device (.e.g. a USB 2.0 external hard drive) put this line in your boot diskette CONFIG.SYS file
device=USBASPI.SYS /w /v

If you want specify the "L" drive letter for a storage
device, try:
device[high]=[{path}]di1000dd.sys /dL

If the USB devices are already plugged upon power up and you want to enable only the high-speed USB controller and external hard disk drives, try
device=USBASPI.SYS /e /v
device=DI1000DD.SYS



If you have only a single USB port and no internal floppy, use this CONFIG.SYS combination:
device=RAMFD.SYS
device=USBASPI.SYS /w /v /r


If you have a notebook with a USB optical drive, install the ASPI CD-ROM device driver after loading USBASPI.SYS in CONFIG.SYS like this:
device=USBASPI.SYS /w
device=USBCD.SYS /d:USBCD001


and in AUTOEXEC.BAT:
MSCDEX /d:USBCD001


If you want to connect a USB 2.0 optical drive and a USB 2.0 external hard disk simultaneously, put these in the CONFIG.SYS file: device=USBASPI.SYS /e /w
device=USBCD.SYS /d:USBCD001
device=DI1000DD.SYS

and in AUTOEXEC.BAT:
MSCDEX /d:USBCD001

For troubleshooting USB connections, install all your devices and boot from your diskette with this in CONFIG.SYS:
device=USBASPI.SYS /v






 

by: moprPosted on 2009-08-11 at 06:08:55ID: 31600578

Thanks for trying guys, the more I play the more errors I get and am certainly getting no closer to a working  solution. I don't think I understand enough about what's going on to make best use of your suggestions so I think for now I'm going to have to admit defeat and see if I can find a working solution somewhere and modify it.

Thanks again for trying

mopr

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...