ROM state not saving over network
-
Not sure why ROM states are not saving.
I got my ROMS located on my network server (NAS), and I am mounting it via the
autostart.sh
file, as documented here.Here is now my
autostart.sh
file looks like:sudo mount -t cifs -o username=retropie,password=********,nounix,noserverino //SERVER/Software/Games/roms/ /home/pi/RetroPie/roms/ emulationstation #auto
However when I try to save a game state, I just get a 0% on the screen and nothing else.
I went to the shell and I tried doing some stuff on the mounted roms directory, such as
mkdir something
or creating atest.txt
file. I could write in the shared drive as long as I ran it with thesudo
command. If I don't run it with thesudo
command, I get an access denied message. Maybe this is the problem?Any thoughts on what I might be doing wrong?
-
@pmdci said in ROM state not saving over network:
I get an access denied message. Maybe this is the problem?
Yes, the (normal) user is not allowed to write so you can't save there. Add
uid=pi
to the mount options and see if you're able to write there. -
Story of my life.... As soon as I decided to ask a question, I find the answer.
According to the documentation (at the very end), there is a line that says I should replace my mount command with the following:
sudo mount -t cifs -o sec=ntlmv2,username=something,rw,file_mode=0777,dir_mode=0777,password=********,nounix,noserverino //SERVER/Software/Games/roms/ /home/pi/RetroPie/roms/
That solved the problem.
I wonder however what would be the difference between this whole new line, versus your suggestion of just adding
uid=pi
to my previous line. Would you know? -
@pmdci Late reply, but my comprehension is that uid=pi woud give rights to the user pi while what you are doing gives writting rights to everyone
The user you used to mount the drive was not the user trying to write and this is why your states could not be saved.
I wonder if it is possible to create a user pi on the nas and avoid this but I don't think so. What is strange is that loging directly on the raspberry using the pi user you can write over the mounted nas drive, but not once in the retropie system itself.
-
@Zangdaarr Another Late Reply - I came across this while trying to figure out why Hi Scores were not being saved while trying to write using ROMS on a network share. I had given the User I had created access rights, however, I believe that the rw (read/write) and the file/dir mode of 777 (read, write and execute (I believe)) is the secret sauce. Glad that this is in the User Guide...but, just overlooked by me until today.
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.