Hi Jeff,
The otuput of dmesg will tell you which device it is;
hub.c: new USB device 00:1d.0-1, assigned address 4
scsi2 : SCSI emulation for USB Mass Storage devices
Vendor: Y-E DATA Model: USB-FDU Rev: 5.01
Type: Direct-Access ANSI SCSI revision: 02
Attached scsi removable disk sdb at scsi2, channel 0, id 0, lun 0
usb-uhci.c: interrupt, status 3, frame# 1085
sdb : READ CAPACITY failed.
sdb : status = 1, message = 00, host = 0, driver = 08
Current sd00:00: sense key Not Ready
Additional sense indicates Medium not present
sdb : block size assumed to be 512 bytes, disk size 1GB.
sdb: I/O error: dev 08:10, sector 0
I/O error: dev 08:10, sector 0
unable to read partition table
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 4
So this one is sdb (I had a compact flash card reader plugged into my
laptop a few days ago). There might be a more programmatic way of doing
this in the 2.6 kernels but I'm not sure.
regards,
Stephen.
On Wed, 5 Nov 2003, Jeff Gilchrist wrote:
> I am using Linux 2.4.21 & Lilo and trying to make a 2 floppy boot system
> (ie: boot and root disk) work on a laptop with USB floppy drive.
>
> On a machine with a normal floppy drive (/dev/fd0) it works fine. The kernel
> boots, then asks for the root disk (second floppy) and that boots and
> everything is happy.
>
> On my laptop which doesn't have a floppy drive, but a USB external floppy
> instead, the first disk boots fine, but when it asks for the Root disk, the
> boot fails. This is because the BIOS emulates the USB floppy as a normall
> fd0 floppy drive long enough for Linux to boot but after the kernel takes
> over, the floppy is no longer at fd0 but is emulated as some scsi device in
> the USB system.
>
> The problem is that depending on what scsi devices and other USB devices you
> have, it could change from sda, sdb, etc... so there doesn't seem to be any
> way in advance to know which device the USB floppy will become? With
> two-disk booting, you have to tell the kernel which device to pull the root
> disk image from in advance. I want to make a boot disk that will work on
> any machine since I might not know in advance if the USB floppy will map the
> sda, sdb, etc... Even if I could guess which SCSI device it will be
> emulated on, I have heard back in 2001 that people had to hack a delay into
> the kernel so it has enough time to load the USB driver for the device. Has
> that been fixed?
>
> Anyone able to do this type of thing on a USB floppy or have any
> suggestions?
>
> Also, once you plug a USB device into a system running Linux (such as the
> USB floppy drive or maybe a USB memory stick) is there an easy way to find
> out which device it was assigned without having to try mounting all the sd?
> devices before you get the right one?
>
> Thanks in advance,
> Jeff.
>
> _________________________________________________________________
> MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
> http://join.msn.com/?page=features/virus&pgmarket=en-ca&RU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive? Does it
> help you create better code? SHARE THE LOVE, and help us help
> YOU! Click Here: http://sourceforge.net/donate/
> _______________________________________________
> [EMAIL PROTECTED]
> To unsubscribe, use the last form field at:
> https://lists.sourceforge.net/lists/listinfo/linux-usb-users
>
--
/------------------------------------+-------------------------\
|Stephen J. Gowdy | SLAC, MailStop 34, |
|http://www.slac.stanford.edu/~gowdy/ | 2575 Sand Hill Road, |
|http://calendar.yahoo.com/gowdy | Menlo Park CA 94025, USA |
|EMail: [EMAIL PROTECTED] | Tel: +1 650 926 3144 |
\------------------------------------+-------------------------/
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users