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

    Retropie changes not saving

    Scheduled Pinned Locked Moved Help and Support
    not
    14 Posts 4 Posters 1.7k 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.
    • Z
      zero2k @Clyde
      last edited by

      @clyde Okay I tried starting those games i want to delete and they still load up/ work. I looked at the code block and i really didn't understand how to do that.
      So here's what i input and this is what it told me,
      rm -v /home/pi/Retropie/roms/n64/south park rally (U) [!].z64
      -bash: syntax error near unexpected token `('

      I tried removing the () and this is what is gave me
      rm -v /home/pi/Retropie/roms/n64/south park rally U [!].z64
      rm: cannot remove ‘/home/pi/Retropie/roms/n64/south’: No such file or directory
      rm: cannot remove ‘park’: No such file or directory
      rm: cannot remove ‘rally’: No such file or directory
      rm: cannot remove ‘U’: No such file or directory
      rm: cannot remove ‘[!].z64’: No such file or directory

      When I tried the other command it gave me this
      ls -l /home/pi/Retropie/roms/n64/south park rally (U) [!].z64
      -bash: syntax error near unexpected token `('
      pi@retropie:~ $ ls -l /home/pi/Retropie/roms/n64/south park rally U [!].z64
      ls: cannot access /home/pi/Retropie/roms/n64/south: No such file or directory
      ls: cannot access park: No such file or directory
      ls: cannot access rally: No such file or directory
      ls: cannot access U: No such file or directory
      ls: cannot access [!].z64: No such file or directory

      I'm not sure what I'm doing wrong here

      ClydeC 1 Reply Last reply Reply Quote 0
      • ClydeC
        Clyde @zero2k
        last edited by Clyde

        @zero2k You have to put the path and rom file name (together) into quotation marks, because of the special characters and spaces in the file name. I didn't think about that because I tend to avoid special characters in file names for exactly this reason.

        rm -v "/home/pi/Retropie/roms/n64/south park rally (U) [!].z64"
        

        To make a code block, put three backticks ``` before and after the text or ident it four spaces.

        edit: The same goes for the ls command.

        ls -l "/home/pi/Retropie/roms/n64/south park rally (U) [!].z64"
        
        Z 1 Reply Last reply Reply Quote 0
        • Z
          zero2k @Clyde
          last edited by

          @clyde Okay I tried it again this time I copy and pasted the way you wrote the code and this is what it gave me

          rm: cannot remove ‘/home/pi/Retropie/roms/n64/south park rally (U) [!].z64’: No such file or directory 
          
          It gave me the same thing for the other command line, which is really weird for it to say that there is no such file or directory because I checked it again and the rom is still there. Any ideas why its not saving my installed games also? I'm feeling like its going to come down to me formatting the sd card and reinstalling everything I really hope that I don't have to do that.
          Z 1 Reply Last reply Reply Quote 0
          • Z
            zero2k @zero2k
            last edited by

            @zero2k Sorry about that I totally messed up that reply

            C 1 Reply Last reply Reply Quote 0
            • C
              ChuckyP @zero2k
              last edited by

              @zero2k you need to use the double quotation “

              It looks like you used ‘ instead...

              ClydeC 1 Reply Last reply Reply Quote 0
              • ClydeC
                Clyde @ChuckyP
                last edited by Clyde

                @chuckyp @zero2k Yes, and just to be sure: Please use the standard straight double quotation ", not any other variants like “ or ”.

                edit: Oh, and Retropie's/Linux' filesystem is case sensitive. So, if your rom filename has any capital letters, you have to write them capitalized in the commands, too!

                1 Reply Last reply Reply Quote 0
                • Z
                  zero2k
                  last edited by

                  I tried what you said my keyboard only has one kind of double quotation it looks standard to me. I tried it with my keyboard quotations and I tried cutting and pasting your code and I got the same result as last time. Oh and I did check to make sure that nothing else needed to be capitalized and their was nothing that needed to be changed.

                  ClydeC 1 Reply Last reply Reply Quote 0
                  • ClydeC
                    Clyde @zero2k
                    last edited by Clyde

                    @zero2k said in Retropie changes not saving:

                    I tried what you said my keyboard only has one kind of double quotation it looks standard to me. I tried it with my keyboard quotations and I tried cutting and pasting your code and I got the same result as last time. Oh and I did check to make sure that nothing else needed to be capitalized and their was nothing that needed to be changed.

                    Please post your exact command like it appears in the Retropie console, either by copy & paste or as a screenshot. The console saves its command history at logout/shutdown in the hidden file .bash_history in the home directory of the user pi, /home/pi. Mind the dot at the start of .bash_history, it's part of the filename and marks the file as hidden in Linux. If you can't access hidden files via network, you can copy the file to a non-hidden one using this command:

                    cp /home/pi/.bash_history /home/pi/bash_history
                    

                    By the way, there is another thread about a problem like yours going on right now. There, it is suggested that the memory card could be failing and that it put itself into read-only mode because of this. You might also consider this for your card and thus, you should make a backup of any data on it that's important to you.

                    edit: Another way to use the exact rm command with the correct quotation marks would be to put it into a text file on the Pi and make that file executable:

                    chmod u+x /home/pi/some_file   # makes "some_file" executable
                    

                    Everything from # onward is just a comment and not part of the command.

                    1 Reply Last reply Reply Quote 0
                    • Z
                      zero2k
                      last edited by

                      I checked out that thread and it seems that your right, so I'm going to get another sd card and reinstall everything. But thank you trying to help me with this issue.

                      1 Reply Last reply Reply Quote 0
                      • Z
                        zerojay
                        last edited by

                        Memory card has failed, yep.

                        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.