Last active
October 30, 2023 15:06
-
-
Save trapd00r/100fd8f0d94a19d1dd5c02eaa8a337be to your computer and use it in GitHub Desktop.
# batocera nas setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## The device used to store the share data a.k.a. userdata. | |
## INTERNAL -> Use the same drive Batocera has been flashed to. See https://wiki.batocera.org/add_games_bios on how to add files to the internal storage. | |
## ANYEXTERNAL -> Use the first external storage detected. See https://wiki.batocera.org/store_games_on_a_second_usb_sata_drive | |
## Putting the name here of the drive instead will use that specific external storage. Use the menu in Batocera to see the available options. | |
## DEVICES -> Use external storage for individual folders. See https://wiki.batocera.org/store_games_on_a_second_usb_sata_drive#manual_configuration_with_batocera-bootconf_advanced | |
## DEV -> Manually define the GUID of the storage device requested. See https://wiki.batocera.org/store_games_on_a_second_usb_sata_drive#dev_mode | |
## NETWORK -> Use the network share, requires configuration first. See https://wiki.batocera.org/store_games_on_a_nas | |
sharedevice=NETWORK | |
[email protected]:/volume1/media/games/roms:vers=4 | |
[email protected]:/volume1/media/games/bios:vers=4 | |
[email protected]:/volume1/media/games/saves:vers=4 | |
[email protected]:/volume1/media/games/music:vers=4 | |
[email protected]:/volume1/media/games/decorations:vers=4 | |
[email protected]:/volume1/media/games/screenshots:vers=4 | |
[email protected]:/volume1/media/games/themes:vers=4 | |
[email protected]:/volume1/media/games/sounds:vers=4 | |
[email protected]:/volume1/media/games/library:vers=4 | |
## Add a wait time (in case the share device takes a while to come "online") in seconds. | |
sharewait=15 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
/userdata/system/switch/extra/batocera-switch-startup | |
# place this in /userdata/system/custom.sh | |
# This allows you to still use Windows/Flatpaks even while using a NAS. | |
case "$1" in | |
start) | |
# /userdata = internal nvme, folders inside it is mounted on nas except these | |
# this means there's 1TB of space for steam etc | |
mkdir -p /userdata/nas_workaround/flatpak/saves | |
mount --bind /userdata/nas_workaround/flatpak/saves /userdata/saves/flatpak | |
mkdir -p /userdata/nas_workaround/windows/saves | |
mount --bind /userdata/nas_workaround/flatpak/saves /userdata/saves/windows | |
mkdir -p /userdata/nas_workaround/windows/roms | |
mount --bind /userdata/nas_workaround/windows/roms /userdata/roms/windows | |
;; | |
esac | |
exit $? | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lock issues, add kernel parameter: | |
https://old.reddit.com/r/VFIO/comments/zqesqm/psa_use_split_lock_detectoff_to_avoid_substantial/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment