[Pkg-samba-maint] Bug#589218: cifs-utils: "mount -a" mounts cifs shares multiple times (+1 time for each call of "mount -a")

Joerg joerg at schuetter.org
Thu Jul 15 20:17:53 UTC 2010

Package: cifs-utils
Version: 2:4.5-2
Severity: normal

With every call of "mount -a" (which is trigered by /etc/network/if-up.d/mountnfs)
all cifs shares are mounted again.
On a fresh booted system "mount" returns
/dev/sda1 on / type ext3 (rw,noatime,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/sda3 on /home type ext4 (rw,noatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
//mars.my.local.net/bu_joerg/ on /backup type cifs (rw,mand,noexec)
//mars.my.local.net/GC/ on /home/GC type cifs (rw,mand,noexec)
//mars.my.local.net/bu_joerg/ on /backup type cifs (rw,mand,noexec)
//mars.my.local.net/GC/ on /home/GC type cifs (rw,mand,noexec)
//mars.my.local.net/bu_joerg/ on /backup type cifs (rw,mand,noexec)
//mars.my.local.net/GC/ on /home/GC type cifs (rw,mand,noexec)
//mars.my.local.net/bu_joerg/ on /backup type cifs (rw,mand,noexec)
//mars.my.local.net/GC/ on /home/GC type cifs (rw,mand,noexec)

grep cifs /etc/fstab
mars.my.local.net:GC    /home/GC        cifs    _netdev,nodiratime,noexec,rw,nounix,\
  nosfu,noserverino,uid=joerg,gid=joerg,ip=,password=xxxxxxx 0       0
mars.my.local.net:bu_joerg      /backup cifs    _netdev,nodiratime,noexec,rw,nounix,\
  nosfu,noserverino,uid=joerg,gid=joerg,ip=,password=xxxxxxxx        0       0

This bug seems to be related to 586009 (mount.cifs appends trailing slash to share
name in mtab, prevents user unmounts)

If I change fstab (as suggested in 586009) to
instead of
then "mount -a" will not mount the share several times.

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-xen-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages cifs-utils depends on:
ii  libc6                     2.11.2-2       Embedded GNU C Library: Shared lib
ii  libcap2                   1:2.17-2       support for getting/setting POSIX.
ii  libkeyutils1              1.4-1          Linux Key Management Utilities (li
ii  libkrb5-3                 1.8.1+dfsg-5   MIT Kerberos runtime libraries
ii  libtalloc2                2.0.1-1        hierarchical pool based memory all
ii  samba-common              2:3.4.8~dfsg-2 common files used by both the Samb

cifs-utils recommends no packages.

Versions of packages cifs-utils suggests:
pn  smbclient                     <none>     (no description available)

-- no debconf information

More information about the Pkg-samba-maint mailing list