[CentOS] Centos 5 card reader automount

Frank Cox

theatre at sasktel.net
Thu Sep 4 23:03:19 UTC 2008


To this point, whenever I've plugged a storage device (flash drive, mp3 player)
into a USB plug, it's magically mounted and I get an icon on my desktop.

I've just got a card reader and it doesn't automount.  I can mount it
manually with "mount /dev/sdb1 /mnt/temp" and that works fine.

I would prefer to have it automount and give me the desktop icon.
Unfortunately, I don't yet know enough about the automounting mechanism to know
what I need to change to make this happen.

Here is the relevant portion of /var/log/messages when I plug in the card
reader:

Sep  4 16:31:11 bargainhunter kernel: usb 7-6: new high speed USB device using e
hci_hcd and address 12
Sep  4 16:31:11 bargainhunter kernel: usb 7-6: configuration #1 chosen from 1 ch
oice
Sep  4 16:31:11 bargainhunter kernel: scsi11 : SCSI emulation for USB Mass Stora
ge devices
Sep  4 16:31:16 bargainhunter kernel:   Vendor: Generic   Model: USB SD Reader  
   Rev: 1.00
Sep  4 16:31:16 bargainhunter kernel:   Type:   Direct-Access                   
   ANSI SCSI revision: 00
Sep  4 16:31:16 bargainhunter kernel: SCSI device sdb: 3901440 512-byte hdwr sec
tors (1998 MB)
Sep  4 16:31:16 bargainhunter kernel: sdb: Write Protect is off
Sep  4 16:31:16 bargainhunter kernel: sdb: assuming drive cache: write through
Sep  4 16:31:16 bargainhunter kernel: SCSI device sdb: 3901440 512-byte hdwr sec
tors (1998 MB)
Sep  4 16:31:16 bargainhunter kernel: sdb: Write Protect is off
Sep  4 16:31:16 bargainhunter kernel: sdb: assuming drive cache: write through
Sep  4 16:31:16 bargainhunter kernel:  sdb: sdb1
Sep  4 16:31:16 bargainhunter kernel: sd 11:0:0:0: Attached scsi removable disk 
sdb
Sep  4 16:31:16 bargainhunter kernel: sd 11:0:0:0: Attached scsi generic sg2 typ
e 0
Sep  4 16:31:16 bargainhunter kernel:   Vendor: Generic   Model: USB CF Reader  
   Rev: 1.01
Sep  4 16:31:16 bargainhunter kernel:   Type:   Direct-Access                   
   ANSI SCSI revision: 00
Sep  4 16:31:16 bargainhunter kernel: sd 11:0:0:1: Attached scsi removable disk 
sdc
Sep  4 16:31:16 bargainhunter kernel: sd 11:0:0:1: Attached scsi generic sg3 typ
e 0
Sep  4 16:31:16 bargainhunter kernel:   Vendor: Generic   Model: USB SM Reader  
   Rev: 1.02
Sep  4 16:31:16 bargainhunter kernel:   Type:   Direct-Access                   
   ANSI SCSI revision: 00
Sep  4 16:31:16 bargainhunter kernel: sd 11:0:0:2: Attached scsi removable disk 
sdd
Sep  4 16:31:16 bargainhunter kernel: sd 11:0:0:2: Attached scsi generic sg4 typ
e 0
Sep  4 16:31:16 bargainhunter kernel:   Vendor: Generic   Model: USB MS Reader  
   Rev: 1.03
Sep  4 16:31:16 bargainhunter kernel:   Type:   Direct-Access                   
   ANSI SCSI revision: 00
Sep  4 16:31:16 bargainhunter kernel: sd 11:0:0:3: Attached scsi removable disk 
sde
Sep  4 16:31:16 bargainhunter kernel: sd 11:0:0:3: Attached scsi generic sg5 typ
e 0

Again, it works fine if I use a mount command to mount it myself.  How can I
get it to automount and give me the desktop icon?

-- 
MELVILLE THEATRE ~ Melville Sask ~ http://www.melvilletheatre.com



More information about the CentOS mailing list