Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to access my local data, which is exported as a samba share, as if I am a samba client. Basically, how do I correctly mount my own samba share? The following mount (device) parameters:


All result in "mount: special device <device> does not exist".

Other clients have no trouble connecting/mounting the share. gvfs/Nautilus mounting is also working just fine. Ubuntu 12.04 in use.

share|improve this question
To access a samba share, don't you need to preface it with "smb:"? As-in "smb://" – Aaron Oct 2 '12 at 14:20
up vote 1 down vote accepted

Thank you for the comments and answers. Looking at the issue with fresh eyes today, it appears to be a simple mount type (-t) option issue. All of the suggested device parameters, including //HOSTNAME/SHARE_NAME, are okay when used in the following mount command:
sudo mount -t cifs -o guest //LOCALHOST/SHARE_NAME //DIRECTORY/MOUNT_POINT
As for the device name variations - it seems best practice to use to refer to the host.

share|improve this answer

from console:

#mount -t smbfs -o username=username,"password=password" //  /mnt/tmp
share|improve this answer
I believe that CIFS protocol is the successor to the SMB protocol and that smbfs is now deprecated and unmaintained. Refer to mount.cifs – Dean Oct 3 '12 at 14:40

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.