LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices



Reply
 
Search this Thread
Old 12-12-2004, 03:55 PM   #1
ZooL
Member
 
Registered: Aug 2004
Location: England
Distribution: Slackware 10.1
Posts: 41

Rep: Reputation: 15
USB Stick Problem


Hi,
I am having problems with a PQI Traveling Disk on my system running Slackware 10 (2.4.26 kernel. Dmesg shows the following after the USB Stick is inserted.
Quote:
hub.c: new USB device 00:02.2-6, assigned address 2
usb.c: USB device not responding, giving up (error=-71)
hub.c: new USB device 00:02.2-6, assigned address 3
usb.c: USB device 3 (vend/prod 0xea0/0x2168) is not claimed by any active driver.
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
usb_control/bulk_msg: timeout
scsi1 : SCSI emulation for USB Mass Storage devices
usb_control/bulk_msg: timeout
usb_control/bulk_msg: timeout
usb_control/bulk_msg: timeout
hub.c: USB device not accepting new address (error=-71)
usb-storage: host_reset() requested but not implemented
scsi: device set offline - command error recover failed: host 1 channel 0 id 0 lun 0
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 3
USB Mass Storage support registered.
If it helps...
Quote:
root@delta:~# lsmod
Module Size Used by Tainted: P
usb-storage 66176 0 (unused)
snd-pcm-oss 37736 0
snd-mixer-oss 12504 2 [snd-pcm-oss]
usb-ohci 19240 0 (unused)
ehci-hcd 17580 0 (unused)
usbcore 59308 1 [usb-storage usb-ohci ehci-hcd]
forcedeth 9164 1
snd-intel8x0 18924 3
snd-ac97-codec 49500 0 [snd-intel8x0]
gameport 1420 0 [snd-intel8x0]
snd-pcm 56072 0 [snd-pcm-oss snd-intel8x0]
snd-timer 13604 0 [snd-pcm]
snd-page-alloc 6328 0 [snd-intel8x0 snd-pcm]
snd-mpu401-uart 3200 0 [snd-intel8x0]
snd-rawmidi 12740 0 [snd-mpu401-uart]
snd-seq-device 3888 0 [snd-rawmidi]
snd 30852 1 [snd-pcm-oss snd-mixer-oss snd-intel8x0 snd-ac97-codec snd-pcm snd-timer snd-mpu401-uart snd-rawmidi snd-seq-device]
soundcore 3396 4 [snd]
pcmcia_core 39972 0
ntfs 51424 1 (autoclean)
fglrx 199560 0
ide-scsi 9328 0
agpgart 43940 0 (unused)
apm 9580 2
I have managed to mount the stick before, not sure how I did it, but it took a lot of plugging and unplugging. I am aware that other people have had similar problems, but I haven't been able to find a solution.
 
Old 12-12-2004, 04:18 PM   #2
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
Hi.

I had similar problems a while ago. I seem to remember enabling ACPI in the kernel solved the problem, but that may not be so.

Have a look here: http://www.linux-usb.org/FAQ.html#ts6

Try 'modprobe sd_mod scsi_mod' before you plug in too.

Dave

Last edited by ilikejam; 12-12-2004 at 04:21 PM.
 
Old 12-12-2004, 04:19 PM   #3
ralvez
Member
 
Registered: Oct 2003
Location: Canada
Distribution: ArchLinux && Slackware 10.1
Posts: 298

Rep: Reputation: 30
Hi there.
Try this. Type: su -c 'tail -f /var/log/messages' on a console.
Then plug in the usb device. The screen should tell you a bunch of things but you are looking for something like this:
Dec 12 16:06:54 dragonfly kernel: usb.c: registered new driver usb-storage
Dec 12 16:06:54 dragonfly kernel: scsi1 : SCSI emulation for USB Mass Storage devices
Dec 12 16:06:54 dragonfly kernel: sda: sda1 sda2 sda4
Dec 12 16:06:54 dragonfly kernel: USB Mass Storage support registered.
See the "sda" ? well that's what you want.

Create a direcotry like /mnt/usbhd (as root) then
edit your /etc/fstab and add this line:
/dev/sda /mnt/usbhd vfat noauto,user,rw 0 0 (this assumes you got sda)
With one usb I had in the past I had to use "sda1" for it to work.

I hope this helps.

Rick

Last edited by ralvez; 12-12-2004 at 04:20 PM.
 
Old 12-12-2004, 04:32 PM   #4
SlackerLX
Senior Member
 
Registered: Dec 2004
Location: Herzliyya, Israel
Distribution: SuSE 10.1; Testing Distros
Posts: 1,834

Rep: Reputation: 47
Have you tried mounting it. any errors. what exactly do you do to enable it?
Give details.
 
Old 01-25-2005, 05:42 AM   #5
tato
LQ Newbie
 
Registered: Jan 2005
Posts: 2

Rep: Reputation: 0
I had, very same problem and the solution is kind of strange
Try to put the stick into keyboard port or any other (hub), after doing this usb disk works fine.
I have 512 PQI Travell

Before:
Jan 25 11:04:19 sandbender kernel: usb 4-5: new high speed USB device using address 4
Jan 25 11:04:19 sandbender kernel: Initializing USB Mass Storage driver...
Jan 25 11:04:19 sandbender kernel: scsi1 : SCSI emulation for USB Mass Storage devices
Jan 25 11:04:19 sandbender kernel: Vendor: Generic Model: USB Flash Disk Rev: 2.00
Jan 25 11:04:19 sandbender kernel: Type: Direct-Access ANSI SCSI revision: 02
Jan 25 11:04:19 sandbender kernel: sdb: Unit Not Ready, sense:
Jan 25 11:04:19 sandbender kernel: Current : sense key Unit Attention
Jan 25 11:04:19 sandbender kernel: Additional sense: Not ready to ready change, medium may have changed
Jan 25 11:04:19 sandbender kernel: sdb : READ CAPACITY failed.
Jan 25 11:04:19 sandbender kernel: sdb : status=1, message=00, host=0, driver=08
Jan 25 11:04:19 sandbender kernel: Current sd: sense key Unit Attention
Jan 25 11:04:19 sandbender kernel: Additional sense: Not ready to ready change, medium may have changed
Jan 25 11:04:19 sandbender kernel: sdb: Write Protect is off
Jan 25 11:04:19 sandbender kernel: sdb: assuming drive cache: write through
Jan 25 11:04:29 sandbender scsi.agent[5692]: Attribute /sys/devices/pci0000:00/0000:00:1d.7/usb4/4-5/4-5:1.0/host1/1:0:0:0/type does not exist (Timeout)
Jan 25 11:04:30 sandbender su(pam_unix)[5754]: session opened for user root by (uid=501)
Jan 25 11:05:59 sandbender kernel: /dev/scsi/host1/bus0/target0/lun0:<6>usb 4-5: reset high speed USB device using address 4
Jan 25 11:06:00 sandbender CROND[5871]: (root) CMD ( /usr/share/msec/promisc_check.sh)
Jan 25 11:06:04 sandbender kernel: usb 4-5: control timeout on ep0in
Jan 25 11:06:05 sandbender kernel: usb 4-5: device not accepting address 4, error -71
Jan 25 11:06:05 sandbender kernel: scsi: Device offlined - not ready after error recovery: host 1 channel 0 id 0 lun 0
Jan 25 11:06:05 sandbender kernel: SCSI error : <1 0 0 0> return code = 0x50000
Jan 25 11:06:05 sandbender kernel: end_request: I/O error, dev sdb, sector 2097144
Jan 25 11:06:05 sandbender kernel: Buffer I/O error on device sdb, logical block 262143
Jan 25 11:06:05 sandbender kernel: scsi1 (0:0): rejecting I/O to offline device
Jan 25 11:06:05 sandbender kernel: SCSI error: host 1 id 0 lun 0 return code = 4000000
Jan 25 11:06:05 sandbender kernel: ^ISense class 0, sense error 0, extended sense 0
Jan 25 11:06:05 sandbender kernel: scsi1 (0:0): rejecting I/O to offline device
Jan 25 11:06:05 sandbender kernel: Buffer I/O error on device sdb, logical block 262143
Jan 25 11:06:05 sandbender kernel: unknown partition table
Jan 25 11:06:05 sandbender kernel: Attached scsi removable disk sdb at scsi1, channel 0, id 0, lun 0
Jan 25 11:06:05 sandbender kernel: usb 4-5: USB disconnect, address 4
Jan 25 11:06:05 sandbender kernel: usbcore: registered new driver usb-storage
Jan 25 11:06:05 sandbender kernel: USB Mass Storage support registered.
Jan 25 11:06:05 sandbender kernel: usb 4-5: new high speed USB device using address 5
Jan 25 11:06:10 sandbender kernel: usb 4-5: control timeout on ep0in
Jan 25 11:06:10 sandbender kernel: usb 4-5: device not accepting address 5, error -71
Jan 25 11:06:11 sandbender kernel: usb 4-5: new high speed USB device using address 6
Jan 25 11:06:16 sandbender kernel: usb 4-5: control timeout on ep0in
Jan 25 11:06:16 sandbender kernel: usb 4-5: device not accepting address 6, error -71
Jan 25 11:06:39 sandbender ntpd[4605]: synchronized to LOCAL(0), stratum=10
Jan 25 11:06:39 sandbender ntpd[4605]: kernel time sync disabled 0041
Jan 25 11:07:45 sandbender ntpd[4605]: kernel time sync enabled 0001


After:

Jan 25 11:20:14 sandbender kernel: usb 2-1.3: new full speed USB device using address 5
Jan 25 11:20:14 sandbender kernel: usb 2-1.3: not running at top speed; connect to a high speed hub
Jan 25 11:20:14 sandbender kernel: scsi2 : SCSI emulation for USB Mass Storage devices
Jan 25 11:20:14 sandbender kernel: Vendor: Generic Model: USB Flash Disk Rev: 2.00
Jan 25 11:20:14 sandbender kernel: Type: Direct-Access ANSI SCSI revision: 02
Jan 25 11:20:14 sandbender kernel: sdb: Unit Not Ready, sense:
Jan 25 11:20:14 sandbender kernel: Current : sense key Unit Attention
Jan 25 11:20:14 sandbender kernel: Additional sense: Not ready to ready change, medium may have changed
Jan 25 11:20:14 sandbender kernel: SCSI device sdb: 511488 512-byte hdwr sectors (262 MB)
Jan 25 11:20:14 sandbender kernel: sdb: Write Protect is off
Jan 25 11:20:14 sandbender kernel: sdb: assuming drive cache: write through
Jan 25 11:20:14 sandbender kernel: /dev/scsi/host2/bus0/target0/lun0: unknown partition table
Jan 25 11:20:14 sandbender kernel: Attached scsi removable disk sdb at scsi2, channel 0, id 0, lun 0
Jan 25 11:20:14 sandbender kernel: usb 2-1.3: 100mA over 100mA budget!
Jan 25 11:20:15 sandbender scsi.agent[6662]: disk at /devices/pci0000:00/0000:00:1d.1/usb2/2-1/2-1.3/2-1.3:1.0/host2/2:0:0:0


Notice the difference : 1st case scsi1 is used and the 2nd one we go with scsi2

I know this is not a very fine supersolution - just a workaround, but works fine and while using flash disk only for several minutes per day - there is no point looking for a cause. you know the cause and the effect ;-)


