unable to unmount broken cifs mount

Bug #648609 reported by Jon Dowland
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
cifs-utils (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

Binary package hint: samba

I mount a CIFS share and from time to time the mount becomes invalid and cannot be unmounted. The utility complains that it can only unmount CIFS filesystems:

root@sobek:~# mount | grep jon/h
//tower3/home13/njd33 on /home/jon/h type cifs (rw,mand)
root@sobek:~# ls ~jon/h
ls: cannot access /home/jon/h: No such file or directory
root@sobek:~# df -h | grep -C1 jon/h
df: `/home/jon/h': No such file or directory
root@sobek:~# umount.cifs ~jon/h
This utility only unmounts cifs filesystems.
root@sobek:~# umount ~jon/h
This utility only unmounts cifs filesystems.
This utility only unmounts cifs filesystems.

The bizarre thing is, I can mkdir ~jon/h, and re-mount on top.

How on earth did my mount directory get removed, even with a mount on top? I have not done this intentionally myself.

root@sobek:/home/jon# mkdir h
root@sobek:/home/jon# mount h
Password:
root@sobek:/home/jon# mount | grep jon/h
//tower3/home13/njd33 on /home/jon/h type cifs (rw,mand)
//tower3/home13/njd33 on /home/jon/h type cifs (rw,mand,noexec,nosuid,nodev)

I normally try to mount this on login via libpam-mount (and the hung mount in the example above is one such mount, after a cold boot and single login). However I have seen the unmountable stuck filesystem occur even with a hand-made mount.

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: smbfs 2:3.4.7~dfsg-1ubuntu3.2
ProcVersionSignature: Ubuntu 2.6.32-24.43-generic-pae 2.6.32.15+drm33.5
Uname: Linux 2.6.32-24-generic-pae i686
Architecture: i386
CIFSMounts: Error: command ['mount', '|', 'grep', 'cifs'] failed with exit code 1: mount: only root can do that
Date: Mon Sep 27 09:20:02 2010
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
ProcEnviron:
 PATH=(custom, user)
 LANG=en_GB.utf8
 SHELL=/bin/bash
SambaClientRegression: No
SourcePackage: samba

Revision history for this message
Jon Dowland (jond) wrote :
Revision history for this message
Mathias Gug (mathiaz) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Could you attach the configuration and outline the steps used to mount the cifs share?

Changed in samba (Ubuntu):
importance: Undecided → Medium
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for samba (Ubuntu) because there has been no activity for 60 days.]

Changed in samba (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Jon Dowland (jond) wrote :

I mount by hand via "mount" with the following line in /etc/fstab

//tower3/home13/njd33 /home/jon/h cifs uid=1000,gid=1000,username=CAMPUS\njd33,user,noauto 0 0

Changed in samba (Ubuntu):
status: Expired → New
Jelmer Vernooij (jelmer)
affects: samba (Ubuntu) → cifs-utils (Ubuntu)
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in cifs-utils (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.