Plese post your script in pastebin or similar and paste the URL.<br><br><br><div class="gmail_quote">2009/10/8 Frederik Vanrenterghem <span dir="ltr"><<a href="mailto:frederik@vanrenterghem.biz">frederik@vanrenterghem.biz</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Sounds sensible indeed. How do I actually prevent the automount though? I have tried figuring this out with udevmonitor, but can't really tell what's happening.<br>
<br>It seems my script gets run somewhere in the middle of the following sequence, instead of at the end:<br>
<br>UEVENT[1255026948.392547] add /devices/platform/musb_hdrc/usb1/1-1 (usb)<br>UEVENT[1255026948.393310] add /class/usb_endpoint/usbdev1.18_ep00 (usb_endpoint)<br>UEVENT[1255026948.393585] add /devices/platform/musb_hdrc/usb1/1-1/1-1:1.0 (usb)<br>
UEVENT[1255026948.393798] add /class/scsi_host/host6 (scsi_host)<br>UEVENT[1255026948.393981] add /class/usb_endpoint/usbdev1.18_ep01 (usb_endpoint)<br>UEVENT[1255026948.394165] add /class/usb_endpoint/usbdev1.18_ep82 (usb_endpoint)<br>
UEVENT[1255026948.394378] add /class/usb_endpoint/usbdev1.18_ep83 (usb_endpoint)<br>UEVENT[1255026948.394561] add /class/usb_device/usbdev1.18 (usb_device)<br>UDEV [1255026948.498626] add /devices/platform/musb_hdrc/usb1/1-1 (usb)<br>
UDEV [1255026948.655029] add /class/usb_endpoint/usbdev1.18_ep00 (usb_endpoint)<br>UDEV [1255026948.701416] add /devices/platform/musb_hdrc/usb1/1-1/1-1:1.0 (usb)<br>UDEV [1255026948.794860] add /class/scsi_host/host6 (scsi_host)<br>
UDEV [1255026948.832946] add /class/usb_endpoint/usbdev1.18_ep01 (usb_endpoint)<br>UDEV [1255026948.870971] add /class/usb_endpoint/usbdev1.18_ep82 (usb_endpoint)<br>UDEV [1255026948.890533] add /class/usb_endpoint/usbdev1.18_ep83 (usb_endpoint)<br>
UDEV [1255026948.963012] add /class/usb_device/usbdev1.18 (usb_device)<br><br>here?<br><br>UEVENT[1255026953.385009] add /devices/platform/musb_hdrc/usb1/1-1/1-1:1.0/host6/target6:0:0/6:0:0:0 (scsi)<br>UEVENT[1255026953.385467] add /class/scsi_disk/6:0:0:0 (scsi_disk)<br>
UEVENT[1255026953.458374] add /block/sda (block)<br>UEVENT[1255026953.458801] add /block/sda/sda1 (block)<br>UEVENT[1255026953.459045] add /class/scsi_device/6:0:0:0 (scsi_device)<br>UDEV [1255026953.488525] add /devices/platform/musb_hdrc/usb1/1-1/1-1:1.0/host6/target6:0:0/6:0:0:0 (scsi)<br>
UDEV [1255026953.726104] add /class/scsi_disk/6:0:0:0 (scsi_disk)<br>UDEV [1255026953.755218] add /block/sda (block)<br>UDEV [1255026953.778747] add /class/scsi_device/6:0:0:0 (scsi_device)<br>UDEV [1255026953.847900] add /block/sda/sda1 (block)<br>
UEVENT[1255026955.123718] mount /block/sda/sda1 (block)<br>UDEV [1255026955.834564] mount /block/sda/sda1 (block)<br><br><br><div class="gmail_quote"><div class="im">On Thu, Oct 8, 2009 at 8:25 PM, Adrián Yanes <span dir="ltr"></span> wrote:<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">Try yo exclude your camera for automount. Then include in your script the command mount and after done ( you can obtain some scripts for detect the partition without automount). Probably works, because I think that your problem it's desynchronization, in one way you are mouting and in the other executing a script ( that sometimes works and others not I suppouse ... depend of the charge of the system).<br>
<br>Try to put all in the same script, this will be de process sequential.<br><br>Regards, Adrian.<br><br></div><div class="gmail_quote"><div class="im">2009/10/8 Frederik Vanrenterghem<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div>Hi all,<div class="im"><br><div class="gmail_quote"><br>I would like to execute a script that copies the pictures from my digital camera when it's plugged into my nokia tablet. The script functions correctly when executed from the command-line after plugging in the camera.<br>
<br>Adding the following rule to /etc/udev/rules.d/zz99_camera.rules works only partially:<br>ACTION=="add", BUS=="usb", \<br> SYSFS{idVendor}=="054c", SYSFS{idProduct}=="0010", \<br>
RUN+="/home/user/autoPicturesImport.sh"<br><br>The script is executed correctly, but it can't copy anything from the mounted camera, as the file system on it is not available. That is made available only once this script completes (as evidenced by including a long sleep command in there).<br>
<br>How can I ensure all actions to automount the camera are completed before this script is executed?<br><br>Thanks in advance for your insight!<br><br>Best regards,<br><font color="#888888">Frederik<br>
</font></div><br>
<br></div></div></div><div class="im">_______________________________________________<br>
maemo-users mailing list<br>
<a href="mailto:maemo-users@maemo.org" target="_blank">maemo-users@maemo.org</a><br>
<a href="https://lists.maemo.org/mailman/listinfo/maemo-users" target="_blank">https://lists.maemo.org/mailman/listinfo/maemo-users</a><br>
<br></div></blockquote></div><div class="im"><br>
<br>_______________________________________________<br>
maemo-users mailing list<br>
<a href="mailto:maemo-users@maemo.org" target="_blank">maemo-users@maemo.org</a><br>
<a href="https://lists.maemo.org/mailman/listinfo/maemo-users" target="_blank">https://lists.maemo.org/mailman/listinfo/maemo-users</a><br>
<br></div></blockquote></div><br>
<br>_______________________________________________<br>
maemo-users mailing list<br>
<a href="mailto:maemo-users@maemo.org">maemo-users@maemo.org</a><br>
<a href="https://lists.maemo.org/mailman/listinfo/maemo-users" target="_blank">https://lists.maemo.org/mailman/listinfo/maemo-users</a><br>
<br></blockquote></div><br>