On Fri, 17 Oct 2008, Rogério Brito wrote: > Hi, Cristian.
Rogério, > On Oct 15 2008, Cristian Ionescu-Idbohrn wrote: > > Therefore it might be a good idea to validate that in > > /etc/usbmount/mount.d/00_create_model_symlink, for example: > > Your suggestion is sound. Can you please show me a situation where > usbmount is failing to point to the right location (I have never > seen it before, as I have just adopted this package)? Now, this may be difficult to reproduce, but I'll try to explain the circumstances. I'll also be speculating a little because I'm not 100% sure about the course of events. Suppose you go an usb-stick with 2 partitions: 1st vfat and 2nd ext3. You install package usbmount and don't configure anything. With the current default configuration, the ext3 partition will be recognized but the vfat one will not. /dev/sdX2 (ext3) will be mounted on /media/usb0 and the symlink /var/run/usbmount/<whatever>_2 will point to /media/usb0. Next, you adjust /etc/usbmount/usbmount.conf to cope with vfat partitions too. Disconnect the usb-stick and reconnect it after a moment. This time /dev/sdX1 (vfat) will be mounted on /media/usb0 and /dev/sdX2 (ext3) on /media/usb1. The script will detect the symlink /var/run/usbmount/<whatever>_2 (ext3) already exists and do nothing, although the symlink this time points to the wrong mount point /media/usb0 on thich the vfat partition is no mounted. > If possible, it would be more desirable to create the symlink > correctly than to remove the symlink (which would a reasonable > workaround, but the former solution would be preferrable). Yes. But that may be difficult, if not imposible. See the scenario above. > Oh, and thanks for using usbmount! Cheers, > Regards, Rogério Brito. > > P.S.: There may also be a race condition on the creation of the > symlink, if the computer is loaded enough. I still have to check > that carefully. Right. -- Cristian -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

