Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 04-03-2007, 04:32 PM   #1
Registered: Sep 2005
Location: Seattle
Distribution: Ubuntu, Debian flavors
Posts: 119

Rep: Reputation: 15
samba CIFS umount hangs if disconnecting network


I have two samba shares that I mount with cifs in fstab. I connect to them over my wireless network at home. If I take my laptop elsewhere and connect to a different network without first umounting those shares while still connected to their network they refuse to umount. Nautilus hangs when I try to browse my home directory.

I have tried doing:

sudo umount -f /media/movies
sudo umount -l /media/movies
but neither makes any difference. Both just hang for a long time.


[42835.776000]  CIFS VFS: Error 0xffffff90 on cifs_get_inode_info in lookup of /TV_Shows
TV_Shows is a subdirectory in /media/movies, which is the share that is mounted.

my fstab entry:

\\dora\movies /media/movies cifs user,password=(password),uid=1000,gid=1000,use
rname=ben,dir_mode=0777,file_mode=0777 0 0

samba share entry:

        path = /home/ben/network/dora/movies
        comment = Shared Movies
        public = yes
        writable = yes
        readonly = no
        force create mode = 0660
        force directory mode = 0770
        force group = +ben
        force user = ben
        inherit permissions = yes
        create mask = 0770
        directory mask = 0770
        available = yes
        browsable = yes

Any help would be great. Thanks!

Last edited by Benanzo; 04-03-2007 at 05:43 PM.
Old 04-03-2007, 04:46 PM   #2
LQ Guru
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
Yes, this happens to me with basically every system I use Samba on. If I lose network connectivity, I am unable to unmount the share and the system will behave very erratically if I try to do anything which would pull information from that mount point (find disk usage on system, open a file manager, etc).

Unfortunately, I have gotten the impression that this is unavoidable. But hopefully somebody knows a trick to get around it?
Old 04-03-2007, 05:42 PM   #3
Registered: Sep 2005
Location: Seattle
Distribution: Ubuntu, Debian flavors
Posts: 119

Original Poster
Rep: Reputation: 15
If I use smbfs instead of cifs I can umount them with sudo umount -l /media/movies.

But unless I do the lazy umount it still hangs everything. CIFS doesn't care what I do.
Old 04-13-2007, 09:30 AM   #4
LQ Newbie
Registered: Dec 2005
Location: Detroit, MI
Distribution: Fedora Core 4
Posts: 1

Rep: Reputation: 0
First, use lsof to see if there is anything using that share, then take the appropriate action.

For example, I had a box that was disconnected, so my load average was messed up. Here's what I did..

lsof | grep boxname | less
This gave me a line that said something like:

bash 19370 myname mem REG 3,1  8330  394003 /mnt/boxname
Then, opening top, typing k to bring up the kill interface, typing in 19370 (the PID) and then selecting a kill signal of 9 solved my problem. I was then able to
umount /mnt/boxname
since nothing was requesting it.

Yes, you could kill it right from the command line, but it's more satisfying to watch it disappear.... :-)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba disconnecting Network Shares shawnbishop Linux - Software 3 08-24-2006 08:06 AM
umount hangs on my ipod after writing data icpsvt Linux - Hardware 2 01-05-2006 01:42 AM
unmounting cifs hangs.. brainlesspinkey Linux - Software 0 04-18-2005 01:47 AM
can't install new kernels! umount hangs randum9 Fedora 3 01-27-2004 08:19 PM
can't install new kernels! umount hangs randum9 Linux - Software 2 01-27-2004 05:01 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:10 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration