Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| store_games_on_a_nas [2022/06/30 03:40] – table to make it easier to parse atari | store_games_on_a_nas [2024/01/29 20:17] (current) – instructions for mounting network-based /userdata folders that are dependent on an established VPN or Tailscale connection cs | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| Recommended watching: [[https:// | Recommended watching: [[https:// | ||
| + | |||
| + | <WRAP center round important> | ||
| + | Batocera repeatedly checks for a network connection on boot, and if none is present then it will automatically fall back to using internal storage. It is not possible to switch the location of your userdata without rebooting. If using NAS on a device which has a switch to turn on or off Wi-Fi, keep this fact in mind, as turning off the Wi-Fi will effectively wipe the userdata folder from Batocera' | ||
| + | |||
| + | In general, if using Batocera on a portable device it's not recommended to use a local NAS for its storage anyway due to the instability of its Wi-Fi. [[: | ||
| + | </ | ||
| ===== Syntax ===== | ===== Syntax ===== | ||
| Line 138: | Line 144: | ||
| sharenetwork_nfs2=SAVES@192.168.0.1:/ | sharenetwork_nfs2=SAVES@192.168.0.1:/ | ||
| sharenetwork_nfs3=BIOS@192.168.0.1:/ | sharenetwork_nfs3=BIOS@192.168.0.1:/ | ||
| + | </ | ||
| + | |||
| + | ===== Mounting network shares behind a VPN or Tailscale network ===== | ||
| + | === Background === | ||
| + | Mounting a shared folder on a server that requires a VPN or Tailscale connection to be established first is troublesome due to the Batocera boot initialization process. While Batocera does provide [[: | ||
| + | |||
| + | __Basic boot process flow:__\\ | ||
| + | 1. / | ||
| + | 2. / | ||
| + | 3. / | ||
| + | 4. / | ||
| + | 5. / | ||
| + | |||
| + | From the above, we can see that the VPN/ | ||
| + | |||
| + | === Workaround === | ||
| + | There is a [[: | ||
| + | |||
| + | First, setup and test the VPN/ | ||
| + | |||
| + | The final result of my configuration looks something like the below. Note that in my example, I am using Tailscale and mounting NFS folders, although this should be adaptable for any combination of VPN/ | ||
| + | < | ||
| + | sharedevice=NETWORK | ||
| + | sharenetwork_cmd1=eval if [ ! -d /dev/net ]; then mkdir -p /dev/net; mknod / | ||
| + | sharenetwork_nfs1=ROMS@100.0.0.1:/ | ||
| + | sharenetwork_nfs2=SAVES@100.0.0.1:/ | ||
| + | sharenetwork_nfs3=BIOS@100.0.0.1:/ | ||
| </ | </ | ||
| Line 207: | Line 240: | ||
| / | / | ||
| </ | </ | ||
| + | |||
| + | ===== Troubleshooting ===== | ||
| + | |||
| + | Logs for share mounting specifically can be found at ''/ | ||
store_games_on_a_nas.1656560421.txt.gz · Last modified: by atari