Trying to mount a smb share in Ubuntu 10.10 just fails :(.

I have used the following command:

sudo mount -t cifs //share /mnt/smb/

Looking inside kernel error messages I can see this:

[11502.143801] CIFS VFS: cifs_mount failed w/return code = -22

link|improve this question
I have the feeling that I have used the wrong site :D. Can someone migrate this to superuser.com? – Daniel Băluţă Nov 21 '10 at 20:13
It will get migrated automatically as soon as it receives enough close votes – Paul R Nov 21 '10 at 21:17
feedback

migrated from stackoverflow.com Nov 21 '10 at 21:58

This question came from our site for professional and enthusiast programmers.

2 Answers

up vote 1 down vote accepted

Are you using the server name? You need to reference the share by IP address.

sudo mount -t cifs //192.168.1.1/SharedFolder /mnt/smb

If you want to use dns, you'll need to install mount.cifs which is included in the package cifs-utils.

link|improve this answer
thanks, that worked. – Daniel Băluţă Nov 22 '10 at 7:53
feedback

just swap your arguments: sudo mount -t cifs //share /mnt/smb/

link|improve this answer
ok sorry. I have mistyped the arguments when asking the question. The command was properly typed inside the console. – Daniel Băluţă Nov 21 '10 at 20:23
feedback

Your Answer

 
or
required, but never shown

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