I recently bought a nice, new, aerodynamic USB memory stick. It works in Windows, it works in Mac, but Linux doesn't like it. Essentially, I follow typical procedures I found in various manuals and posts, and my system locks up and I have to reset the system.
I've gotten quite good at searching for and finding solutions to my Linux problems, but this one has me completely stumped. I've checked several USB how-to's, posts here, posts elsewhere.
System: Linux 2.4.20-8 (Redhat 9)
These were done under KDE 3 (for convenience, but the same things happen without.)
Athalon 900, 256MB, MB is Asus A7V133
Memory stick: Transcend JetFlash 128MB - it works on Win/Mac. Haven't tried on other Linuxes.
What I do:
"lsmod" tells me I haven't got "usb-storage" up, so:
root root# modprobe usb-storage
/var/log/messages says:
Apr 19 18:16:42 localhost kernel: Initializing USB Mass Storage driver...
Apr 19 18:16:42 localhost kernel: usb.c: registered new driver usb-storage
Apr 19 18:16:42 localhost kernel: USB Mass Storage support registered.
Just for info:
root root# mount
/dev/hde2 on / type ext3 (rw)
none on /proc type proc (rw)
usbdevfs on /proc/bus/usb type usbdevfs (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
none on /dev/shm type tmpfs (rw)
Here I plug in the memory stick...
Apr 19 18:19:25 localhost kernel: hub.c: new USB device 00:04.2-2, assigned address 2
Apr 19 18:19:25 localhost kernel: scsi1 : SCSI emulation for USB Mass Storage devices
Apr 19 18:19:25 localhost kernel: Vendor: JetFlash Model: TS128MJF2B Rev: 2.00
Apr 19 18:19:25 localhost kernel: Type: Direct-Access ANSI SCSI revision: 02
Apr 19 18:19:28 localhost /etc/hotplug/usb.agent: Setup usb-storage for USB product ea0/2168/200
Apr 19 18:19:29 localhost devlabel: devlabel service started/restarted
Another check:
root root# cat /proc/scsi/usb-storage-0/1
Host scsi1: usb-storage
Vendor: USB
Product: Flash Disk
Serial Number: BA0304403E93683E
Protocol: Transparent SCSI
Transport: Bulk
GUID: 0ea02168ba0304403e93683e
Attached: Yes
And now...
root root# mount -t vfat /dev/sda1 /flash
...the interesting part (by interesting, I mean hair-tearingly frustrating). The memory stick light comes on. After about 75 seconds, system locks up, and caps/scroll lock starts to flash. I have to reset the system (and remove the memory stick). After I boot up, I get this from the log:
This would be where I mounted it...
Apr 19 18:23:29 localhost kernel: Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
Apr 19 18:23:29 localhost kernel: SCSI device sda: 256000 512-byte hdwr sectors (131 MB)
Apr 19 18:23:29 localhost kernel: sda: Write Protect is off
Apr 19 18:23:29 localhost kernel: sda: sda1 sda2 sda3 sda4
Presumably this corresponds to my system locking up etc.
Apr 19 18:24:44 localhost kernel: usb_control/bulk_msg: timeout
Apr 19 18:24:44 localhost kernel: usb.c: USB disconnect on device 00:04.2-2 address 2
Now, occasionally things happen slightly differently. I might get some weird messages after mount. Or, if I'm not under KDE, there are more prolific error messages spat out (which I don't know how to catch).
I don't even want to think about setting up fstab yet.
(Incidentally, how do I set things up so I don't have to "modprobe usb-storage" every time?)
Added: after reading a few threads, I ran "dmesg" - I'm hesitant to post the 164 lines; should I post the whole lot, or is there a specific part that is relevant? A quick grep for anything usb gives:
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
usb-uhci.c: $Revision: 1.275 $ time 17:26:20 Mar 13 2003
usb-uhci.c: High bandwidth mode enabled
usb-uhci.c: USB UHCI at I/O 0xd400, IRQ 9
usb-uhci.c: Detected 2 ports
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
usb-uhci.c: USB UHCI at I/O 0xd000, IRQ 9
usb-uhci.c: Detected 2 ports
usb.c: new USB bus registered, assigned bus number 2
hub.c: USB hub found
usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
usb.c: registered new driver hiddev
usb.c: registered new driver hid
hid-core.c: USB HID support drivers
I would appreciate any help
