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

    [PiShrink] Creating new /etc/rc.local does not end - takes forever.

    Scheduled Pinned Locked Moved Help and Support
    pishrinkhelpsupport
    13 Posts 6 Posters 966 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.
    • G
      GoodBoy
      last edited by

      bump

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

        Don't bump your topics so soon, this is an international forum and it takes time for other users to see and respond to your questions.
        That being said, are you sure that you're waiting long enough for pishrink to create your shrunk down image ? I haven't used pishrink, but I imaging that for a large-ish image, it takes some time to transfer all the files from an existing image to a new one, especially if there are lots of small files on the original image.

        KN4THXK G 2 Replies Last reply Reply Quote 0
        • KN4THXK
          KN4THX @mitu
          last edited by

          @mitu I just used pi shrink for the first time on a 32gb image and it took 5-10 minutes to shrink to a 15gb IMG. I was using a new Evo 860 SSD on my x230 though. I did not receive that error. It almost seems to me as if they are trying to write the original SD card image to the SD card where the image source exists.

          Try shrinking the image to to ~/

          "If you're gonna play the Game Boy, You gotta learn to play it right" - https://www.youtube.com/watch?v=FYLGl92ETNQ

          1 Reply Last reply Reply Quote 0
          • RanmaR
            Ranma
            last edited by

            It can take a while, but it's worth it. I have a 64GB image and it's taken Pishrink about half an hour to shrink it. Then, when you pop it back into the Pi, it can take another 30 mins to restore.

            Actually, I have a question about Pishrink, but I'll start another thread...

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

              @mitu

              My apologies.

              I would say I waited about an hour and it was still trying to create the etc/rc.local

              It is a 64GB card, with about 32GB used space. I have just put the image on a 128GB card and I am going to camp this one out for a few hours.

              If that doesn't work, I am thinking about removing the etc/rc.local and retrying it. Not too sure what that will achieve but it's worth a go.

              mituM ByteThisB 2 Replies Last reply Reply Quote 0
              • mituM
                mitu Global Moderator @GoodBoy
                last edited by mitu

                @GoodBoy said in [PiShrink] Creating new /etc/rc.local does not end - takes forever.:

                If that doesn't work, I am thinking about removing the etc/rc.local and retrying it. Not too sure what that will achieve but it's worth a go.

                Don't remove the file, just check if there's activity on the system while the program runs. If you're running in a VB guest, just look at the disk activity 'led' of the virtual machine, or use the top command to see the system load.

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

                  @mitu I've ran the top command to see the running tasks. I stopped the pishrink.sh script and restarted it - but I did not see a change in the number of running tasks.

                  469a57ca-e397-44b0-945b-442b01f746a1-image.png

                  From the tutorials that I have watched, the creation of etc/rc.local is fast and then you wait for the shrinkage.

                  I think I am going to camp this one out 2 hours, and if that doesn't work then maybe retry again from scratch (this is my 3rd time). Not too sure to be honest.

                  mituM 1 Reply Last reply Reply Quote 0
                  • G
                    GoodBoy
                    last edited by

                    Unless there would be an alternative way to resize the partitions in Linux? Or delete the empty space?

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

                      @GoodBoy A load average of 4.42 indicates some serious activity on the system. I'd say let it run for a bit.

                      Unless there would be an alternative way to resize the partitions in Linux? Or delete the empty space?

                      parted - I think - can do it. It might have a graphical interface, but haven't used it in a while.

                      cyperghostC G 2 Replies Last reply Reply Quote 1
                      • cyperghostC
                        cyperghost @mitu
                        last edited by

                        @mitu gparted got a gui

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

                          @mitu I think it has been an easy 2 hours now and it is still not budging, but it still has a load average of about 4.2.

                          I think I should just kill the switch?

                          Gparted is worth a try. If nothing works at all I suppose I can copy all the roms to my PC and rebuild it entirely onto a new card. Yikes...

                          1 Reply Last reply Reply Quote 0
                          • ByteThisB
                            ByteThis @GoodBoy
                            last edited by

                            @GoodBoy said in [PiShrink] Creating new /etc/rc.local does not end - takes forever.:

                            @mitu

                            My apologies.

                            I would say I waited about an hour and it was still trying to create the etc/rc.local

                            It is a 64GB card, with about 32GB used space. I have just put the image on a 128GB card and I am going to camp this one out for a few hours.

                            If that doesn't work, I am thinking about removing the etc/rc.local and retrying it. Not too sure what that will achieve but it's worth a go.

                            @GoodBoy Why are you trying to shrink the image if you are going to place it on a 128 GB card ? Do a backup of the image..transfer it to the 128GB card and .you will have to expand the filesystem to access the full space on the card

                            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.