Regards
tato
 
Old 01-25-2005, 05:53 AM   #6
tato
LQ Newbie
 
Registered: Jan 2005
Posts: 2

Rep: Reputation: 0
Quote:
Originally posted by tato
I had, very same problem and the solution is kind of strange


after trying sesond port in my keyboard (usb):

Jan 25 11:44:00 sandbender CROND[7885]: (root) CMD ( /usr/share/msec/promisc_check.sh)
Jan 25 11:44:05 sandbender kernel: usb 2-1.3: USB disconnect, address 5
Jan 25 11:44:29 sandbender kernel: usb 2-1.2: new full speed USB device using address 6
Jan 25 11:44:29 sandbender kernel: usb 2-1.2: not running at top speed; connect to a high speed hub
Jan 25 11:44:29 sandbender kernel: scsi3 : SCSI emulation for USB Mass Storage devices
Jan 25 11:44:29 sandbender kernel: Vendor: Generic Model: USB Flash Disk Rev: 2.00
Jan 25 11:44:29 sandbender kernel: Type: Direct-Access ANSI SCSI revision: 02
Jan 25 11:44:29 sandbender kernel: SCSI device sdb: 511488 512-byte hdwr sectors (262 MB)
Jan 25 11:44:29 sandbender kernel: sdb: Write Protect is off
Jan 25 11:44:29 sandbender kernel: sdb: assuming drive cache: write through
Jan 25 11:44:29 sandbender kernel: /dev/scsi/host3/bus0/target0/lun0: unknown partition table
Jan 25 11:44:29 sandbender kernel: Attached scsi removable disk sdb at scsi3, channel 0, id 0, lun 0
Jan 25 11:44:29 sandbender kernel: usb 2-1.2: 100mA over 100mA budget!
Jan 25 11:44:30 sandbender scsi.agent[7986]: disk at /devices/pci0000:00/0000:00:1d.1/usb2/2-1/2-1.2/2-1.2:1.0/host3/3:0:0:0

