How to determine which /dev/sd* for my digital camera

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Josef Lowder
Date:  
Subject: How to determine which /dev/sd* for my digital camera
I've tried the latest suggestions and the dmesg results appear below the
second double dotted line below.

I am running Mandrake 8.1 -- kernel 2.4.8-26mdk

uname shows this:
Linux localhost.localdomain 2.4.8-26mdk #1 Tue Mar 5 11:59 EST 2002 i686
unknown

cat /proc/bus/usb/devices does recognize the camera connected by USB
cable by name, model number, and serial number ... so why can't I mount it?
The serial number shown, though, is different than the one imprinted on the
camera case. Does that matter?

$ cat /proc/bus/usb/devices 
T:  Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.00 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 0.00
S:  Product=USB UHCI Root Hub
S:  SerialNumber=bc00
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   8 Ivl=255ms
T:  Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 14 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0482 ProdID=0100 Rev= 1.00
S:  Manufacturer=TOSHIBA CORPORATION    <<<<<<<<<
S:  Product=PDR-3310                <<<<<<<<<
S:  SerialNumber=T0020167            <<<<<<<<< actually is: 87540969
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=  2mA
I:  If#= 0 Alt= 0 #EPs= 3 Cls=08(stor.) Sub=05 Prot=01 Driver=usb-storage
E:  Ad=01(O) Atr=02(Bulk) MxPS=  64 Ivl=  0ms
E:  Ad=82(I) Atr=02(Bulk) MxPS=  64 Ivl=  0ms
E:  Ad=83(I) Atr=03(Int.) MxPS=   8 Ivl=255ms
T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.00 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 0.00
S:  Product=USB UHCI Root Hub
S:  SerialNumber=c000
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   8 Ivl=255ms


--------------------------------------------------
As you suggested, I did this:
'rmmod usb-storage' followed by 'modprobe usb-storage',
then 'dmesg | tail -50'

The complete result of the last 'dmesg' is shown below the second
double dotted line (far below).

I also did a diff of dmesg results after 'rmmod usb-storage' (dmesg5)
and then after 'modprobe usb-storage' (dmesg6) which shows the
following info:

# /sbin/rmmod usb-storage
# dmesg _ tail -50 >> dmesg5
# modprobe usb-storage
# dmesg | tail -50 >> dmesg6
# diff dmesg5 dmesg6
1,6d0
< hub.c: Cannot enable port 1 of hub 1, disabling port.
< hub.c: Maybe the USB cable is bad?
< hub.c: Cannot enable port 1 of hub 1, disabling port.
< hub.c: Maybe the USB cable is bad?
< hub.c: USB new device connect on bus2/1, assigned device number 9
< WARNING: USB Mass Storage data integrity not assured
50a45,50
> Initializing USB Mass Storage driver...
> usb.c: registered new driver usb-storage
> scsi1 : SCSI emulation for USB Mass Storage devices
> WARNING: USB Mass Storage data integrity not assured
> USB Mass Storage device found at 14
> USB Mass Storage support registered.

#

The great mystery remains, why can't I mount the camera
and why does the attempted mount return "unknown device"
when 'cat /proc/bus/usb/devices' shows that the device is,
in fact, recognized and 'modprobe' establishes that the USB
Mass Storage device >IS< "found" and it has "support registered"?

# mount -t vfat /dev/sdb1 /mnt/camera
mount: /dev/sdb1: unknown device


===========================================
Joe previously wrote:
> > # cat /proc/scsi/scsi
> > Attached devices:
> > Host: scsi0 Channel: 00 Id: 00 Lun: 00
> >   Vendor: SONY     Model: CD-RW  CRX140E   Rev: 1.0n
> >   Type:   CD-ROM                           ANSI SCSI revision: 02
> > #


------------------------------------------------------------
Hans wrote:
> OK, you've got a CD-ROM that the SCSI system knows about. It could be an
> IDE CD-ROM, but for the 2.2 and 2.4 kernels you should use ide-scsi and
> pretend it's SCSI :).
> Don't see the USB device.


------------------------------------------------------------
Joe wrote:
> > # modprobe usb-storage
> > #    (no response)

------------------------------------------------------------
> > # lsmod
> > Module                  Size  Used by
> > usb-storage            52528   0
> > usb-uhci               21232   0  (unused)
> > usbcore                50752   1  [usb-storage usb-uhci]


------------------------------------------------------------
Hans wrote:
> OK, so usb-storage is loaded.
> Try 'rmmod usb-storage' followed by 'modprobe usb-storage',

    then 'dmesg |  tail -50'.

> If the rmmod fails don't worry about the other two.
> cat /proc/bus/usb/devices
> What kernel are you running?
> uname -a
> What disttribution are you running?


===========================================
$ dmesg | tail -50
USB Mass Storage device found at 9
usb.c: USB disconnect on device 9
hub.c: Cannot enable port 1 of hub 1, disabling port.
hub.c: Maybe the USB cable is bad?
hub.c: Cannot enable port 1 of hub 1, disabling port.
hub.c: Maybe the USB cable is bad?
hub.c: USB new device connect on bus2/1, assigned device number 10
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 10
usb.c: USB disconnect on device 10
hub.c: Cannot enable port 1 of hub 1, disabling port.
hub.c: Maybe the USB cable is bad?
hub.c: USB new device connect on bus2/1, assigned device number 11
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 11
usb.c: USB disconnect on device 11
via_audio: ignoring drain playback error -11
via_audio: ignoring drain playback error -11
via_audio: ignoring drain playback error -11
hub.c: Cannot enable port 1 of hub 1, disabling port.
hub.c: Maybe the USB cable is bad?
hub.c: USB new device connect on bus2/1, assigned device number 12
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 12
usb.c: USB disconnect on device 12
via_audio: ignoring drain playback error -11
lp0 off-line
DMA write timed out
parport0: FIFO is stuck
parport0: BUSY timeout (1) in compat_write_block_pio
hub.c: Cannot enable port 1 of hub 1, disabling port.
hub.c: Maybe the USB cable is bad?
hub.c: USB new device connect on bus2/1, assigned device number 13
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 13
usb.c: USB disconnect on device 13
via_audio: ignoring drain playback error -11
hub.c: Cannot enable port 1 of hub 1, disabling port.
hub.c: Maybe the USB cable is bad?
hub.c: USB new device connect on bus2/1, assigned device number 14
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 14
usb.c: deregistering driver usb-storage
scsi : 1 host left.
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
scsi1 : SCSI emulation for USB Mass Storage devices
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 14
USB Mass Storage support registered.
$