Unfortunately, SMBFS support was dropped for the official FC5 distribution. If you try to mount SMB shares that do not support CIFS (the successor to SMBFS), you may run into mount errors like this one:
mount error 20 = Not a directory
For this and other reasons, you might want to have SMBFS support (smbmnt, smbmount, smbumount and the kernel module smbfs.ko) back in FC5. The good news is that SMBFS support is still there - in the FC5 source rpms. I figured out how to build them, and here they are.
Have fun!
Download the binaries + install script here (~800 kByte).
The kernel module is for the original FC5 kernel version 2.6.15-1.2054_FC5.
Addendum 2006-12-11:
I got a mail on pre-built smbfs-enabled RPMs at samba.org. Find the message below.
Just unpack the archive and run the install.sh with root privileges.
If you do not run the standard FC5 kernel (2.6.15-1.2054_FC5) or if not all relevant packages (samba!) are installed, you might have to do some extra work.
You probably already know how to use smbmount; if not, look here or in the man pages that are inside the archive.
cd
su -c 'yum install fedora-rpmdevtools yum-utils' # root password required
fedora-buildrpmtree
yumdownloader --source samba
rpm -Uvh samba-3.0.21b-2.src.rpmThis command writes the RPM contents into ${HOME}/rpmbuild/SOURCES and ${HOME}/rpmbuild/SPECS, where ${HOME} is your home directory.
cd ~/rpmbuild/SPECS rpmbuild -bp --target $(uname -m) samba.specIn my case rpmbuild complained about missing rpm cups-devel, which I installed from the FC5 DVD (cups-1.1.23-30.2.i386.rpm) and ran the rpmbuild again.
cd ~/rpmbuild/BUILD/samba-3.0.21b/source
./configure --prefix='' --with-fhs --with-smbmount
make # see next paragraph
I was able to find smbmnt, smbmount and smbumount inside ${HOME}/rpmbuild/BUILD/samba-3.0.21b/source/bin
Addendum:
Later I thought I should be able to speed up the build process if I'd only build the targets I need. I found out that I could use the following command instead of the 'make' above:
make include/proto.h bin/smbmnt bin/smbmount bin/smbumount
Addendum 2006-11-27:
I got a mail on how to rebuild the samba RPMs so that they include the smbmount binaries. Find the message below.
cd
yumdownloader --source kernel # make sure you get the right version
rpm -Uvh kernel-2.6.15-1.2054_FC5.src.rpmThis command writes the RPM contents into ${HOME}/rpmbuild/SOURCES and ${HOME}/rpmbuild/SPECS, where ${HOME} is your home directory.
cd ~/rpmbuild/SPECS rpmbuild -bp --target $(uname -m) kernel-2.6.specThe kernel source tree is located in the ${HOME}/rpmbuild/BUILD/kernel-2.6.15/ directory.
cd ~/rpmbuild/BUILD/kernel-2.6.15/linux-2.6.15.i686/ cp ~/rpmbuild/SOURCES/kernel-2.6.15-i686.config .config
CONFIG_SMB_FS=mHere is my diff/patch for the .config file:
2914c2914,2915 < # CONFIG_SMB_FS is not set --- > CONFIG_SMB_FS=m > # CONFIG_SMB_NLS_DEFAULT is not set
make silentoldconfig make make SUBDIRS=~/rpmbuild/BUILD/kernel-2.6.15/linux-2.6.15.i686/fs/smbfs modulesNow I got smbfs.ko inside {HOME}/rpmbuild/BUILD/kernel-2.6.15/linux-2.6.15.i686/fs/smbfs
Addendum:
I tried to build this module without having to build the whole kernel first. I came up with the following solution:
make silentoldconfig make prepare scripts make SUBDIRS=~/rpmbuild/BUILD/kernel-2.6.15/linux-2.6.15.i686/fs/smbfs modules
On 2006-11-22, I received the following message from Travis Groth regarding rebuilding the samba RPM (I didn't try it):
Date: Mon, 27 Nov 2006 13:01:30 -0500
From: Travis Groth
To: TOA
Subject: Re: http://www-user.tu-chemnitz.de/~tott/FC5-smbfs-HOWTO.html
Glad to help. Actually, I realized you need to update the spec file as well to include the new binaries in the build. During the rebuild, it will tell you which files are missing.
Thanks, Travis
On 2006-12-11, I received the following message from Kurt Eichenberger regarding pre-built smbfs-enabled RPMs at samba.org (I didn't try that):
Date: Mon, 11 Dec 2006 17:07:38 -0500
From: Kurt Eichenberger
To: TOA
Subject: smbfs and FC5 - more info
Thank you for your article about how to add smbfs support back into FC5. It was very helpful to me. You may be interested to know that the samba
organization has pre-built binaries in RPM format for FC5 with support for smbfs. Located here.
http://us1.samba.org/samba/ftp/Binary_Packages/Fedora/RPMS/i386/core/5/
I removed the default FC5 samba, samba-common, and samba-client installation with rpm -e --nodeps and then installed the new RPMS after building the
new smbfs kernel module. worked like a charm.
I guess a lot of folks have been complaining.
Kind Regards,
Kurt Eichenberger
TOA, 2006-08-16, last edit 2006-12-12 -- you can send me email under t o a 7 d 6 (at) a r c o r . d e
Date: Wed, 22 Nov 2006 10:22:24 -0500
From: Travis Groth
To: TOA
Subject: http://www-user.tu-chemnitz.de/~tott/FC5-smbfs-HOWTO.html
Hi,
Considering you are one of the top results for "fedora smbmount fc5", I figured I'd throw you some better directions for rebuilding the RPM.
at step 5 -
CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -DLDAP_DEPRECATED" %configure \ --with-acl-support \ --with-automount \ --with-libsmbclient \ --with-mmap \ --with-smbmount \ --with-pam \ --with-pam_smbpass \ --with-quotas \ --with-syslog \ --with-utmp \ --with-vfs \ --without-smbwrapper \ --with-lockdir=/var/cache/samba \ --with-piddir=/var/run \ --with-mandir=%{_mandir} \ --with-privatedir=%{_sysconfdir}/samba \ --with-logfilebase=/var/log/samba \ --with-libdir=%{_libdir}/samba \ --with-configdir=%{_sysconfdir}/samba \ --with-swatdir=%{_datadir}/swat \ --with-shared-modules=idmap_ad,idmap_rid \That's it. Far less complex and "the right way".
Thanks, Travis