then back to 1st port of the keyboard:

Jan 25 11:46:04 sandbender kernel: usb 2-1.3: new full speed USB device using address 7
Jan 25 11:46:04 sandbender kernel: usb 2-1.3: not running at top speed; connect to a high speed hub
Jan 25 11:46:04 sandbender kernel: scsi4 : SCSI emulation for USB Mass Storage devices
Jan 25 11:46:04 sandbender kernel: Vendor: Generic Model: USB Flash Disk Rev: 2.00
Jan 25 11:46:04 sandbender kernel: Type: Direct-Access ANSI SCSI revision: 02
Jan 25 11:46:04 sandbender kernel: sdb: Unit Not Ready, sense:
Jan 25 11:46:04 sandbender kernel: Current : sense key Unit Attention
Jan 25 11:46:04 sandbender kernel: Additional sense: Not ready to ready change, medium may have changed
Jan 25 11:46:04 sandbender kernel: SCSI device sdb: 511488 512-byte hdwr sectors (262 MB)
Jan 25 11:46:04 sandbender kernel: sdb: Write Protect is off
Jan 25 11:46:04 sandbender kernel: sdb: assuming drive cache: write through
Jan 25 11:46:04 sandbender kernel: /dev/scsi/host4/bus0/target0/lun0: unknown partition table
Jan 25 11:46:04 sandbender kernel: Attached scsi removable disk sdb at scsi4, channel 0, id 0, lun 0
Jan 25 11:46:04 sandbender kernel: usb 2-1.3: 100mA over 100mA budget!
Jan 25 11:46:05 sandbender scsi.agent[8208]: disk at /devices/pci0000:00/0000:00:1d.1/usb2/2-1/2-1.3/2-1.3:1.0/host4/4:0:0:0

