[2008.testing] sshfs
Mounting my FR from my Ubuntu Intrepid box via sshfs is really useful, but sometimes, I cannot unmount it, getting: $ make moko- fusermount -u /home/jeff/OM/moko umount: /home/jeff/OM/moko: device is busy. (In some cases useful info about processes that use the device is found by lsof(8) or fuser(1)) make: [moko-] Error 1 (ignored) rmdir /home/jeff/OM/moko rmdir: failed to remove `/home/jeff/OM/moko': Device or resource busy make: *** [moko-] Error 1 How can get it to unmount cleanly? Further - how would I go about doing the mount to say /media/moko automatically on plugging it in? Regards Jeff ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [2008.testing] sshfs
On Sun, 22 Feb 2009 11:18:21 +0100, Jeffrey Ratcliffe jeffrey.ratcli...@gmail.com wrote: Mounting my FR from my Ubuntu Intrepid box via sshfs is really useful, but sometimes, I cannot unmount it, getting: $ make moko- fusermount -u /home/jeff/OM/moko umount: /home/jeff/OM/moko: device is busy. (In some cases useful info about processes that use the device is found by lsof(8) or fuser(1)) make: [moko-] Error 1 (ignored) rmdir /home/jeff/OM/moko rmdir: failed to remove `/home/jeff/OM/moko': Device or resource busy make: *** [moko-] Error 1 How can get it to unmount cleanly? This usually happens because a process keeps a file or directory under the mount point open. One particularly frequent case is when the current working directory of some process is under the mount point. As the error message suggests, you can use lsof to identify the offending process. Further - how would I go about doing the mount to say /media/moko automatically on plugging it in? There are many automount solutions for linux, from kernel modules to fuse filesystems. You probably don't want to mount it on plugging in, but rather on access to the mount point. -- Alexey Feldgendler ale...@feldgendler.ru [ICQ: 115226275] http://feldgendler.livejournal.com ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [2008.testing] sshfs
On Sunday 22 February 2009, Alexey Feldgendler wrote: On Sun, 22 Feb 2009 11:18:21 +0100, Jeffrey Ratcliffe jeffrey.ratcli...@gmail.com wrote: How can get it to unmount cleanly? This usually happens because a process keeps a file or directory under the mount point open. One particularly frequent case is when the current working directory of some process is under the mount point. As the error message suggests, you can use lsof to identify the offending process. sudo lsof +f -- /home/jeff/OM/moko would give you the list of processes accessing your mountpoint Cheers, Florian -- DI Florian Hackenberger flor...@hackenberger.at www.hackenberger.at ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community