• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
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.
  • D
    dankcushions Global Moderator
    last edited by 16 Aug 2020, 21:22

    it looks like you've dragged /home/pi into /opt. just drag that /opt/pi directory back to /home

    however note that you're using a pre-built RetroPie system, and a third party image, neither of which we support, as per https://retropie.org.uk/forum/topic/3/read-this-first, so please do not post any more support questions until you are using our install. my advice above may not be correct as we have no idea how your image is set up, so i would take this opportunity to start again from the official image :)

    1 Reply Last reply Reply Quote 0
    • C
      cyanxx
      last edited by 16 Aug 2020, 21:27

      Thanks! Just as soon as I work out to undo what mount this SD card (installing some homebrew package now...) I'll move it back and hopefully that will work.

      Does this mean there should be no /opt/pi/ directory at all ?

      D 1 Reply Last reply 16 Aug 2020, 21:29 Reply Quote 0
      • D
        dankcushions Global Moderator @cyanxx
        last edited by 16 Aug 2020, 21:29

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

        Does this mean there should be no /opt/pi/ directory at all ?

        not on official RetroPie, certainly.

        C 1 Reply Last reply 16 Aug 2020, 21:32 Reply Quote 0
        • C
          cyanxx @dankcushions
          last edited by 16 Aug 2020, 21:32

          @dankcushions Great, good to know.

          (Sorry btw, had no idea third-party images for Retropie were even a thing)

          1 Reply Last reply Reply Quote 1
          • C
            cyanxx
            last edited by 16 Aug 2020, 22:02

            @dankcushions I know this is not a retropie question... but I have mounted the SD card on my mac and can view it at last. But I cannot access the contents of the /home/pi/ directory as its protected. Do you know if there is a way I can login somehow or am I screwed? No worries if you dont know, just thought I'd ask.

            1 Reply Last reply Reply Quote 0
            • C
              cyanxx
              last edited by 16 Aug 2020, 22:57

              Ok, managed to access the pi directory via another raspberry pi.... copied it all back into the right places. Still a kernel panic though and it wont boot
              Guess it could be starting from scratch after all... :(

              1 Reply Last reply Reply Quote 0
              • C
                Clyde
                last edited by 17 Aug 2020, 12:47

                My sympathies and good luck with that. And don't forget to ⚠️backup⚠️ your system after you've set up everything, and in regular intervals after that.

                1 Reply Last reply Reply Quote 0
                • C
                  cyanxx
                  last edited by 17 Aug 2020, 18:22

                  @Clyde appreciated. Managed to connect the SD card to another raspberry pi so copying all the roms and configs over to a portable HD now. Then going to reflash it with base retropie and re set it all up again 🤞

                  Is there a recommended way to back up? Can't think how to do it without just dragging a bunch of stuff over SFTP (what screwed me in the first place)

                  M C 2 Replies Last reply 17 Aug 2020, 18:32 Reply Quote 0
                  • M
                    mitu Global Moderator @cyanxx
                    last edited by 17 Aug 2020, 18:32

                    @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 17 Aug 2020, 18:49 Reply Quote 0
                    • C
                      cyanxx @mitu
                      last edited by 17 Aug 2020, 18:49

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

                      M 1 Reply Last reply 17 Aug 2020, 19:00 Reply Quote 0
                      • M
                        mitu Global Moderator @cyanxx
                        last edited by 17 Aug 2020, 19:00

                        @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 17 Aug 2020, 19:18 Reply Quote 2
                        • C
                          cyanxx @mitu
                          last edited by 17 Aug 2020, 19:18

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

                          M 1 Reply Last reply 17 Aug 2020, 19:22 Reply Quote 0
                          • M
                            mitu Global Moderator @cyanxx
                            last edited by mitu 17 Aug 2020, 19:22

                            @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 17 Aug 2020, 20:21 Reply Quote 0
                            • C
                              cyanxx @mitu
                              last edited by cyanxx 17 Aug 2020, 20:21

                              @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 17 Aug 2020, 21:54

                                @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
                                • M
                                  mitu Global Moderator
                                  last edited by 18 Aug 2020, 02:52

                                  The BIOS folder might be useful.

                                  1 Reply Last reply Reply Quote 0
                                  • M
                                    montelcow @cyanxx
                                    last edited by 18 Aug 2020, 02:54

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

                                    M 1 Reply Last reply 18 Aug 2020, 02:55 Reply Quote 0
                                    • M
                                      mitu Global Moderator @montelcow
                                      last edited by 18 Aug 2020, 02:55

                                      @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 18 Aug 2020, 03:16

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

                                        C 1 Reply Last reply 18 Aug 2020, 10:37 Reply Quote -2
                                        • C
                                          cyanxx @montelcow
                                          last edited by 18 Aug 2020, 10:37

                                          @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 18 Aug 2020, 18:33 Reply Quote 0
                                          22 out of 24
                                          • First post
                                            22/24
                                            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.

                                            This community forum collects and processes your personal information.
                                            consent.not_received