First check you have USB enabled in the BIOS (this can be trickier than it
sound as there often are not many free IRQs left for handling all the USB
We wrote a detection program to see if USB is connected to an IRQ in which
a… At startup
a… Start io-usb
b… Start Fatfsys
b… When user opens wants to copy to USB, prompt user to insert the USB
memory in any available USB slot
a… Start Fsys.umass
b… Run “mount -t dos /dev/hd1 /dos/c”
c… When backup finished (the following two command will terminate
a… Run “umount /dos/c”
b… Run “rm /dev/hd1”
d… Prompt user to remove the USB memory
You have to have the latest 4.25 Proc for USB to work. The above seems to
work quite safely.
Fatfsys is safer than Dosfsys it appears also.
“Jeffrey Adler” firstname.lastname@example.org wrote in message
I am testing out the USB support for QNX-4.
I want to be able to create a shell script that will allow someone to
backup data to the USB memory stick.
Sequence would be as follows:
- insert a memory stick
- run a shell script
- remove the memory stick.
The shell script will need to do all of the mounting, etc, create a ZIP
file on the memory stick, and nicely shut down everything.
What I am confused about is what parts to run when, how to determine which
HD gets mounted, which tasks to slay when I’m done and want to remove the
memory stick, etc., and which can keep running.
If someone has done this already, please let me know the steps (and the
pitfalls) to take and (perhaps more importantly, )which ones not to take.
Thanks for the help.