[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: usb flash drive problem - module problem?



Not knowing much, I suspect this is your problem:

May 21 16:21:43 cello kernel: usb_control/bulk_msg: timeout

I don't have my USB key handy, but the digital camera I borrowed works
exactly the same way. Before mounting, I get the following in
/var/log/syslog:

May 22 16:35:53 joehill kernel: hub.c: new USB device 00:10.0-2, assigned
address 8
May 22 16:35:53 joehill kernel: WARNING: USB Mass Storage data integrity
not assured
May 22 16:35:53 joehill kernel: USB Mass Storage device found at 8



joehill:~# cat /proc/scsi/scsi
Attached devices:
...
Host: scsi1 Channel: 00 Id: 00 Lun: 00
  Vendor: HP       Model: PhotoSmart 812   Rev: A001
  Type:   Direct-Access                    ANSI SCSI revision: 02


joehill:~# cat /proc/bus/usb/devices
...
P:  Vendor=03f0 ProdID=4002 Rev= 0.01
S:  Manufacturer=HEWLETT-PACKARD
S:  Product=HP  PhotoSmart 812
S:  SerialNumber=YCN2C6S217T0
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 10mA
I:  If#= 0 Alt= 0 #EPs= 3 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=81(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=83(I) Atr=03(Int.) MxPS=   2 Ivl=255ms




So, a couple other questions:
1.) What kernel version are you using?
2.) What's the output of cat /proc/bus/usb/devices ?

Hope this helps.

----------------------------------------------------------------------
Andrew J Perrin - http://www.unc.edu/~aperrin
Assistant Professor of Sociology, U of North Carolina, Chapel Hill
clists@perrin.socsci.unc.edu * andrew_perrin (at) unc.edu


On Thu, 22 May 2003 Jerry_Bash@spectral-sys.com wrote:

