August 11, 2003
USB flash drive + Linux 2.4 [ Software ]
Got a 256MB Lexar JumpDrive for my birthday, and needed to use it with my Debian box at work. I've never twiddled around with this hardware under Linux before, but after a bit of googling, I found that you need to do a:
# modprobe usb-uhci
or
# modprobe usb-ohci
depending on your hardware, followed by a:
# modprobe usb-storage
Your device should then be recognizable by the kernel. A 'dmesg' should show something like:
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
usb-uhci.c: $Revision: 1.275 $ time 11:48:27 Aug 2 2003
usb-uhci.c: High bandwidth mode enabled
PCI: Setting latency timer of device 00:1d.0 to 64
usb-uhci.c: USB UHCI at I/O 0x2440, IRQ 16
usb-uhci.c: Detected 2 ports
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 2 ports detected
PCI: Setting latency timer of device 00:1d.1 to 64
usb-uhci.c: USB UHCI at I/O 0x2460, IRQ 19
usb-uhci.c: Detected 2 ports
hub.c: USB new device connect on bus1/2, assigned device number 2
usb.c: new USB bus registered, assigned bus number 2
usb.c: USB device 2 (vend/prod 0x5dc/0x100) is not claimed by any active driver.hub.c: USB hub found
hub.c: 2 ports detected
usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
SCSI subsystem driver Revision: 1.00
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
scsi0 : SCSI emulation for USB Mass Storage devices
usb-uhci.c: interrupt, status 3, frame# 874
Vendor: LEXAR Model: ATA FLASH Rev: V1.0
Type: Direct-Access ANSI SCSI revision: 02
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
USB Mass Storage support registered.
And then you should be able to mount the flash drive, which shows up as a SCSI device:
# mount /dev/sda1 /media
'vfat' filesystem support is necessary to mount the drive, but that should be present in most linux kernels. If not, time to do the kernel-recompile dance or grab a module and get it up and running.
Posted by edobbs at August 11, 2003 07:44 AM
Original content copyright ©1995-2006 Eric Dobbs, except where otherwise noted.
