Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

share|improve this question

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

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

    
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

1 Answer 1

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.

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

Your Answer

 
discard

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.