Serving ROMs from a NAS

This process requires access to the Lakka commandline and is also only recommended for those comfortable working in a Linux shell environment.

Mounting a Windows/CIFS/Samba share

Create the mount point folder:

mkdir /storage/roms/nas

Create the mount unit:

nano /storage/.config/system.d/storage-roms-nas.mount 

Save and exit: CTRL+O then Enter to save, then CTRL+X to exit

Add this content, replacing placeholders with your IP, username and password information:

[Unit]
Description=cifs mount script
Requires=network-online.service
After=network-online.service
Before=retroarch.service

[Mount]
What=//192.168.0.31/roms
Where=/storage/roms/nas
Options=username=myusername,password=mypassword,rw
Type=cifs

[Install]
WantedBy=multi-user.target

Enable and start the service:

systemctl enable storage-roms-nas.mount
systemctl start storage-roms-nas.mount

If the mount was successful, the volume will be mounted automatically from now on at boot.

Mounting an NFS share

NFS works exactly the same, except you have to use:

Type=nfs