> Andrew,
>
> When I cat /proc/scsi/scsi, I get the following.  This is with the drive
> plugged in, but not mounted.
>
>
> jlb@cello:~$ cat /proc/scsi/scsi
> Attached devices: none
>
> The only messages pertaining to the USB devices in syslog or messages are:
>
> cello:/home/jlb# more /var/log/syslog | grep -i usb
> May 22 08:07:42 cello kernel: Initializing USB Mass Storage driver...
> May 22 08:07:42 cello kernel: usb.c: registered new driver usb-storage
> May 22 08:07:42 cello kernel: USB Mass Storage support registered.
>
> cello:/home/jlb# tail -500 /var/log/messages | grep -i usb
> May 21 16:21:41 cello kernel: hub.c: new USB device 00:04.3-2.1, assigned
> address 3
> May 21 16:21:41 cello kernel: hub.c: USB hub found
> May 21 16:21:42 cello kernel: usb-uhci.c: interrupt, status 3, frame# 1772
> May 21 16:21:43 cello kernel: usb_control/bulk_msg: timeout
> May 22 08:07:42 cello kernel: Initializing USB Mass Storage driver...
> May 22 08:07:42 cello kernel: usb.c: registered new driver usb-storage
> May 22 08:07:42 cello kernel: USB Mass Storage support registered.
>
>
> Thanks,
> Jerry
>
>
> -------------------------------------------------------------------
>                      Jerry Bash
>               Spectral Systems, Inc.
>              Phone: (937) 281-1320
> -------------------------------------------------------------------
>
>
>
>
> Andrew Perrin <clists@perrin.socsci.unc.edu>
> 05/22/2003 11:08 AM
>
>
>         To:     Jerry_Bash@spectral-sys.com
>         cc:     debian-user@lists.debian.org
>         Subject:        Re: usb flash drive problem - module problem?
>
>
> What's the output of:
>
> cat /proc/scsi/scsi
>
> Is there anything in /var/log/syslog or /var/log/messages that suggests a
> problem with the USB device?
>
> ----------------------------------------------------------------------
> Andrew J Perrin - http://www.unc.edu/~aperrin
> Assistant Professor of Sociology, U of North Carolina, Chapel Hill
> clists@perrin.socsci.unc.edu * andrew_perrin (at) unc.edu
>
>
> On Thu, 22 May 2003 Jerry_Bash@spectral-sys.com wrote:
>
> > Hi,
> > I have recently acquired a usb flash (pen) drive, and have been able to
> > use it occasionally.
> > I initially simply loaded the usb-storage module, plugged it in and
> > mounted it successfully, and was able to read and write files.
> >
> > However, the next day I tried mounting it again, and was not able to.
> > ('/dev/sda1 is not a block device' error).  It seems that after some
> time
> > (I haven't determined how much time), I am no longer able to mount the
> > drive to access it.  I am 'manually' mounting it (ie., not using
> hotplug)
> > and would prefer to continue using in that manner, if possible.
> >
> > jlb@cello:~$ mount /mnt/flash
> > mount: /dev/sda1 is not a valid block device
> >
> > I am not familiar with the how modules behave.  Is it possible that a
> > module required for usb access is unloaded?  I have mounted and accessed
> > this device, as well as another device (usb cdrom burner) successfully.
> >
> > If anyone can help, it would be much appreciated.
> >
> > Thanks
> >
> > I am using debian sid on a AMD Athlon machine. Details included below
> > (kernel, fstab, modules loaded)
> >
> > jlb@cello:~$ uname -a
> > Linux cello 2.4.20-1-k7 #1 Sat Mar 22 15:17:52 EST 2003 i686 GNU/Linux
> >
> > jlb@cello:~$ more /etc/fstab
> > # /etc/fstab: static file system information.
> > #
> > # <file system> <mount point>   <type>  <options>               <dump>
> > <pass>
> > /dev/hda2       /               ext3    errors=remount-ro       0 1
> > /dev/hda6       none            swap    sw                      0 0
> > proc            /proc           proc    defaults                0 0
> > /dev/fd0        /floppy         auto    user,noauto             0 0
> > /dev/cdrom      /cdrom          iso9660 unhide,ro,user,noauto 0
> >     0
> > /dev/hda1       /boot   ext3    defaults                        0 2
> > /dev/hda3       /var    ext3    defaults                        0 2
> > /dev/hda5       /usr    ext3    defaults                        0 2
> > /dev/hda7       /home   ext3    defaults                        0 2
> > /dev/hda8       /data01 ext3    defaults                        0 2
> > /dev/sda1       /mnt/flash      vfat    user    0       0
> >
> > jlb@cello:~$ su
> > Password:
> > cello:/home/jlb# lsmod
> > Module                  Size  Used by    Tainted: PF
> > usb-storage            56956   0  (unused)
> > floppy                 45948   0  (autoclean)
> > ide-cd                 27364   0  (autoclean)
> > cdrom                  29280   0  (autoclean) [ide-cd]
> > vmnet                  18856   4
> > parport_pc             21288   0
> > parport                23296   0  [parport_pc]
> > vmmon                  23252   0
> > snd-seq-midi            3424   0  (autoclean)
> > snd-seq-oss            24288   0
> > snd-seq-midi-event      2968   0  [snd-seq-midi snd-seq-oss]
> > snd-seq                38096   2  [snd-seq-midi snd-seq-oss
> > snd-seq-midi-event]
> > snd-pcm-oss            37956   0
> > snd-mixer-oss          11576   0  [snd-pcm-oss]
> > snd-ens1371            11468   0
> > snd-pcm                56288   0  [snd-pcm-oss snd-ens1371]
> > snd-timer              14280   0  [snd-seq snd-pcm]
> > snd-page-alloc          4208   0  [snd-pcm]
> > gameport                1660   0  [snd-ens1371]
> > snd-rawmidi            12416   0  [snd-seq-midi snd-ens1371]
> > snd-seq-device          3940   0  [snd-seq-midi snd-seq-oss snd-seq
> > snd-rawmidi]
> > snd-ac97-codec         33288   0  [snd-ens1371]
> > snd                    29348   0  [snd-seq-midi snd-seq-oss
> > snd-seq-midi-event snd-seq snd-pcm-oss snd-mixer-oss snd-ens1371 snd-pcm
> > snd-timer snd-rawmidi snd-seq-device snd-ac97-codec]
> > soundcore               3716   8  [snd]
> > sd_mod                 10860   0  (autoclean) (unused)
> > scsi_mod               90248   1  (autoclean) [usb-storage sd_mod]
> > vfat                    9548   0  (autoclean)
> > fat                    30136   0  (autoclean) [vfat]
> > 8139too                16200   1
> > mii                     2432   0  [8139too]
> > keybdev                 1696   0  (unused)
> > usbkbd                  2940   0  (unused)
> > input                   3392   0  [keybdev usbkbd]
> > usb-uhci               21804   0  (unused)
> > usbcore                56896   0  [usb-storage usbkbd usb-uhci]
> > rtc                     5980   0  (autoclean)
> > ext3                   58816   6  (autoclean)
> > jbd                    37544   6  (autoclean) [ext3]
> > ide-disk               10176   7  (autoclean)
> > ide-probe-mod           8880   0  (autoclean)
> > ide-mod               154184   7  (autoclean) [ide-cd ide-disk
> > ide-probe-mod]
> > unix                   14056 147  (autoclean)
> >
> >
> > -------------------------------------------------------------------
> >                      Jerry Bash
> >               Spectral Systems, Inc.
> >              Phone: (937) 281-1320
> > -------------------------------------------------------------------
>
>
>



Reply to: