What's new
  • 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!

Can't mount subdirectory in a cifs share

gds

Occasional Visitor
While porting a backup script to the router and trying to mount a windows share on rt-ac56u (380.57) I discovered that I can't mount a subdirectory of the share like I could on desktop linux. For example, for host HH if my share is called SS and the directory at the root of the share is called SD this fails on the router:
Code:
mount //HH/SS/SD /cifs1 -t cifs -o username=uuuu,password=pppp
mount: mounting //HH/SS/SD on /cifs1 failed: No such device or address
Maybe this is due to older kernel or smb client code? Anyhow, my workaround is to just mount the whole share:
Code:
mount //HH/SS /cifs1 -t cifs -o username=uuuu,password=pppp
Don't see any mention in changelog or git history log that latest version, 380.61, affects this.
 
Last edited:
Have you tried using double backslashes and quotes as described in the wiki (this used to be in the README)?

https://github.com/RMerl/asuswrt-merlin/wiki/Mounting-remote-CIFS-shares
Yes, I tried that but it didn't help for mounting a share's subdirectory. I think "modern" windows (NT 3.x or later?) generally accepts normal unix style forward slashes so the escaped backslashes aren't really necessary. At least I've never had to use them when doing cifs mounts in desktop distros of gnu/Linux.
 
Similar threads
Thread starter Title Forum Replies Date
C How to make dnsmasq startup wait for USB mount? Asuswrt-Merlin 4

Similar 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!
Back
Top