Bug 4762 - smbmount missing from samba-client rpm package
smbmount missing from samba-client rpm package
Product: Samba 3.0
Classification: Unclassified
Component: Client Tools
x86 Linux
: P3 major
: none
Assigned To: Lars Müller
Samba QA Contact
Depends on:
  Show dependency treegraph
Reported: 2007-07-03 20:33 UTC by Paul Abrahams
Modified: 2007-07-05 06:49 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Paul Abrahams 2007-07-03 20:33:28 UTC
The package samba-client-3.0.23d-19.2 for OpenSuSE has the following in its description:

This package contains all programs that are needed to act as a Samba client. This includes smbmount.

However, it does not include smbmount.  The relevant segment of the file list is:


With this package installed, "which smbmount" does not yield anything.

What's worse, even though smbfs is available as a module:

suillus:~ # lsmod | grep smbfs
smbfs                  68344  0

an attempt to mount a Samba share using mount -t smbfs fails:

suillus:~ # mount -t smbfs //hpmediavault/FileShare /mediavault
mount: wrong fs type, bad option, bad superblock on //hpmediavault/FileShare,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

The directory //hpmediavault/FileShare is, however, accessible from the Konqueror browser using the smb: protocol.
Comment 1 Paul Abrahams 2007-07-03 20:38:51 UTC
This problem cropped up after I updated my system using Yast's online update yesterday, 07/02/07.  Prior to the update, smbmount was installed and working.  I had to reconfigure and recompile the kernel to make smbfs available.  My kernel version is:

  Linux suillus #1 SMP Tue Jul 3 18:38:46 EDT 2007 i686 athlon i386 GNU/Linux
Comment 2 Gerald (Jerry) Carter 2007-07-03 20:50:56 UTC
This is not a Samba.org problem.  Handing off to Lars.
Comment 3 Paul Abrahams 2007-07-03 23:04:29 UTC
I just found the same problem (no smbmount) under Kubuntu Feisty Fawn, so it's not just an OpenSuSE phenomenon.
Comment 4 Lars Müller 2007-07-04 09:23:49 UTC
Paul: This is openSUSE 10.2.  The kernel people had been to fast for us and removed the smbfs kernel module after a discussion.  But samba-client still had the binary.

With the last security update to Samba we ensured to remove even the user space tools.

With the next version even the RPM package description of samba-client is fixed and doesn't mention smbmount anymore.

Sorry for this bad news.
Comment 5 Paul Abrahams 2007-07-04 10:57:15 UTC
(In reply to comment #4)

If mount.cifs was a drop-in replacement for mount.smbfs, smbmount would not be much missed.  The problem now is that smbmount has functionality that does not seem to be available using cifs.  If I could mount a Samba share using cifs I would be happy, but I cannot:

root@lepiota:~# mount -t cifs //hpmediavault/FileShare /mediavault
mount: wrong fs type, bad option, bad superblock on //hpmediavault/FileShare,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

Since the smbfs module is installed, is there a way to put it to use until cifs is a complete replacement for it?
Comment 6 Lars Müller 2007-07-04 15:55:01 UTC
There is no smbfs kernel module in the openSUSE kernel package.  I've checked this for version as available from the SUSE 10.2 update tree.

Also mount -t cifs //server/share /mountpoint works for me on a 10.2 system.
Comment 7 Paul Abrahams 2007-07-04 17:55:21 UTC
(In reply to comment #6)

Apparently OpenSuSE is behind Kubuntu Feisty Fawn on this issue.  The cifs version in OpenSuSE doesn't like SMB names and nothing in the repositories I've found improves on that. You have to give it an IP address or a DNS hostname.  However "mount -t smbfs" works under Kubuntu and presumably just passes off the request to cifs, but "mount -t cifs" has the same error as under OpenSuSE.  To summarize:

mount -t smbfs works in Kubuntu but not in OpenSuSE
mount -t cifs works neither in Kubuntu nor in OpenSuSE (unless you give it an IP address rather than an SMB name).

Comment 8 Lars Müller 2007-07-05 06:49:03 UTC
Feisty Fawn ships smbfs as a kernel module.  Checked for version 2.6.20-16-generic.

The smbfs and cifs modules are two different versions.

And a mount -t cifs //server/share /mountpoint works on both openSUSE 10.2 and ubuntu Feisty Fawn.

Something in your setup - maybe name resolution - is broken.  This is not a Samba, SUSE, or Ubuntu bug.