You are not logged in.

#1 2016-11-21 14:07:00

olive
Member
From: Belgium
Registered: 2008-06-22
Posts: 1,490

Force unmount of dead cifs share.

I face a problem with cifs shares. If the remote server does not respond (for example because I have powered off the remote Windows machine), any access to the share hangs and the umount command hang too. I have not found a solution to force unmounting the share. There is well a "-f" option to the umount command but it is documented to work for nfs, it does not seem to have an effect on cifs. Even the "lazy unmount" option ("-l") does not seem to work.

The problem is so weird that even if I try to reboot or power off te machine, it hangs. The only "solution" I have found is to do an unclean hard reset of the system...

Last edited by olive (2016-11-21 14:08:40)

Offline

#2 2016-11-26 10:51:58

NoSuck
Member
Registered: 2015-03-04
Posts: 157
Website

Re: Force unmount of dead cifs share.

There is well a "-f" option to the umount command but it is documented to work for nfs, it does not seem to have an effect on cifs.

That sounds funny.  I frequently used -f to unmount CIFS in precisely the manner you describe.  I supplied username, password, gid, and uid options when mounting.  I no longer have access to the CIFS, so I cannot test.

Offline

Board footer

Powered by FluxBB