Retropie changes not saving
-
@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 directoryWhen 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 directoryI'm not sure what I'm doing wrong here
-
@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"
-
@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.
-
@zero2k Sorry about that I totally messed up that reply
-
@zero2k you need to use the double quotation “
It looks like you used ‘ instead...
-
@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!
-
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.
-
@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. -
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.
-
Memory card has failed, yep.
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.