OpenWRT and a SMB Share - GilesOrr.com
https://www.gilesorr.com/blog/samba-on-openwrt.html10.09.2018 · OpenWRT and a SMB Share. This is an outline of what I did to create a SMB share on an external hard drive attached to an OpenWRT router. This would also let you attach a USB storage device to your router without setting up Samba, or you could set up Samba without having external storage ... but to me it makes more sense to have the two together.
[OpenWrt Wiki] Fstab Configuration
https://openwrt.org/docs/guide-user/storage/fstab10.08.2021 · Fstab Configuration The Fstab, or file systems table, is a central configuration that defines how file systems (usually on block devices) should be mounted if requested (such as on booting the device or connecting it physically). This way, you don’t have to manually mount your devices when you want to access them. The mounting configuration can consist of static file …
[OpenWrt Wiki] CIFS Client
https://openwrt.org/docs/guide-user/services/nas/cifs.client04.03.2018 · // cifs-server / share / localfolder cifs credentials = / etc / samba_pswds_my_share,_netdev, uid =user, gid =group 0 0. where credentials file (chmod 0700) is formatted as username=shareuser password=sharepassword. If the cifsmount package is installed the mount.cifs can be used be instead of mount -t cifs. Check manpage of mount.cifs