Re: mount/smbmount

Michael H. Warfield (mhw@alcove.wittsend.com)
Thu, 23 Jul 1998 09:55:49 -0400 (EDT)


David Howells enscribed thusly:
> Can someone tell me where to get appropriate versions of mount/smbmount for
> linux 2.1.108?

You can get the latest smbmount/smbumount from the samba package
itself...

http://samba.anu.edu.au

I'm currently having some problems with it and 2.1.110. Some
accounts and passwords that use to work no longer work and even when they
do work the mount fails with an "invalid parameter" to the mount function
in smbmnt (which was called from smbmount). I'm still investigating what
got broken in that. It had been working under 2.1.107.

One other gotcha... Due to syntax change from the smbmount in the
smbfs package and used with the 2.0.x kernels to the smbmount in the samba
package and used with the 2.1.x kernels, autofs is broken all to hell and
back again if you are trying to automount smbfs mounts. The syntax change
is very VERY ugly since there are some parameters which don't map cleanly
and other parameters end up mapped into a string parameter!

Example under 2.0.x is:

smbmount //remote/dir /local/dir -U username -P "password" -n -u userid
-g groupid

Under 2.1.x this becomes:

smbmount //remote/dir "password" -N -U username -c "mount /local/dir
-U userid -G groupid"

Note that there is no "-P" before the password (and the password
parameter is now positional behind the remote resource - ugh!) and the
mount point, user id, and group id have all been subsumed under a mount
command single string parameter.

Fixing the automount daemon for this is going to be ugly at best (and
will still break backward compatibility with the 2.0.x kernels). It's a real
"damned if you do damned, if you don't" situation with regard to autofs.

I have a shell script which can be substituted for smbmount and
appropriately call smbmount.smbfs or smbmount.samba with appropriate
parameter translations from the 2.0.x syntax and works with autofs. This
allows some of us with multiple boots between 2.0 and 2.1 to maintain
autofs mounts in either direction and gets autofs under 2.1 to cooperate
with the smbmount from the samba package.

You can get the shell script from my web site at:

http://www.wittsend.com/mhw/smbmount.html

Obviously, if you don't use the translation script and you are use
to using the old smbfs version of smbmount, you need to look over the
syntax for the samba version carefully and correct your usage or any other
shell scripts accordingly!

> I have mount v2.8 and smbmount 2.0.2 installed, but get the following messages
> from the kernel:

> nfs warning: mount version older than kernel
> SMBFS: need mount version 6

I have mount version 2.5l (that's 2.5(ell)) on a RedHat 4.1/4.2
systems and 2.7l (again 2.7(ell)) on a RedHat 5.1 systems. Both of those
work fine.

The version of smbmount I have running is "Version 1.9.19-prealpha"
(checked out directly from the samba cvs repository) but you don't have to
have something quite that bleeding edge to work.

> Thanks,
> David Howells

Mike

-- 
 Michael H. Warfield    |  (770) 985-6132   |  mhw@WittsEnd.com
  (The Mad Wizard)      |  (770) 925-8248   |  http://www.wittsend.com/mhw/
  NIC whois:  MHW9      |  An optimist believes we live in the best of all
 PGP Key: 0xDF1DD471    |  possible worlds.  A pessimist is sure of it!

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html