RetroPie forum home
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    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

    autostart.sh being re-written on reboot

    Help and Support
    kodi boot autostart.sh re-written retropie 4.7.1
    3
    9
    201
    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.
    • sabelstrom
      sabelstrom last edited by sabelstrom

      Hi.

      I try to make my RetroPie boot to Kodi, i can change in RetroPie-Setup - configuration / tools -> autostart to boot to Kodi, and i can see that the autostart.sh get changed and adds

      kodi-standalone #auto
      

      at the top above

      emulationstation #auto
      

      But every time i reboot it delete the kodi line.

      I have no problem running kodi from ports.

      Pi Model or other hardware: 3B+, SanDisk Extreme Plus MicroSDH 16gb
      Power Supply used: RetroPie logo 5.1v 2.5A
      RetroPie Version Used: v4.7.1
      Built From: Pre made SD Image on RetroPie website
      USB Devices connected: Bluetooth to keyboard
      Controller used: Keyboard
      Error messages received: Non
      Guide used: Searched the forum
      How to replicate the problem: Change autostart.sh and restart

      IanDaemon mitu 2 Replies Last reply Reply Quote 0
      • IanDaemon
        IanDaemon @sabelstrom last edited by

        @sabelstrom Are your changes being saved?

        • 5 Favorite Arcade Games in MAME
        • Cocktail Cabinet Games
        • Check out the MAME RoW
        sabelstrom 1 Reply Last reply Reply Quote 0
        • sabelstrom
          sabelstrom @IanDaemon last edited by sabelstrom

          @iandaemon
          Yes, i can open the file if i browse my network from my PC and it is saved.
          Tried to change it manual trough my network and made it read-only, but still changed after reboot.

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

            @sabelstrom said in autostart.sh being re-written on reboot:

            How to replicate the problem: Change autostart.sh and restart

            I have a non-standard autostart.sh and it doesn't get changed on boot. The only RetroPie service that starts on boot is the splashscreen (if enabled).
            Are you sure your sdcard hasn't gone bad and turned read-only, discarding any writes ? If you create a new file in the same folder as autostart.sh, is it still there after a reboot ?

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

              @mitu
              You seem to have found the problem, files and folders created is gone after reboot.

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

                Take a backup of your sdcard (using Win32Imager) then test it using a software like H2testw. You may have to replace it if it has errors.

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

                  @mitu
                  Did a backupp. Error using H2testw only showed 201mb space.
                  Cant format, it tells me the card is write-protected, please release the write protector switch, but cant find one on sd micro cards.

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

                    @sabelstrom said in autostart.sh being re-written on reboot:

                    Cant format, it tells me the card is write-protected, please release the write protector switch, but cant find one on sd micro cards.

                    I think this is a common behavior, when it's no longer working properly the SD card is setting the read-only flag and doesn't allow any more writes to be saved. I think you need a new card.

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

                      @mitu
                      I can delete files from my PC, but they re-appear when i mount it again. So broken SD card.

                      Thanks for the help. I would never thought of that.

                      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.