#663140 nautilus: CIFS mounted shares appear twice in tree-view pane

Package:
nautilus
Source:
nautilus
Description:
file manager and graphical shell for GNOME
Submitter:
Alexander Pohl
Date:
2014-07-22 17:27:04 UTC
Severity:
minor
#663140#5
Date:
2012-03-08 20:31:51 UTC
From:
To:
Hi,

CIFS mounted shares (from Samba 2:3.2.5-4lenny) appear twice in the nautilus
tree-view pane. One entry with a hard drive icon and the eject symbol next to
it is the correct one which opens the share when clicking. The other has a
floppy drive icon and gives the following error message:

"Unable to mount slug
mount: according to mtab, //slug/nfs/ is already mounted on /media/slug
mount failed"

The entry from fstab:

$ cat /etc/fstab
//slug/nfs      /media/slug     cifs    rw,sec=ntlmv2,user=nfs,password=xxx
0       0

Although this bug is only a cosmetic one, it still annoys me for some time now
as I keep clicking the wrong icon. I confirmed that exporting the share as nfs4
filesystem, only one icon appears. On previous Debian version, Debian Lenny,
the same CIFS share (with identical fstab entry) mounted with only one icon in
nautilus. hope this is the right package to file the bug under, but maybe it
really belongs to cifs-utils package instead?

Cheers,
Alexander

#663140#10
Date:
2012-05-04 07:32:33 UTC
From:
To:
Hi Alexander,

for me a trailing slash for the source did the trick, so you may try

$ cat /etc/fstab
//slug/nfs/ /media/slug cifs rw,sec=ntlmv2,user=nfs,password=xxx 0 0
#this one ^

As far as I got it, the mtab entry receives the slash automatically
while mounting, resulting in different entries in mtab and fstab. And
that causes further confusion, because the fstab entry can still be
mounted, resulting in multiple entries for the same source/directory
pair. I neither know if adding this slash while mounting is a bug, nor
which package is responsible. But I thought the slogan "It's not a bug,
it's a feature !" had a Microsoft copyright.

I am using the following options in fstab:

//host/share/ /mnt/point cifs noauto,user,credentials=/path-to/cred_file

where cred_file contains three lines (NO spaces around the "=" sign !):
username=<user>
password=<pw>
domain=<dom>

Without the "noauto" option the source gets mounted by root. The "user"
in the credentials file is ignored (another bug ?).
The "user" (or "users") option is necessary to display the unmounted
share in nautilus. The mounting happens at the first click.


I hope this was helpful.
Ulrich

#663140#15
Date:
2014-07-22 17:21:43 UTC
From:
To:
Hey,

this is an old bug.

Could you please still reproduce this issue with newer nautilus version
like 3.4.2-1+build1 or 3.12.2-1 ?

thanks
regards
Pedro