SMB problem: mounting a share on gutsy

D. R. Evans doc.evans at gmail.com
Mon Dec 3 22:19:40 UTC 2007


I have used the same configuration for years to mount an XP share on my
Linux boxes.

The following has always worked (including on dapper), but it fails on gutsy.

Can someone suggest what I need to change?

----

In /etc/fstab:

//hpxp/c   /hpxp/c  smbfs defaults,user,auto,bg,guest,uid=n7dr 0 0

Then I try to mount the filesystem with a simple:

mount /hpxp/c

instead of the filesystem being mounted, what I get now is:

----

[H:~] mount /hpxp/c
Usage: mount.smbfs service mountpoint [-n] [-o options,...]
Version 3.0.26a

Please be aware that smbfs is deprecated in favor of cifs

Options:
      username=<arg>                  SMB username
      password=<arg>                  SMB password
      credentials=<filename>          file with username/password
      krb                             use kerberos (active directory)
      netbiosname=<arg>               source NetBIOS name
      uid=<arg>                       mount uid or username
      gid=<arg>                       mount gid or groupname
      port=<arg>                      remote SMB port number
      fmask=<arg>                     file umask
      dmask=<arg>                     directory umask
      debug=<arg>                     debug level
      ip=<arg>                        destination host or IP address
      workgroup=<arg>                 workgroup on destination
      sockopt=<arg>                   TCP socket options
      scope=<arg>                     NetBIOS scope
      iocharset=<arg>                 Linux charset (iso8859-1, utf8)
      codepage=<arg>                  server codepage (cp850)
      unicode                         use unicode when communicating with
server
      lfs                             large file system support
      ttl=<arg>                       dircache time to live
      guest                           don't prompt for a password
      ro                              mount read-only
      rw                              mount read-write

This command is designed to be run from within /bin/mount by giving
the option '-t smbfs'. For example:
  mount -t smbfs -o username=tridge,password=foobar //fjall/test /data/test

----

I tried the explicit command it suggests (as superuser, in case that was
the problem):

----

[H:~] sudo mount -t smbfs -o username=n7dr //hpxp/c /hpxp/c
Usage: mount.smbfs service mountpoint [-n] [-o options,...]
Version 3.0.26a

Please be aware that smbfs is deprecated in favor of cifs

Options:
      username=<arg>                  SMB username
      password=<arg>                  SMB password
      credentials=<filename>          file with username/password
      krb                             use kerberos (active directory)
      netbiosname=<arg>               source NetBIOS name
      uid=<arg>                       mount uid or username
      gid=<arg>                       mount gid or groupname
      port=<arg>                      remote SMB port number
      fmask=<arg>                     file umask
      dmask=<arg>                     directory umask
      debug=<arg>                     debug level
      ip=<arg>                        destination host or IP address
      workgroup=<arg>                 workgroup on destination
      sockopt=<arg>                   TCP socket options
      scope=<arg>                     NetBIOS scope
      iocharset=<arg>                 Linux charset (iso8859-1, utf8)
      codepage=<arg>                  server codepage (cp850)
      unicode                         use unicode when communicating with
server
      lfs                             large file system support
      ttl=<arg>                       dircache time to live
      guest                           don't prompt for a password
      ro                              mount read-only
      rw                              mount read-write

This command is designed to be run from within /bin/mount by giving
the option '-t smbfs'. For example:
  mount -t smbfs -o username=tridge,password=foobar //fjall/test /data/test
[H:~]

----

I also tried various other things (including replacing "smbfs" with "cifs"
in /etc/fstab), but nothing worked.

Any ideas, anyone? Googling for a bit didn't turn up anything obvious.

  Doc





More information about the kubuntu-users mailing list