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

    trying to boot from a copy of my sd card, will not boot.

    Scheduled Pinned Locked Moved Help and Support
    bootboot issueboot issuesfile editgui on startup
    17 Posts 2 Posters 2.3k 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
      last edited by

      You can use any Linux system (on another PC or even a live USB distro like Ubuntu) and mount the SDcard. You can thhen - as root - edit the etc/rc.local file from under the mount folder and remove the offending line.

      You can also try to boot the Pi into 'safe mode' by modifying the /boot/cmdline.txt as explained in https://raspberrypi.stackexchange.com/a/70527. You'll boot to a command prompt, from where you can re-mount read-write the / partition and be able to edit /etc/rc.local.

      If you wish to start the desktop environment at boot, use raspi-config choose the Auto Login to Desktop in the Boot / Auto login menu.

      jtkblueJ 1 Reply Last reply Reply Quote 1
      • jtkblueJ
        jtkblue @mitu
        last edited by jtkblue

        @mitu said in trying to boot from a copy of my sd card, will not boot.:

        You can use any Linux system (on another PC or even a live USB distro like Ubuntu) and mount the SDcard. You can thhen - as root - edit the etc/rc.local file from under the mount folder and remove the offending line.

        I'm In the ETC folder, but I can't find rc.local. There's things like rc0.d but i can't find rc.local.

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

          @jtkblue said in trying to boot from a copy of my sd card, will not boot.:

          How would I achieve this? I can't even find the file that I want to edit in the folder of the card. Here's what I see.
          ...

          What you're seeing is the boot partition, you'll need to mount the 2nd partition on the sdcard.

          jtkblueJ 1 Reply Last reply Reply Quote 1
          • jtkblueJ
            jtkblue @mitu
            last edited by

            @mitu sorry about that, after realizing what i did wrong i already found the retropie partition. check the edited message above for what's wrong now lol

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

              @jtkblue If you can't find rc.local, then it's not there or the partition is not properly mounted/read.

              jtkblueJ 1 Reply Last reply Reply Quote 0
              • jtkblueJ
                jtkblue @mitu
                last edited by

                @mitu nope, found it. I tried to edit it using the mousepad thingy and it won't let me save because permission denied. I would use sudo nano but I have no clue how to edit files on external drives..

                any clue?

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

                  Editing files is the same, no matter the location. Use sudo nano _path_to_file_. You can also run mousepad via sudo and browse for the file location.

                  jtkblueJ 1 Reply Last reply Reply Quote 1
                  • jtkblueJ
                    jtkblue @mitu
                    last edited by jtkblue

                    @mitu in the file browser, it says /media/pi/retropie/etc

                    so i type

                    sudo nano /media/pi/retropie/etc/rc.local

                    and it says it doesn't exist. confused.

                    says it doesn't exist either for /pi/retropie/etc/rc.local/

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

                      @jtkblue said in trying to boot from a copy of my sd card, will not boot.:

                      /media/pi/retropie/etc/rc.local

                      If you run the following 2 commands, what's the output ?

                      ls -l /media/pi/retropie/etc/rc.local
                      sudo ls -l /media/pi/retropie/etc/rc.local
                      
                      jtkblueJ 1 Reply Last reply Reply Quote 0
                      • jtkblueJ
                        jtkblue @mitu
                        last edited by

                        @mitu said in trying to boot from a copy of my sd card, will not boot.:

                        @jtkblue said in trying to boot from a copy of my sd card, will not boot.:

                        /media/pi/retropie/etc/rc.local

                        If you run the following 2 commands, what's the output ?

                        ls -l /media/pi/retropie/etc/rc.local
                        sudo ls -l /media/pi/retropie/etc/rc.local
                        

                        the first one output

                        -rwxr -xr-x 1 root root 454 Jan 3 23:31 /media/pi/retropie/etc/rc.local

                        the second one output the exact same thing

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

                          @jtkblue said in trying to boot from a copy of my sd card, will not boot.:

                          sudo ls -l /media/pi/retropie/etc/rc.local

                          OK, so if

                          sudo ls -l /media/pi/retropie/etc/rc.local
                          

                          shows the listing to a file, then I don't understand why

                          sudo nano /media/pi/retropie/etc/rc.local
                          

                          says the file does not exist. Are you sure there's not a typo involved somewhere ?

                          jtkblueJ 1 Reply Last reply Reply Quote 0
                          • jtkblueJ
                            jtkblue @mitu
                            last edited by jtkblue

                            @mitu BINGO!

                            apparently, I tried it again after typing it correctly the last 5-6 times in the past 2 hours.

                            Sorry for wasting your time. I appreciate your help, thank you so much!

                            boots into emulationstation completely fine now.

                            the thing is though, i've been trying to make my touchscreen work on the retropie pixel desktop thingy, it's always a tiny bit off from my finger so i can't use it. The website here: https://www.circuitbasics.com/setup-lcd-touchscreen-raspberry-pi/
                            told me to edit rc.local and put that thing in it, and then it wouldn't load emulationstation.

                            it's all a huge mess. I'm going to store the recently fixed sd card with retropie on it and i'm going to try to install emulationstation ON top of raspbian on a second sd card i have, if it works, cool i got a touch screen, if not, i got this nifty tiny keyboard i can use.

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

                              Those instructions seem a bit old, you might want to search for recent (Raspbian Buster) instructions. Note that running EmulationStation from a desktop env is not a supported configuration (though some users seem to prefer running it like that).

                              jtkblueJ 1 Reply Last reply Reply Quote 0
                              • jtkblueJ
                                jtkblue @mitu
                                last edited by

                                @mitu oh ho, I know it's not supported. I tried it as my main configuration for a while and eventually it just would not start any games at all. I'm hoping that because it's on a secondary sd card it'll fix the issues i previously had.

                                If i had a choice, I would totally prefer to have it on top of raspbian but, whatever.

                                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.