Dave's Brain

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.)

Add a comment

Sign in to add a comment
Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.