Page 1 of 1

smbfs: mount_data version 1919251317 is not supported

Posted: Fri Jun 04, 2010 1:39 pm
by ^rooker
[PROBLEM]
I wanted to mount a Samba share using an /etc/fstab entry. But after doing a "sudo mount ..." I got the following errormessage:
smbfs: mount_data version 1919251317 is not supported
(The system was running Kubuntu Hardy 8.04.1)

[SOLUTION]
Thanks to a
blog entry by Sébastian Wains, it was simply a matter of:

Code: Select all

sudo apt-get install smbfs
to fix it.

Long story short: If you're getting this error, you simply don't have the "smbfs" package installed. :)

mount error: could not find target server. TCP name <target>

Posted: Fri Jun 04, 2010 1:44 pm
by ^rooker
Unfortunately, name resolution for samba-fstab entries doesn't work as seamlessly as expected:
mount error: could not find target server. TCP name <target>/<share> not found
No ip address specified and hostname not found

Code: Select all

nmblookup <target>
returns the right IP address (where "<target>" is the name of the windows computer I'm trying to access), but mounting only works if I add a line to my /etc/hosts.

...Don't have time to figure out how to cleanly solve this, but I'll hopefully update this post when I do. Until then: add the <target>'s IP address to your /etc/hosts. :(

Fixed: resolve windows netbios names in fstab

Posted: Fri Jul 30, 2010 11:31 am
by ^rooker
[SOLUTION]
Thanks to a short post by "javiwwweb" on ubuntuforums.org, called "HOWTO: Resolve Netbios hostname system-wide", I've finally found a way to mount samba shares using fstab, with proper name resolution:

Edit the line starting with "hosts:" in the file "/etc/nsswitch.conf" to contain "wins":

Code: Select all

hosts:          files wins dns
(NOTE: order of the parameters does matter, because it defines in which order resolution techniques are used)

Now install "winbind":

Code: Select all

apt-get install winbind
UPDATE: On Debian 8 (Jessie) it's also necessary to install the "libnss-winbind" package:

Code: Select all

$ apt-get install libnss-winbind
Without this, it just always returns nothing or just "unknown host $HOSTNAME".

That's it.