On Wed, Dec 22, 2010 at 9:22 AM, Henry Coleman <henry.cole...@voip-pbx.ca> wrote: >> Inserting the stick and refreshing the GUI page shows the new directory >> structure on the USB stick. >> However after a backup they get saved to the HD directory instead
You lost me there. If the USB is mounted on top of /var/lib/asterisk/backups, then it would be impossible for you to write to that directory and have it written to the hard disk. >> Unplugging the USB stick does not restore the original HD directory, only a >> reboot does this. We probably need to fix something in this section: # Clean up after removal ACTION=="remove", ENV{dir_name}!="", RUN+="/bin/umount -l /var/lib/asterisk/backups" After removing the usb key, try running the unmount manually and see what it says: # /bin/umount -l /var/lib/asterisk/backups There should also be a log of what happened in /var/log/messages (That's assuming CentOS uses /var/log/messages for udev logging). The most likely explanation is that the file system is "busy" preventing it from being unmounted. If that is the case you can do (as root): # lsof | grep /var/lib/asterisk/backups to find out what it is. -- John Lange www.johnlange.ca --------------------------------------------------------------------- To unsubscribe, e-mail: asterisk-unsubscr...@uc.org For additional commands, e-mail: asterisk-h...@uc.org