[Solved] Mount cifs share via luci?

I have a little script that backs up my config and installed packages to a network share on my nas.
I got this working by installing kmod-fs-cifs and adding the correct entry in /etc/fstab. However after restoring a backup this entry is not saved, I thought it would be nice if this would be possible.
The openwrt site about cifs client: https://wiki.openwrt.org/doc/howto/cifs.client
states that ....cifs mount is not compatible with luci....
In luci there's this mount point section, I haven't looked in it but I guess it's for attached devices only.

However I found a github repo which is, so i think, offering the possibility to mount a cifs network share via luci:

..Or is it sth totally different. The author is always writing about nat drive....
And there's a section "NatPath" to fill out which links to the mounpoint config page in luci.
I don't know what I would fill in there... Does anyone have a clue?

Just a follow up:
I ditched a luci approach and successfully mounted my cifs share (also works with nfs) via a hotplug script:


1 Like

Another way is to add these to /etc/fstab all in one line

//serverIP/Sharepoint /mnt/yourmountpoint cifs user=smbuserforshare,password=passwdforshare,file_mode=0777,dir_mode=0777,unc=\\\\server IP\\Sharepoint,vers=1.0 0 0

or this command at the command line:

mount -t cifs //serverIP/sharepoint /mnt/mountpoint -o user=smbuserforshare,password=passwordforshare,file_mode=0777,dir_mode=0777,unc=\\\\serverIP\\sharepoint,vers=1.0

Hope that info is useful for somebody

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.