[Samba] mount.cifs and Umlaut in share name

Günter Kukkukk linux at kukkukk.com
Tue Nov 23 20:22:03 MST 2010


Am Dienstag 23 November 2010, 14:39:56 schrieb Jeff Layton:
> On Tue, 23 Nov 2010 10:33:31 +0100
> Andreas Heinlein <aheinlein at gmx.com> wrote:
> 
> > Hello,
> > 
> > I need to mount a CIFS share (in the end via fstab, for now manually
> > from terminal) which has both a space and a german umlaut in its name. I
> > cannot get mount.cifs to mount it, it always complains it cannot find it.
> > 
> > I managed to get around the space problem in fstab with the \040 trick,
> > but I cannot find a way to correctly encode the umlaut. When looking at
> > the output of "mount.cifs --verbose '//server/Täst Freigabe' /mnt", it
> > looks like it is accessing the correct share, but it does not work.
> > 
> > I also got a hint here
> > (https://bugs.launchpad.net/ubuntu/+source/gnome-vfs/+bug/414865) to
> > pipe the share name through iconv, but "mount.cifs $(echo //server/Täst
> > Freigabe | iconv -t850) /mnt" also does not work.
> > 
> > What can I do? Changing the share name is currently not an option, there
> > are just too many users with links/bookmarks to it.
> > 
> > Thanks,
> > Andreas
> 
> Seems like something we ought to be able to fix. Could you open a bug
> at bugzilla.samba.org, cc me on it, and then post the output of
> "mount.cifs --verbose '//server/Täst Freigabe' /mnt" to it?
> 
> Thanks,
> 

I've exported the same "Täst Freigabe" share on a samba and a winxp box.
Here i don't have any problems to mount both of them using cifs - also "unix extensions"
on or off makes no difference.

Current test environment on the opensuse 11.3 client:
modinfo cifs
filename:       /lib/modules/2.6.34.7-0.5-default/kernel/fs/cifs/cifs.ko
version:        1.62
....

mount.cifs -V
mount.cifs version: 4.6
----------------

Andreas, can you please also post the outcome of
  - modinfo cifs
  - mount.cifs -V

What kind of smb server are you trying to connect to?
    smbclient -L <servername> -U <some_valid_user>
will tell like:
Domain=[DOMAIN01] OS=[Unix] Server=[Samba 3.6.0-GIT-097be4b-devel]

What locale settings are effective? Here e.g.
LC_CTYPE=de_DE.UTF-8

Cheers, Günter

In addition, a network trace might help, too.
http://wiki.samba.org/index.php/Capture_Packets


More information about the samba mailing list