RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Roms are on a network folder, but writing seems to fail

    Scheduled Pinned Locked Moved Help and Support
    networksharestatessave
    7 Posts 2 Posters 825 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ZangdaarrZ
      Zangdaarr
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • mituM
        mitu Global Moderator
        last edited by

        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 line touch $HOME/roms/test.file and see if you get an error.

        1 Reply Last reply Reply Quote 0
        • ZangdaarrZ
          Zangdaarr
          last edited by

          @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

          1 Reply Last reply Reply Quote 0
          • ZangdaarrZ
            Zangdaarr
            last edited by

            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

            mituM 1 Reply Last reply Reply Quote 0
            • mituM
              mitu Global Moderator @Zangdaarr
              last edited by

              @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.

              1 Reply Last reply Reply Quote 0
              • ZangdaarrZ
                Zangdaarr
                last edited by

                @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

                mituM 1 Reply Last reply Reply Quote 0
                • mituM
                  mitu Global Moderator @Zangdaarr
                  last edited by

                  @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.

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post

                  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.