[NTLUG:Discuss] Digital Camera Formatted SD Card In Hot Plugged USB2 Pen Drive

Peter A. Koren p.koren at worldnet.att.net
Sat Aug 20 20:17:50 CDT 2005


My problems with getting images from my sd memory card placed in a card
holder with a USB2 interface are solved. At the meeting today I talked
to some of the NTLUG members who agreed that it appeared that while the
card was recognized, it was not mounted, even thought the hotplugged
USB2 device was quickly discovered and a directory was created
under /media -- named CANON_DC. Here are the resulting messages returned
by dmesg after plugging in the SD card in its holder (pen drive):
----------------------------------------------------------------------
usb 2-10: new full speed USB device using address 3
Initializing USB Mass Storage driver...
scsi4 : SCSI emulation for USB Mass Storage devices
  Vendor: MG        Model: SD-Key            Rev: 1.00
  Type:   Direct-Access                      ANSI SCSI revision: 02
SCSI device sdb: 1999872 512-byte hdwr sectors (1024 MB)
sdb: Write Protect is off
sdb: Mode Sense: 03 00 00 00
sdb: assuming drive cache: write through
 sdb: sdb1
Attached scsi removable disk sdb at scsi4, channel 0, id 0, lun 0
USB Mass Storage device found at 3
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
----------------------------------------------------------------------

Two new entries were placed in the /dev directory:

sdb
sdb1

So I tried the obvious:

mount -t vfat /dev/sdb1 /media/CANON_DC

It worked and the image files were there. The new message in dmesg was:

SELinux: initialized (dev sdb1, type vfat), uses genfs_contexts

Is there an easy way compatible with hotplugging that I can use to mount
and unmount the USB2 device automatically? 

In addition, what linux based software can extract the camera
manufacturers picture data from the jpegs -- things like date, time and
camera settings?

-- Pete






More information about the Discuss mailing list