lkml.org 
[lkml]   [1998]   [Nov]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Samba mounts?
Date
Paul Tomblin enscribed thusly:
> Forgive me for asking such a newbie question, but I couldn't find anything in
> Documentation/Changes.txt and Documentation/filesystem/smbfs.txt

> I have a RedHat 5.2 Intel machine, and booted with a 2.1.128. Although I have
> all the programs Changes.txt says I need, I can't seem to mount an SMB volume
> from an NT server. When I do, in /var/log/messages I see the message
> SMBFS: need mount version 6
> Well, I have the smbfs-2.0.1 rpm, and samba-1.9.18p10-3 rpm, and mount version
> 2.8a. What do I have to do to get mount version 6?

With all kernels > 2.1.70 you need the smbmount program from samba.
The smbmount program from smbfs no longer works with newer kernels. That
message needs to be changed to something more sensible.
> Just for the hell of it, I changed SMB_MOUNT_VERSION to 5 in smb_mount.h, and
> recompiled and rebooted, but now when I try to mount the smbmount it appears
> to succeed, but then I get
> smb_retry: no connection process
> seconds later.

Bad bad bad... Put that back the way it was.

> Thank you for not flaming the hell out of me - I used to follow bleeding edge
> kernels (0.99pl14a-?, for example) but I haven't for a while.

First, you need the smbmount from samba (plus smbmnt and smbunmount).

Second, you are going to need the one from 2.0beta since the one
in 1.9.18 will not compile on glibc platforms.

Third, Samba 2.x now uses autoconf, configure samba with the
--with-smbmount option and then build and install the package. I would
also patch samba with the RedHat packaging patch so it matches your
samba install from the rpm's (makefile patch). You may also want to do
the smbwrapper patch as well (try playing with smbwrapper - you may
find you like it better than smbfs).

If the samba 2.x sources are in /usr/src/samba do this:

cd /usr/src/samba/source/
patch -p2 < ../packaging/RedHat/makefile-path.patch
patch -p2 < ../packaging/RedHat/smbw.patch
./configure --prefix=/usr --with-smbmount
make
make install

Finally, look over the command syntax very carefully. It's different
from the older smbfs version of smbmount.

> --
> "Linux's homebase is currently commodity network and server infrastructure. By
> folding extended functionality ... into today's commodity services, we raise
> the bar & change the rules of the game."
> - Microsoft leaks their strategy for monopolizing the Internet and the desktop.

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.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:45    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site