[Bug 427896] Re: Cannot unmount a windows network share.
ian.d.lacy at gmail.com
Mon Oct 19 15:37:53 BST 2009
lsof -p /home/name/mountpoint give me an illegal process name message
i tried lsof -d /home/name/mountpoint for the heck of it (not sure if thats
valid) and i get no output, the prompt just comes back up
sudo umount -l mntpt works! but i read into it and thats lazy umount. i
would perfer to do this the right way.
i have no related output in dmesg when i try to umount
the unmount command i'm currently using in my nautilus scripts is smbumount
and it tells me that it only un mounts cifs filesystems. However, I used its
opposite, smbmount to mount them in the first place. My system will
hibernate fine, but halts at shutdown.
On Fri, Oct 16, 2009 at 11:26 AM, Chuck Short
<chuck.short at canonical.com>wrote:
> Is there a process running that is preventing you from umounting the
> shares (lsof -p <mnt point>)?
> Can you try the following sudo umount -l <mnt point>?
> Also can you attach the output of dmesg when then is happening?
> Cannot unmount a windows network share.
> You received this bug notification because you are a direct subscriber
> of the bug.
> Status in “samba” package in Ubuntu: Incomplete
> Bug description:
> whether you use "smbmount", "mount.cifs", or "mount -t cifs" to mount a
> windows network share,
> you cannot unmount the network share.
> I have tried: "smbumount" , "umount.cifs" , and "umount -t cifs "
> many other people are having this problem and it seems that they all use
> the same program to unmount. That program always returns
> "This utility only unmounts cifs filesystems."
> even though the filesystem was mounted as "cifs"
> The only solution I have seen regarding this problem is that some fedora
> users reported that putting SELinux into permissive mode solves the problem.
> I'm not sure what SELinux does exactly, but if it is in the OS then it is
> probably there for a good reason. Therefore I would not like to keep it in
> permissive mode permanently. I am going to try this to see if it solves my
> problem too.
> If you can mount without being super user, you should also be able to
> unmount. Even if I use the raw "sudo umount -t cifs" it still returns the
> same thing.
> I imagine that the bug is in SELinux configuration. Its like they shut if
> off to not block "mount.cifs", but forgot to do the same for "umount.cifs"
> This is a major problem because after mounting the fs it cannot be
> unmounted, even by the system on shutdown. This error haults the shutdown,
> and I have to use the "press and hold the button" technique to shut off the
> I am using Ubuntu 9.04
> "Description: Ubuntu 9.04
> Release: 9.04"
Cannot unmount a windows network share.
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.
More information about the Ubuntu-server-bugs