Related Items  

Linux and Windows IT Support  

dedicated-technology-experts

Windows, Apple and Linux IT support and services.

For Software and Web Development.

Force unmount of CIFS

PrintE-mail

Q. I have a linux box with a windows mount point that lost connection to the server. I can't do anything with it - any time I do a "df" or "ls" command it hangs and takes forever to time out. What should I do, aside from rebooting and disabling that mount.

A. With NFS mount, you can always use "force unmount", with -f:

umount -f /mnt/nfsmount

With windows mount, you can use "lazy" unmount:

umount -l /mnt/cifsmount

From the man pages:

Lazy unmount. Detach the filesystem from the filesystem  hierarchy now, and cleanup all references to the filesystem as soon as it is not busy anymore. (Requires kernel 2.4.11 or later.)"

Comments (1)
umount
1 Monday, 04 July 2011 06:51
Dave
This is what I was looking for. I've tried -f in the past and it didn't work.

Add your comment

Your name:
Subject:
Comment:
  The word for verification. Lowercase letters only with no spaces.
Word verification:
yvComment v.1.24.0
   
Copyright © 1999 - 2019 Virtual Helpme | Trusted IT Services | Original Template: Allrounder