What's new

Mounting Samba share

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

gatorback

Regular Contributor
Goal: mount a Samba share to /mnt/hub of RT-AC68U on Merlin 378.55

Samba share was successfully accessed via Win7 by either:

\\192.168.8.213\WDTVLiveHub
\\LIVEHUBDOT\WDTVLiveHub

Attempts at router command-line:
user@HOST:/tmp/home/root# mkdir /mnt/hub
user@HOST:/tmp/home/root# mount -t CIFS //Livehubdot/WDTVLiveHub /mnt/hub
mount: mounting //Livehubdot/WDTVLiveHub on /mnt/hub failed: No such device
user@HOST:/tmp/home/root# mount -t CIFS //192.168.8.213/WDTVLiveHub /mnt/hub
mount: mounting //192.168.8.213/WDTVLiveHub on /mnt/hub failed: No such device

Do I need to download (ipkg) a newer version of mount or is there something in the syntax above to be corrected? Actionable suggestions are appreciated. Thank you
 
The correct syntax is documented in the README.
 
@RMerlin: thank you for pointing me in the right direction. I did find:



and on line 329 there is an example:

mount \\\\192.168.1.100\\ShareName /cifs1 -t cifs -o "username=User,password=Pass"
I made an attempt but was not successful:

user@HOST:/tmp/home/root# mkdir /mnt/hub
user@HOST:/tmp/home/root# mount \\Livehubdot\WDTVLiveHub on /mnt/hub failed: Invalid argument

The Samba share does not require a PW, so I reasoned this option was not necessary. However, given the above failure, I tried adding the username and pw option:

mount \\\\Livehubdot\\WDTVLiveHub /mnt/hub -t cifs -o "username=anonymous,password=Pass"

This attempt was successful. I thought that the need for double slashes was interesting and had not seen this in the examples that I had Google-ed and the syntax (order) was very different. Again, thanks for the nudge! :)
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top