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

    Help!! Accidentally dragged a random directory into another and now its all broken

    Scheduled Pinned Locked Moved Help and Support
    directoryrootsshhelp
    24 Posts 5 Posters 3.2k 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.
    • mituM
      mitu Global Moderator @cyanxx
      last edited by

      @cyanxx https://retropie.org.uk/docs/Updating-RetroPie/#making-a-backup. And don't use the root account for transferring ROMs.

      C 1 Reply Last reply Reply Quote 0
      • C
        cyanxx @mitu
        last edited by

        @mitu said in Help!! Accidentally dragged a random directory into another and now its all broken:

        https://retropie.org.uk/docs/Updating-RetroPie/#making-a-backup

        Thanks. So connect via SFTP using the pi account yes? What is the pitfall in using root incidentally?

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

          @cyanxx said in Help!! Accidentally dragged a random directory into another and now its all broken:

          What is the pitfall in using root incidentally?

          Well, for starters you wouldn't have been able to copy your /home/pi to /opt, since the permissions on /opt would have prevented it.
          As a rule, you don't use an administrative account for day to day operations of your system. You don't need it and you can accidentally break your system by removing important files or changing permissions on system files.

          Use root only when are explicitly doing system configuration or update and, even then, prefer the sudo command instead of logging in directly as root.

          C 1 Reply Last reply Reply Quote 2
          • C
            cyanxx @mitu
            last edited by

            @mitu I was actually logged in as pi via Filezilla when it happened (dont have root). Thats all the company I bought it off provided, but it worked everywhere so I didn't chase it further. Good advice though, I understand the merits.

            So if I want to update config files in /opt/retropie/configs/ (that path from memory sorry) I was just copying them off via SFTP - updating on my mac and then copying back. Is that how you would do it?

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

              @cyanxx You don't need SFTP for that, you can access the RetroPie file shares (ROM folders/configs) from your macOS system - see https://retropie.org.uk/docs/Transferring-Roms/#samba-shares. That should be the preferred method.

              C 1 Reply Last reply Reply Quote 0
              • C
                cyanxx @mitu
                last edited by cyanxx

                @mitu ah sweet. Perfect. I did try that before but couldn't get it to work. Hopefully now I'm on the official image it'll work properly. Thanks!

                1 Reply Last reply Reply Quote 0
                • C
                  cyanxx
                  last edited by cyanxx

                  @mitu @dankcushions I'm saving the contents of

                  /home/pi/retropie/roms/
                  /opt/retropie/configs/

                  Can you think of any other directories I should save before I wipe the SD?

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

                    The BIOS folder might be useful.

                    1 Reply Last reply Reply Quote 0
                    • M
                      montelcow @cyanxx
                      last edited by

                      @cyanxx
                      My sd card
                      for retropie is asking for a password. Help

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

                        @montelcow Please open a separate topic instead of barging in on existing ones. Provide the information requested in https://retropie.org.uk/forum/topic/3/read-this-first.

                        1 Reply Last reply Reply Quote 0
                        • M
                          montelcow
                          last edited by

                          Hello my sd card i have is asking for a password..

                          C 1 Reply Last reply Reply Quote -2
                          • C
                            cyanxx @montelcow
                            last edited by

                            @montelcow sorry, I had to use another raspberry pi in order to access the protected directories. Couldn't work out how to do it via mac. Assuming you are meaning you are trying to access the sd card not from the retropie. But as mitu says, perhaps if you start a topic on it someone will help.

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

                              @cyanxx said in Help!! Accidentally dragged a random directory into another and now its all broken:

                              Managed to connect the SD card to another raspberry pi so copying all the roms and configs over to a portable HD now.

                              Isn't that a viable way for making backups, too? If you run a desktop Linux system like Raspberry Pi OS (formerly known as Raspbian) and then connect your RetroPie sd card to that system, you could comfortably copy anything that you need to your backup drive. In this scenario, that drive should be formatted with a Linux file system like ext4, so that the file ownerships and permissions are backed up correctly.

                              There are many graphical or command line backup applications available for Linux that could help to manage and semi-automate the backups. Many of those programs also work over SSH or SFTP, so a network solution shouldn't be much harder to setup.

                              As an example, in my first RetroPie years I made my backups by connecting my sd card to my desktop Linux PC using a usb card reader, until I switched to network backups with rsync via SSH roughly 1-1½ years ago.

                              Apart from backups, am using Unison to synchronise RetroPie settings and roms between the Pi 4 in my arcade cabinet, my desktop PC, and my Laptop. They all run on Linux, though, and unfortunately, Unison isn't available for MacOS. So it would only be useful on your second Pi (or the first one by switching the system card).

                              Whatever you do your backups with, the important thing is to make the process as easiy and convenient as possible, so that you actually make them regularly. 😉

                              1 Reply Last reply Reply Quote 0
                              • M
                                montelcow @cyanxx
                                last edited by

                                @cyanxx. Will do Thanks

                                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.