Running roms from network share does not work
-
Hi there,
I have a second Raspberry Pi (Pi4 4GB) in my network which stores my data as a network share. I want to run the games on Retropie from this network share too.In order to do that I followed the tutorial on Github.
Here is the folder structure on my network share
On "Boot Options" I selected Yes
I did:
sudo nano /opt/retropie/configs/all/autostart.sh
This is what I added:
sudo mount -t cifs -o username=pi,password=mypassword,nounix,noserverino //192.168.2.109/media/medienspeicher/Retropie/roms /home/pi/RetroPie/roms sudo mount -t cifs -o username=pi,password=mypassword,nounix,noserverino //192.168.2.109/media/medienspeicher/Retropie/BIOS /home/pi/RetroPie/BIOS sudo mount -t cifs -o username=pi,password=mypassword,nounix,noserverino //192.168.2.109/media/medienspeicher/Retropie/splashscreens /home/pi/RetroPie/splashscreens
It does not work. What do I have to do in order to make it work?
If you have done the above steps please create a new topic and add the following relevant information so that we can help narrow down the cause of your issue. Please do not add a "me too" to an old topic, as the cause of your issue may be different. Make sure your topic title summarises the issue - do not use topic titles like "HELP ME".
Pi Model or other hardware: 3B
RetroPie Version 4.6
Built From: Pre made SD Image on RetroPie website
Guide used: see abowe -
@KITN said in Running roms from network share does not work:
It does not work. What do I have to do in order to make it work?
What happens when you run the
mount
commands manually, from the command line/SSH session:sudo mount -t cifs -o username=pi,password=mypassword,nounix,noserverino //192.168.2.109/media/medienspeicher/Retropie/roms /home/pi/RetroPie/roms
Do you get an error message or the command succeeds ?
-
I get a error message, that the directory does not exist:
mount error(2): No such file or directory
kevin@SIDNEZ ~ $ ssh pi@192.168.2.109 pi@192.168.2.109's password: Linux raspberrypi 4.19.97-v7l+ #1294 SMP Thu Jan 30 13:21:14 GMT 2020 armv7l The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Wed Jun 3 10:53:42 2020 from 192.168.2.125 pi@raspberrypi:~ $ cd /media/medienspeicher/Retropie/roms/ pi@raspberrypi:/media/medienspeicher/Retropie/roms $
But I can connect to the directory via ssh so I think the part "//192.168.2.109/" seems to be wrong.
-
@KITN Is the
/media/medienspeicher
folder (or theRetroPie
subfolder) shared by the server via Samba ? -
yes
-
@KITN said in Running roms from network share does not work:
yes
Yes what ? Which folder is shared on the network ? Can you browse the shares from a PC and see a listing of the shares ? Is the
pi
user allowed to access the share(s) ? -
Heres the smb.conf
[medienspeicher] comment = Medienspeicher path = "/media/medienspeicher" public = yes only guest = yes browseable = yes read only = no writeable = yes create mask = 0644 directory mask = 0755 force create mask = 0644 force directory mask = 0755 force user = pi force group = pi
-
Alright then, so you should be accessing the file share as
//<server_ip>/medienspeicher
(name of the share) and not as//<server_ip>/media/medienspeicher
.
Since you configured the share as 'guest only', you can probably remove theusername
andpassword
mount options and useguest
instead. -
Now it works. Thank you very much.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.