1

I'm trying to mount a cifs share using:

sudo mount \
    -t cifs \
    -o credentials=$HOME/.smbcredentials \
    //server.example.com/Common/Share/Path /mnt/mountpoint

Which fails with:

Retrying with upper case share name
mount error(6): No such device or address
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

Watching /var/log/syslog shows that there is some sort of dns problem:

Jun  4 18:06:12 laptop key.dns_resolver: DFSAPP03: No address associated with name
Jun  4 18:06:12 laptop kernel: [ 1807.650756] CIFS VFS: cifs_mount failed w/return code = -6

Does anybody know what the return code -6 means, or how I might go about debugging this problem?

1

Ok, it turns out that the problem was with the DNS resolution of the file server. It was trying to resolve the hostname "DFSAPP03" and failing. In my case the problem was fixed by using a different server address. The error:

cifs_mount failed w/return code = -6

Probably indicates that while the authentication steps are all OK, these is a problem with actually finding the share on the network.

0

The directory on the remote computer needs to be shared, so that the host computer can access it. This is most easily done by using Nautilus file manager. You might have to install Nautilus if it is not your default file manager. On the remote computer, in Nautilus, right click on the directory you want to mount remotely. Select Properties. In the dialog window, select the checkbox "Share this folder." You can also check if you want other users to be able to write to this folder. Select the "Create Share" button (or "Modify Share" if it is already created). Now you should be able to mount this directory (or share) remotely.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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