On Tue, 2002-07-30 at 21:27, Andy Eager wrote:
> My question is: Is there any way of telling which /dev file is assigned
> to the new device? I had a poke around /proc for some kind of clue but
> couldn't see anything.
I don't think there's an easy way to tell, at any given point in time,
which USB device is which. About the best you can do is say that
devices are enumerated in the order they're plugged in, and know in what
order they're plugged in. Of course, for devices that were there at
boot, it isn't quite that simple..
> I had a similar problem at Granville TAFE where, after presenting a
> lesson on USB, a student pulled out a USB memory stick and the same
> thing happened: It was recognised by usbcore OK, but I couldn't mount
> it. How would I go about finding where sg.o puts it in /dev? (I assume
> that usb-storage and sg are the only drivers needed)
The best way I know of to deal with devices like this is to watch the
system logs when you plug the device in. For example, my laptop has a
built-in memorystick reader, which is recognised as a USB device. On
bootup, I see the following in /var/log/messages:
...
Jul 30 23:16:28 fizgig kernel: usb.c: registered new driver usb-storage
Jul 30 23:16:28 fizgig kernel: scsi0 : SCSI emulation for USB Mass Storage devices
Jul 30 23:16:28 fizgig kernel: Vendor: Sony Model: MSC-U02 Rev: 1.00
...
And the reader is under /dev/sda...
HTH,
--
Pete
[EMAIL PROTECTED]
The storm walked around the hills on legs of lightning,
shouting and grumbling.
-- (Terry Pratchett, Equal Rites)
--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug