If you want use your NAS with your MiSTer as much as you can, you can use the following template on your NAS.
If you don't have it already, you will also need to get
cifs_mount.sh (also cifs_unmount.sh) and edit it accordingly, based on your needs and circumstances. I recommend having a dedicated user for MiSTer to access share on your NAS.
Following is excerpt of how I run this script, to offload as much as I can off the microsd card and on to NAS.
Code: Select all
#Your CIFS Server, i.e. your NAS name or its IP address.
SERVER="192.168.XXX.XXX"
#The share name on the Server.
SHARE="name_of_share/folder/subfolder"
#The user name, leave blank for guest access.
USERNAME="mister"
#The user password, irrelevant (leave blank) for guest access.
PASSWORD="PASSWORD_HERE"
#Local directory/directories where the share will be mounted.
LOCAL_DIR="*"
#"true" in order to wait for the CIFS server to be reachable;
#useful when using this script at boot time.
WAIT_FOR_SERVER="true"
#"true" for automounting CIFS shares at boot time;
#it will create start/kill scripts in /etc/network/if-up.d and /etc/network/if-down.d.
MOUNT_AT_BOOT="true"
#========= ADVANCED OPTIONS =========
BASE_PATH="/media/fat"
#MISTER_CIFS_URL="https://github.com/MiSTer-devel/CIFS_MiSTer"
KERNEL_MODULES="md4.ko|md5.ko|des_generic.ko|fscache.ko|cifs.ko"
IFS="|"
SINGLE_CIFS_CONNECTION="true"
#Pipe "|" separated list of directories which will never be mounted when LOCAL_DIR="*"
SPECIAL_DIRECTORIES="config|linux|System Volume Information"
Same as default script, I also dont recommend having config,linux and System Volume Information on NAS.
What I've personally noticed, is that MiSTer seems to be a bit slow at initializing network [talking 3-9 seconds], so if you use things like last core boot, it might not always be reliable, depending on how fast will your MiSTer mount your shares. But as long as it's mounted(check for network icon to initialize), everything works very nicely, including update script[I only use the official one, you'll have to experiment with update_all on your own)