each removal/reconnect sequence results as seen above (scsi host number is incremented).
but reconnecting directly to the machine - again same thing - not working:

Jan 25 11:49:09 sandbender kernel: scsi8 : SCSI emulation for USB Mass Storage devices
Jan 25 11:49:09 sandbender kernel: Vendor: Generic Model: USB Flash Disk Rev: 2.00
Jan 25 11:49:09 sandbender kernel: Type: Direct-Access ANSI SCSI revision: 02
Jan 25 11:49:10 sandbender kernel: sdb: Unit Not Ready, sense:
Jan 25 11:49:10 sandbender kernel: Current : sense key Unit Attention
Jan 25 11:49:10 sandbender kernel: Additional sense: Not ready to ready change, medium may have changed
Jan 25 11:49:10 sandbender kernel: sdb : READ CAPACITY failed.
Jan 25 11:49:10 sandbender kernel: sdb : status=1, message=00, host=0, driver=08
Jan 25 11:49:10 sandbender kernel: Current sd: sense key Unit Attention
Jan 25 11:49:10 sandbender kernel: Additional sense: Not ready to ready change, medium may have changed
Jan 25 11:49:10 sandbender kernel: sdb: Write Protect is off
Jan 25 11:49:10 sandbender kernel: sdb: assuming drive cache: write through
Jan 25 11:49:20 sandbender scsi.agent[8908]: Attribute /sys/devices/pci0000:00/0000:00:1d.7/usb4/4-1/4-1:1.0/host8/8:0:0:0/type does not exist (Timeout)


but scsi is incremented.
hope this helps

Regards
tato
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
booting from USB stick problem bogdanpa Slackware 6 08-10-2005 03:24 PM
USB stick - memory problem (mysterious out of space) linuxfond Linux - Newbie 3 07-17-2005 03:47 PM
mount/umount usb stick - PQI Intelligent Stick 2.0 sandbag Linux - Software 5 05-06-2005 12:12 PM
USB card reader and memory stick PROBLEM Zhenya Suse/Novell 18 02-24-2005 10:19 PM
USB Memory Stick Problem... mac57 Mandriva 3 01-06-2005 10:48 AM


All times are GMT -5. The time now is 07:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration