John,
Thanks for the reply. I was thinking of doing the same as you but I
was looking for a cleaner solution. If the customer uses numerous
devices, it could get messy cranking through the list of mounts
before one is accepted. I was surprised the kernel doesn't report
the old flash partition since it knows enough not to create a
new /dev. Hopefully someone has another solution.
Bob
--- In "jatson" <> wrote:
>
> Hi,
> I worked with different USB memory sticks and found that as each
> different one is plugged in a new entry under /dev/scsi/ is created.
> (host0, then host1, etc.) If you plug the 1st one back in, the host0
> still exists and is valid. I just tested for the existence of each
> host (I limited myself to host0->host3 only); then attempted to
mount
> starting at the highest host# found, working my way down to 0. (I
also
> only allow 1 stick at a time in my device).
> Don't know it this answers your question or gives you a clue on
> which way to go.
> John
>
>
> --- In "bskalabskala" <bskala320@> wrote:
> >
> > I am developing an application requiring access to various USB
Flash
> > devices on the TS-7250 board, one at a time. When a USB flash is
> > plugged into the TS-7250, a kernel message identifying the device
> > partition is logged.
> >
> > If the first USB device is removed and a second is inserted, the
> kernel logs the new flash partition as well. A program could easily
> determine how to properly mount the USB flash device. The problem
> develops if a previously inserted devices is re-inserted, the kernel
> message doesn't log which partition was located, only that a USB
> device was inserted.
> >
> > My question is does anyone have a method of inspecting the USB
> device via application to determine how to properly mount various
USB
> flash devices? I am currently using the onboard 2.4.26-TS11 kernel
> and the loadUSBModules.sh script to install the USB modules.
> >
>
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|