Roms are on a network folder, but writing seems to fail
-
Hi,
I have my rom on a network share, on my windows desktop.
I created a special user, RetroPie and gave it full control over the folder. The folder is mounted at startup and rom are perfectly accessible, I can play everything, no problem.However, when it comes to saving, I cannot perform a state save. When I leave the game, it is not starting back at the last save point. I checked on the shared folder, and there's no state file in there.
So, since the user as "full control", what can prevent it to write files ?
Thanks
-
How did you configure the network share ? The user may have full control on the windows side (share and filesystem), but the mounted share might not take advantage of that.
Just to check if the problem is the permission, you could exit EmulationStation and then run from the command linetouch $HOME/roms/test.file
and see if you get an error. -
@mitu said in Roms are on a network folder, but writing seems to fail:
ck if the problem is the permission, you could exit EmulationStation and then run from the command line touch $HOME/roms/test.file and see if you get an error.
Hi ! Thank you, the problem was exactly that, I added the read and write rights to the mount command.
I also managed to get my saves saved in another folder remotely, this is great thank you
-
Hi
I am upping this post because I had some trouble with saving recently, my retropie crashed during a save state, and took a very long time to exit a game for finally not saving the srm
I checked the writing rights and they are ok, I made some tests and I managed to correctly save srm files. My guess is that my computer went into sleep mode and this severed the connection to the Pi.
@mitu would you know if there is any way to maintain the network connection if my computer goes to sleep and my account is locked ?
Also, would it be possible to actually save at two different location: once directly on the SD card, and once over the network. I think symbolic links would work but I need the files to be physically present at both places, so in the event my sd card runs into an issue, I keep the files on the network drive
Thanks
-
@Zangdaarr said in Roms are on a network folder, but writing seems to fail:
@mitu would you know if there is any way to maintain the network connection if my computer goes to sleep and my account is locked ?
I don't think so - once the network connection is broken by the server, there's nothing the client can do. The Linux CIFS client has some caching included, but I don't think it will work when a write is attempted.
Also, would it be possible to actually save at two different location: once directly on the SD card, and once over the network. I think symbolic links would work but I need the files to be physically present at both places, so in the event my sd card runs into an issue, I keep the files on the network drive
You can use a
rsync
job to backup your save files to a network folder periodically. -
@mitu said in Roms are on a network folder, but writing seems to fail:
rsync
That seems way more interesting, thank you I will investigate rsync, is there anyway for a sync job to simply wait and put the sync in queue if the connection is severed ?
I am new to unix systems and even if I am a programmer it's still an hard step ahah
-
@Zangdaarr said in Roms are on a network folder, but writing seems to fail:
That seems way more interesting, thank you I will investigate rsync, is there anyway for a sync job to simply wait and put the sync in queue if the connection is severed ?
rsync
is just a synchronization/copy command, it's not a service that keeps tab on files. You can run it periodically and it will synch only the changed data, keeping transfers to a minimum. If your backup location is not available, it will fail.
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.