Browse - Computer Tips - When I attempt to umount a CIFS (Samba) filesystem

Date: 2012jul24
OS: Linux

Q.  When I attempt to umount a CIFS (Samba) filesystem
umount hangs.  Is there a way to avoid this?

A.  Use the -l (lazy) option of umount.  eg:

umount -l /mnt/myfolder
The manual page says:
-l Lazy unmount. Detach the filesystem from the filesystem hierar- chy now, and cleanup all references to the filesystem as soon as it is not busy anymore. (Requires kernel 2.4.11 or later.)