mount -t smbfs fails with unhelpful error message if smbfs not installed

Bug #31523 reported by Adam Buchbinder on 2006-02-15
Affects Status Importance Assigned to Milestone
util-linux (Ubuntu)
LaMont Jones

Bug Description

Without smbfs installed, attempting to mount an SMB share gives this result:

$ sudo mount -t smbfs //servername/share /mnt -o username=user,ip=serverip
mount: wrong fs type, bad option, bad superblock on //servername/share,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail or so

dmesg|tail reveals the message:

smbfs: mount_data version 1919251317 is not supported

This was fixed by installing the smbfs package, but the printed errors were not at all helpful in diagnosing the problem. mount should be able to tell that there is no handler available for the type 'smbfs', and report that fact to the user.

Matt Zimmerman (mdz) wrote :

Rejecting unnecessary Ubuntu task; don't worry, the bug is still open

Changed in util-linux:
status: Unconfirmed → Confirmed
Simon Edwards (simon-simonzone) wrote :

/proc/filesystems shows that smbfs is available even when smbfs is not installed. This makes it hard for GUI tools like the mount editor in kde-guidance to accurately report to the user which filesystems are available and to avoid confusing problems like the one reported here.

smbfs should not be listed in /proc/filesystems if it will not work.

João Pinto (joaopinto) wrote :

Just to note that this bug is still present on Ubuntu 6.06 .

amichair (amichai2) wrote :

And on Edgy too.

Changed in util-linux:
importance: Low → Medium
Anders Einar Hilden (kagee) wrote :

And on Feisty too.

Dave Suffling (dsufflin) wrote :

And on Gutsy, too.

Changed in util-linux:
importance: Medium → Low
status: Confirmed → Triaged
LaMont Jones (lamont) wrote :

The bug is scheduled to be fixed in 2.13.1 from upstream, as well as 2.14. That should be in hardy.

Changed in util-linux:
assignee: nobody → lamont
status: Triaged → In Progress
LaMont Jones (lamont) wrote :

Fixed in 2.13-13ubuntu1

Changed in util-linux:
status: In Progress → Fix Released
Michal Suchanek (hramrach) wrote :

How is this fixed in Hardy?

There are still unhelpful messages about wrong filesystem and obscure dmesg messages in Hardy..Jaunty.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers