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.

I am trying to mount a smb share on my embedded Linux running on ARM (3.6.9) with busybox 1.21

mount -t cifs //192.168.0.12/mydata /mnt/myData 

results in an invalid argument error:

mount: mounting /192.168.0.12/mydata/ on /mnt/myData failed: Invalid argument

CIFS support is definetly installed and the directories exist. Is there any syntax difference in busybox's mount command? Thank in advance!

share|improve this question
    
Can you please give the exact error message? And where is the user option mentioned in the question title in your command? Oh, and where do you give the username/password for this share? –  mpy Jun 24 '13 at 7:12
    
Sorry, I messed up. Wrote the title when I still had a different error message. –  tzippy Jun 24 '13 at 7:16
    
With busybox v1.1.3 this command succeeds: mount -t cifs //192.168.1.11/Files /mnt/files -o username=windows_user,password=windows_pwd, so obviously no general problem. Does the mount command with increased verbosity -vvv give some more hints? –  mpy Jun 24 '13 at 19:16
    
Just double checking that CIFS support is installed, does the file /sbin/mount.cifs exist? –  Cristian Ciupitu Jun 29 at 0:08

1 Answer 1

The clue is in the output:

mount: mounting /192.168.0.12/mydata/ on /mnt/myData failed: Invalid argument

Shares are not referenced starting with a single /.

For CIFS shares you need to use backslashes. You then need to double up these to escape them, otherwise the shell thinks they have a special meaning.

Try:

mount -t cifs \\\\192.168.0.12\\mydata /mnt/myData
share|improve this answer

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.