LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

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

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


Hello.

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:

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

dmesg:

Code:
[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:

Code:
# MOVIES
\\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:

Code:
[movies]
        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 04:43 PM.
 
Old 04-03-2007, 03:46 PM   #2
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
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, 04:42 PM   #3
Benanzo
Member
 
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, 08:30 AM   #4
InternetBummer
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..

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

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


Reply


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 07:06 AM
umount hangs on my ipod after writing data icpsvt Linux - Hardware 2 01-05-2006 12:42 AM
unmounting cifs hangs.. brainlesspinkey Linux - Software 0 04-18-2005 12:47 AM
can't install new kernels! umount hangs randum9 Fedora 3 01-27-2004 07:19 PM
can't install new kernels! umount hangs randum9 Linux - Software 2 01-27-2004 04:01 PM


All times are GMT -5. The time now is 08:34 AM.

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