Author Topic: USB key read-only in DOS.. how to make it writable?  (Read 17132 times)

redfox

  • Newbie
  • *
  • Posts: 4
USB key read-only in DOS.. how to make it writable?
« on: December 10, 2009, 11:49:40 AM »
Hi,

I created a bootable USB key (Kingston Data Traveller II) with the HP tool and MS DOS 6.22 files.
That's ok, the "drive" is bootable using PLoP Boot Manager.

But, when I try to write anything to the USB key in the DOS environment, I end up with the drive read only error. This is bad, because i wanted to store a partition backup file to the USB key using Norton Ghost.. impossible.
When I tried to disable the original driver and load another one, the USB stick became unrecognized after loading plpdisd.exe and nothing could be done after that.

Well, do you have a USB driver, which is capable to perform both read and WRITE operations on the USB stick?

Thank you.
« Last Edit: December 10, 2009, 11:51:34 AM by redfox »

Elmar

  • Administrator
  • Hero Member
  • *****
  • Posts: 2413
  • a command shell is enough to do amazing things
Re: USB key read-only in DOS.. how to make it writable?
« Reply #1 on: December 10, 2009, 14:01:03 PM »
hi,
if you create a ram disk and move all dos files there and then run plpdisd.exe, then you should be able to load another dos usb driver.

regards
elmar

redfox

  • Newbie
  • *
  • Posts: 4
Re: USB key read-only in DOS.. how to make it writable?
« Reply #2 on: December 10, 2009, 14:15:12 PM »
Well, sounds quite complicated... I think that the file config.sys (which assignes the USB driver to a device in this case) is loaded in the first line, before the dos files can be copied to a ram drive.

Does your USB driver act as a "CD rom driver", in order to be capable to run at systems not supporting USB boot in Bios?

Elmar

  • Administrator
  • Hero Member
  • *****
  • Posts: 2413
  • a command shell is enough to do amazing things
Re: USB key read-only in DOS.. how to make it writable?
« Reply #3 on: December 10, 2009, 14:19:52 PM »
there is a program (at the moment i can't remember the name) that loads device drivers (like the config.sys) from the command line.

no, my driver does not support usb cdroms

redfox

  • Newbie
  • *
  • Posts: 4
Re: USB key read-only in DOS.. how to make it writable?
« Reply #4 on: December 10, 2009, 14:29:24 PM »
I'll try to get over it... thanks
« Last Edit: December 10, 2009, 15:19:07 PM by redfox »

aismike

  • Newbie
  • *
  • Posts: 15
Re: USB key read-only in DOS.. how to make it writable?
« Reply #5 on: December 11, 2009, 12:10:19 PM »
I'll try to get over it... thanks
Sorry to bug you ... I'm trying to do just the same (i.e., booting from USB via PLoP and then using the same USB key to write on it), but failed miserably in all attempts. What happens to me is that:
1) quite often, while copying several  files from the USB key (still managed thru PLoP) to a RAm disk, the copy stops in the middle of it and I have to reset the PC;
2) even when I successfully end the Autoexec.BAT processing, disabling the PLop driver and then trying another USB driver makes the USB key unreachable.

(using a 1GB USB key with FreeDOS on an old Siemens PC with a 1GHz Intel CPU and a 1.0 USB interface)

Point 1) is what troubles me most ...

Cheers,

Michele Montagni

redfox

  • Newbie
  • *
  • Posts: 4
Re: USB key read-only in DOS.. how to make it writable?
« Reply #6 on: December 11, 2009, 16:29:55 PM »
aismike, I have been working on this problem for two days... got all the available driver launchers (ctload, devlod, devload), tried also my USB driver UHCI.exe..

Copying to a ramdrive was OK.
Disabling the original driver too.

But then, problems occured. Either the driver said "Unknown DOS version" (although I tried different versions) [maybe it could not find the original io.sys, command.com and msdos.sys, because they were stored on the USB stick, before the plpdisd.exe disabled it - these system files are hidden, so can not be copied to a ramdrive under ODS), or

The other problem was, that the drivers could not detect my USB stick at all (as you wrote) [USBASPI.SYS and the others]. When I tried to execute uhci.exe (usb driver too), the system freezed. Maybe there is something the original loader from plop loads into memory, which prevents to do such changes (like the extended memory driver, bc. the himem.sys can't be loaded too - error message another ext. memory driver already present, so even mscdex won't load into extended memory).

This is very strange, but I would really like to get it working. Norton Ghost 2003 detects the USB stick, even if I don't want to write the image on it, and shows the warning, that he wants to mark new drives (the USB stick). Even if I change the location of his errorlog.txt to a HDD, which is writable, it always ends with a general exception, because he want to write the "mark" information to the boot sector of the USB stick, which is read only.
If I use a new HDD for backup (to), he does not mark it either, which can lead the new image to be not bootable (the "mark" feature is not only a license protection tool, but it has a real role in the imaging task).

I wonder, why the original PLoP USB driver is not able to make the USB stick writable. It's a question to the authors.

P.S. Try to increase the RAM drive size, and load it into extended memory, if you did not (/E switch).
« Last Edit: December 11, 2009, 16:35:34 PM by redfox »

Elmar

  • Administrator
  • Hero Member
  • *****
  • Posts: 2413
  • a command shell is enough to do amazing things
Re: USB key read-only in DOS.. how to make it writable?
« Reply #7 on: December 11, 2009, 17:44:38 PM »
I wonder, why the original PLoP USB driver is not able to make the USB stick writable. It's a question to the authors.

there is only one author.

the driver is read only because of some size limitations i implemented only the most required things. i have to put 4 drivers (ide cdrom, usb uhci ohci and ehci) and all the other stuff into the boot manager and this all have to fit into 60 sectors (yeah, great) for the harddisk installation. it would be possible to make different versions that are specialized for ex. usb ehci with many features but this would confuse too much. i like to have all in one version. however write access is primary dos related.  linux and windows don't have this problem.

maybe i make an extra driver to load it from dos to provide write access, but i am thinking to sell it for a few euros/dollars. i don't know, maybe it became freeware too.

elmar

aismike

  • Newbie
  • *
  • Posts: 15
Re: USB key read-only in DOS.. how to make it writable?
« Reply #8 on: December 12, 2009, 10:46:20 AM »
maybe i make an extra driver to load it from dos to provide write access, but i am thinking to sell it for a few euros/dollars. i don't know, maybe it became freeware too.

Emar, I'm ready to pay !!! ;-)))

Seriously, your idea of PLoP is so good that it really merits success, so having the ability too boot a USB stick via PLoP
on a USB1.0 machine and having it WRITABLE would be the
perfect solution for a lot of people who still hang to (or don't
have the money to upgrade ...) this kind of machines.

A suggestion: the current best effort to support USB in a DOS
environment seems to be Bret Johnson's (http://www.bretjohnson.us/) : why not getting in touch with him and join forces for the complete solution ?

Best wishes and thanks for a great piece of software.

Michele Montagni
 

Gelip

  • Newbie
  • *
  • Posts: 27
Re: USB key read-only in DOS.. how to make it writable?
« Reply #9 on: December 01, 2013, 17:55:01 PM »
Yes, how make writeable USB? I make tests with USB-SD reader:

1. Format SD 16MB with HP tool (DOS files)

2. Try boot from PLOP USB

PC boot to MS-DOS OK but no access write. I test some other PC's with USB boot from BIOS.

ThinkPad X61 boot from Phoenix BIOS USB 2.0 - write access OK
Abit BF6 (coreboot) boot from coreboot v4 USB 1.1 - write access OK
Soltek SL-75DRV4 boot from AWARD BIOS USB 1.1 - write access OK
Abit BF6 (coreboot) boot from PLOP USB 1.1 - no access write!

Code: [Select]
Press F12 for boot menu.

Select boot device:

1. Floppy [drive A]
2. DVD/CD [ata1-0: OEM     CD-ROM F563E ATAPI-0 DVD/CD]
3. ata0-0: Maxtor 2F020J0 ATA-7 Hard-Disk (19881 MiBytes)
4. USB MSC Drive Generic- SD/MMC 1.00
5. gPXE (PCI 00:11.0)
« Last Edit: December 01, 2013, 18:36:23 PM by Gelip »

Gelip

  • Newbie
  • *
  • Posts: 27
Re: USB key read-only in DOS.. how to make it writable?
« Reply #10 on: December 02, 2013, 10:42:34 AM »
I tested more USB DOS drivers (Panasonic USBASPI.SYS, DUSE, bretjohnson, DOSUSB) like this:

1. Copy USB DOS drivers to pendrive and try boot PC from PLOP USB menu (PLOP is running from other media e.g. BIOS ROM, FDD):

PC boot from USB but DOS drivers hangs PC

2. Make FDD boot with USB DOS drivers and try boot from FDD:

PC boot from FDD OK and USB DOS drivers start OK & now possible write to USB :-)

Probably after PLOP boot from USB, PLOP driver USB stays in memory and if now try load other DOS USB drivers this hangs PC because have conflict with drivers PLOP in RAM.

Complete solution for working write to USB after boot from PLOP USB:
Write to USB support after boot PC over PLOP USB menu
« Last Edit: December 02, 2013, 21:13:58 PM by Gelip »

Mad7Scientist

  • Newbie
  • *
  • Posts: 1
Re: USB key read-only in DOS.. how to make it writable?
« Reply #11 on: July 25, 2017, 05:44:05 AM »
I'm glad to hear that write access can be obtained by using DOS USB drivers after starting with PLOP. I hope I can get it to work!

I'm willing to pay a few dollars for a version of PLOP that allows write access to USB. I put in the plop floppy and booted that with a non bootable USB flash drive in. Then I removed the plop floppy and put in a Windows 98 start up floppy. I selected USB and that failed. It may have been the MBR on the USB drive that printed the error. I pressed any key to continue and it continued to boot up from the Windows 98 floppy. Since PLOP installed a BIOS USB drive interface C: became the USB drive. I started setup.exe from the Windows 98 CD on E: but I found that C: is actually read only so it couldn't do anything.

I assume that Windows NT based operating systems do not require USB write access when starting from the boot loader.

It would be nice if there was a check box to install the USB BIOS interface when booting from a floppy or CD-ROM so that a flash drive will show up as C: when booting DOS from a floppy.

Thanks for making PLOP! Is there a reason for why it has to fit in 60 sectors?