smbfs: mount_data version 1919251317 is not supported

Linux howto's, compile information, information on whatever we learned on working with linux, MACOs and - of course - Products of the big evil....
Post Reply
User avatar
^rooker
Site Admin
Posts: 1483
Joined: Fri Aug 29, 2003 8:39 pm

smbfs: mount_data version 1919251317 is not supported

Post 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. :)
Jumping out of an airplane is not a basic instinct. Neither is breathing underwater. But put the two together and you're traveling through space!
User avatar
^rooker
Site Admin
Posts: 1483
Joined: Fri Aug 29, 2003 8:39 pm

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

Post 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. :(
Jumping out of an airplane is not a basic instinct. Neither is breathing underwater. But put the two together and you're traveling through space!
User avatar
^rooker
Site Admin
Posts: 1483
Joined: Fri Aug 29, 2003 8:39 pm

Fixed: resolve windows netbios names in fstab

Post 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.
Jumping out of an airplane is not a basic instinct. Neither is breathing underwater. But put the two together and you're traveling through space!
Post Reply