Problem: I would like to have my camera be mounted automatically when I plug it into its usb cable.<br>
  NB: Although it is plugged into the usb, it is seen as a scsi device.<br>
<br>
I have a line in fstab:<br>
  /dev/sda1    /media/usbdisk    auto    pamconsole,exec,noauto,managed 0 0<br>
<br>
I have made a dimage.rules file for udev:<br>
  BUS="scsi", SYSFS{model}="DiMAGE F100", KERNEL="sd?1", SYMLINK="camera"<br>
<br>
I got some of this information by entering the command:<br>
  udevinfo -a -p 'udevinfo -q path -n /dev/sda1'<br>
<br>
This is the output I get:<br>
<br>
device '/sys/block/sda/sda1' has major:minor 8:1<br>
  looking at class device '/sys/block/sda/sda1':<br>
    SUBSYSTEM=="block"<br>
    SYSFS{dev}=="8:1"<br>
    SYSFS{size}=="493979"<br>
    SYSFS{start}=="101"<br>
    SYSFS{stat}=="    
163     
163       
0        0"<br>
<br>
follow the "device"-link to the physical device:<br>
  looking at the device chain at '/sys/devices/pci0000:00/0000:00:1f.2/usb1/1-2/1-2:1.0/host2/target2:0:0/2:0:0:0':<br>
    BUS=="scsi"<br>
    ID=="2:0:0:0"<br>
    DRIVER=="sd"<br>
    SYSFS{device_blocked}=="0"<br>
    SYSFS{iocounterbits}=="32"<br>
    SYSFS{iodone_cnt}=="0x2b"<br>
    SYSFS{ioerr_cnt}=="0x0"<br>
    SYSFS{iorequest_cnt}=="0x2b"<br>
    SYSFS{max_sectors}=="240"<br>
    SYSFS{model}=="DiMAGE F100     "<br>
    SYSFS{queue_depth}=="1"<br>
    SYSFS{queue_type}=="none"<br>
    SYSFS{rev}=="1.00"<br>
    SYSFS{scsi_level}=="3"<br>
    SYSFS{state}=="running"<br>
    SYSFS{timeout}=="30"<br>
    SYSFS{type}=="0"<br>
    SYSFS{vendor}=="MINOLTA "<br>
<br>
couldn't open device directory<br>
<br>
Perhaps of note is the fact that the number on the line SYSFS{stat} is not the same every time<br>
Also, the note at the end of the output for this command: "couldn't open device directory"<br>
Is that normal? Why couldn't directory be opened? When I manually mount, it opens just fine.<br>
<br>
When I plug in the camera:<br>
-  the modules are loaded automatically (verified with tail messages, etc)<br>
-  the aforementioned line appears in fstab<br>
-  /dev/sda1 is created<br>
-  a link /dev/camera --> /dev/sda1 is created<br>
-  /media/usbdisk is created<br>
<br>
However, the camera is not mounted and I have to do so manually :-(<br>
<br>
When I turn off the camera:<br>
-  /media/usbdisk disappears, but only after a very long time (in
a few instances it didn't disappear and on next boot, when I plugged in
the camera again, /media/usbdisk1 was created, in addition to the
pre-existing /media/usbdisk from the previous session)<br>
-  the line in fstab also disappears (I would have preferred to
have /media/camera, but usbdisk appears no matter what I write in
fstab, so instead of fighting it, I decided that it will have to do,
unless someone knows why...)<br>
<br>
Does anyone know how to get this working? Help would be much appreciated.<br>