<br><br><div><span class="gmail_quote">On 25/10/05, <b class="gmail_sendername">Andrew Couture</b> &lt;<a href="mailto:relicsrage@gmail.com">relicsrage@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
First off, what version of FC are you using?,<br><br>do you have gphoto or gphoto2 installed?<br><br>do you have gThumb installed?<br><br>You can mount the thing manually, your almost there...<br><br><br>kwhiskers wrote:<br>
&gt; Problem: I would like to have my camera be mounted automatically when I<br>&gt; plug it into its usb cable.<br>&gt;&nbsp;&nbsp; NB: Although it is plugged into the usb, it is seen as a scsi device.<br>&gt;<br>&gt; I have a line in fstab:
<br>&gt;&nbsp;&nbsp;
/dev/sda1&nbsp;&nbsp;&nbsp;&nbsp;/media/usbdisk&nbsp;&nbsp;&nbsp;&nbsp;auto&nbsp;&nbsp;&nbsp;&nbsp;pamconsole,exec,noauto,managed
0 0<br>&gt;<br>&gt; I have made a dimage.rules file for udev:<br>&gt;&nbsp;&nbsp; BUS=&quot;scsi&quot;, SYSFS{model}=&quot;DiMAGE F100&quot;, KERNEL=&quot;sd?1&quot;, SYMLINK=&quot;camera&quot;<br>&gt;<br>&gt; I got some of this information by entering the command:
<br>&gt;&nbsp;&nbsp; udevinfo -a -p 'udevinfo -q path -n /dev/sda1'<br>&gt;<br>&gt; This is the output I get:<br>&gt;<br>&gt; device '/sys/block/sda/sda1' has major:minor 8:1<br>&gt;&nbsp;&nbsp; looking at class device '/sys/block/sda/sda1':
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; SUBSYSTEM==&quot;block&quot;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; SYSFS{dev}==&quot;8:1&quot;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; SYSFS{size}==&quot;493979&quot;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; SYSFS{start}==&quot;101&quot;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;
SYSFS{stat}==&quot;&nbsp;&nbsp;&nbsp;&nbsp;
163&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;163&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0&quot;<br>&gt;<br>&gt; follow the &quot;device&quot;-link to the physical device:<br>&gt;&nbsp;&nbsp; looking at the device chain at '/sys/devices/pci0000:00/0000<br>&gt; :00:1f.2/usb1/1-2/1-2:1.0/host2/target2:0:0/2:0:0:0':
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; BUS==&quot;scsi&quot;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; ID==&quot;2:0:0:0&quot;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; DRIVER==&quot;sd&quot;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; SYSFS{device_blocked}==&quot;0&quot;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; SYSFS{iocounterbits}==&quot;32&quot;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; SYSFS{iodone_cnt}==&quot;0x2b&quot;
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; SYSFS{ioerr_cnt}==&quot;0x0&quot;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; SYSFS{iorequest_cnt}==&quot;0x2b&quot;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; SYSFS{max_sectors}==&quot;240&quot;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; SYSFS{model}==&quot;DiMAGE F100&nbsp;&nbsp;&nbsp;&nbsp; &quot;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; SYSFS{queue_depth}==&quot;1&quot;
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; SYSFS{queue_type}==&quot;none&quot;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; SYSFS{rev}==&quot;1.00&quot;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; SYSFS{scsi_level}==&quot;3&quot;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; SYSFS{state}==&quot;running&quot;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; SYSFS{timeout}==&quot;30&quot;
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; SYSFS{type}==&quot;0&quot;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; SYSFS{vendor}==&quot;MINOLTA &quot;<br>&gt;<br>&gt; couldn't open device directory<br>&gt;<br>&gt; Perhaps of note is the fact that the number on the line SYSFS{stat} is
<br>&gt; not the same every time<br>&gt; Also, the note at the end of the output for this command: &quot;couldn't open<br>&gt; device directory&quot;<br>&gt; Is that normal? Why couldn't directory be opened? When I manually mount,
<br>&gt; it opens just fine.<br>&gt;<br>&gt; When I plug in the camera:<br>&gt; -&nbsp;&nbsp;the modules are loaded automatically (verified with tail messages, etc)<br>&gt; -&nbsp;&nbsp;the aforementioned line appears in fstab<br>&gt; -&nbsp;&nbsp;/dev/sda1 is created
<br>&gt; -&nbsp;&nbsp;a link /dev/camera --&gt; /dev/sda1 is created<br>&gt; -&nbsp;&nbsp;/media/usbdisk is created<br>&gt;<br>&gt; However, the camera is not mounted and I have to do so manually :-(<br>&gt;<br>&gt; When I turn off the camera:
<br>&gt; -&nbsp;&nbsp;/media/usbdisk disappears, but only after a very long time (in a few<br>&gt; instances it didn't disappear and on next boot, when I plugged in the<br>&gt; camera again, /media/usbdisk1 was created, in addition to the
<br>&gt; pre-existing /media/usbdisk from the previous session)<br>&gt; -&nbsp;&nbsp;the line in fstab also disappears (I would have preferred to have<br>&gt; /media/camera, but usbdisk appears no matter what I write in fstab, so<br>
&gt; instead of fighting it, I decided that it will have to do, unless<br>&gt; someone knows why...)<br>&gt;<br>&gt; Does anyone know how to get this working? Help would be much appreciated<br>&gt;<br><br>--<br>fedora-list mailing list
<br><a href="mailto:fedora-list@redhat.com">fedora-list@redhat.com</a><br>To unsubscribe: <a href="https://www.redhat.com/mailman/listinfo/fedora-list">https://www.redhat.com/mailman/listinfo/fedora-list</a><br></blockquote>
</div><br>
Well, I was pretty hopeful about the noauto tip. I edited my fstab and
set it to auto instead, like you said. Then I rebooted, plugged in the
camera, and what happened... the fstab is back to the old version with
noauto. Maybe it stores these old settings somewhere? I removed the old
line and put in the new one, but it's back to how it was before. In any
case, the camera did not automount when I plugged it in.<br>