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

Bug #31523 reported by Adam Buchbinder
24
Affects Status Importance Assigned to Milestone
Ubuntu
Invalid
Medium
Unassigned
util-linux (Ubuntu)
Fix Released
Low
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.

Revision history for this message
Matt Zimmerman (mdz) wrote :

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

Changed in util-linux:
status: Unconfirmed → Confirmed
Revision history for this message
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.

Revision history for this message
João Pinto (joaopinto) wrote :

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

Revision history for this message
amichair (amichai2) wrote :

And on Edgy too.

Changed in util-linux:
importance: Low → Medium
Revision history for this message
Anders Einar Hilden (kagee) wrote :

And on Feisty too.

Revision history for this message
Dave Suffling (dsufflin) wrote :

And on Gutsy, too.

Changed in util-linux:
importance: Medium → Low
status: Confirmed → Triaged
Revision history for this message
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
Revision history for this message
LaMont Jones (lamont) wrote :

Fixed in 2.13-13ubuntu1

Changed in util-linux:
status: In Progress → Fix Released
Revision history for this message
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  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.