• 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

How to shrink a retropie image?

Scheduled Pinned Locked Moved Help and Support
raspberry pi 3retropieattract mode
31 Posts 15 Posters 35.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.
  • B
    bollwerk
    last edited by 11 Feb 2018, 04:57

    Excellent guide. However, I ran into this error when running the pishrink.sh:

    Creating new /etc/rc.local
    retropie: Inodes that were part of a corrupted orphan linked list found.

    retropie: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
    (i.e., without -a or -p options)
    resize2fs 1.42.13 (17-May-2015)
    Please run 'e2fsck -f /dev/loop0' first.

    ./pishrink.sh: line 148: 31375872 - : syntax error: operand expected (error token is "- ")
    resize2fs 1.42.13 (17-May-2015)
    Please run 'e2fsck -f /dev/loop0' first.

    ERROR: resize2fs failed...


    I tried running "e2fsck -f /dev/loop0" as instructed, but that didn't work either:

    e2fsck 1.42.13 (17-May-2015)
    e2fsck: Invalid argument while trying to open /dev/loop0

    The superblock could not be read or does not describe a valid ext2/ext3/ext4
    filesystem. If the device is valid and it really contains an ext2/ext3/ext4
    filesystem (and not swap or ufs or something else), then the superblock
    is corrupt, and you might try running e2fsck with an alternate superblock:
    e2fsck -b 8193 <device>
    or
    e2fsck -b 32768 <device>

    I'm completely lost...

    G 1 Reply Last reply 11 Feb 2018, 22:44 Reply Quote 0
    • G
      GtBFilms @bollwerk
      last edited by 11 Feb 2018, 22:44

      Sorry @bollwerk ,

      This is beyond my capability! (I hate these unhelpful Linux errors!)

      Hopefully someone who is a lot more skilled with Linux than me will be along shortly and able to advise!

      B 1 Reply Last reply 12 Feb 2018, 05:08 Reply Quote 0
      • B
        bollwerk @GtBFilms
        last edited by 12 Feb 2018, 05:08

        @gtbfilms No worries. I found a newer version of the same image today and it fits on the same card. Woot!

        At least I got some Linux experience from this exercise. =)

        1 Reply Last reply Reply Quote 0
        • J
          jacalvo @GtBFilms
          last edited by 18 Oct 2018, 14:49

          @GtBFilms I've been searching for a solution for this for weeks. Great post, really helping. Many thanks

          1 Reply Last reply Reply Quote 1
          • M
            moonston333 @GtBFilms
            last edited by moonston333 11 Sept 2018, 19:04 9 Nov 2018, 19:03

            @GtBFilms hi first off thanks for the tutorial

            i followed it all got it all setup and put in the command to shrink the image and it says its shrunk the image from 29g to 29g im puzzled now where am i going wrong it took about 60 seconds to give me this result

            here is a shot of the terminal what it says

            0_1541790171964_resized.jpg

            M 1 Reply Last reply 9 Nov 2018, 19:15 Reply Quote 0
            • M
              mitu Global Moderator @moonston333
              last edited by 9 Nov 2018, 19:15

              @moonston333 I'd say that the image has very little empty space left so there's nothing left to shrink.

              M 1 Reply Last reply 9 Nov 2018, 19:21 Reply Quote 1
              • M
                moonston333 @mitu
                last edited by 9 Nov 2018, 19:21

                @mitu
                hi im just wanting to take the games off it so it will make the image smaller.

                ive extracted the image and got all the files on my desktop and can delete the roms.

                but how do i remake the image again from these files

                can it be done

                how can i make a pi image

                M 1 Reply Last reply 9 Nov 2018, 19:27 Reply Quote 0
                • M
                  mitu Global Moderator @moonston333
                  last edited by mitu 11 Sept 2018, 19:27 9 Nov 2018, 19:27

                  @moonston333 We don't offer support for 3rd party images.

                  M 1 Reply Last reply 9 Nov 2018, 19:32 Reply Quote 0
                  • M
                    moonston333 @mitu
                    last edited by 9 Nov 2018, 19:32

                    @mitu sorry i know that
                    is there a program i need to make my own image to re image my own files

                    M 1 Reply Last reply 9 Nov 2018, 20:29 Reply Quote 0
                    • M
                      mitu Global Moderator @moonston333
                      last edited by 9 Nov 2018, 20:29

                      @moonston333 said in How to shrink a retropie image?:

                      is there a program i need to make my own image to re image my own files

                      To make a backup of your own image you can use the same program you used for writing the image. Either Etcher or Win32DiskImager would perform that function.

                      M 1 Reply Last reply 9 Nov 2018, 20:36 Reply Quote 0
                      • M
                        moonston333 @mitu
                        last edited by 9 Nov 2018, 20:36

                        @mitu yep true

                        but im asking ow do i make an image from all my files as ive got all the files extract how do image them back up

                        M Z 2 Replies Last reply 11 Nov 2018, 16:44 Reply Quote 0
                        • M
                          moonston333 @moonston333
                          last edited by 11 Nov 2018, 16:44

                          @moonston333

                          thanks for replies ive managed to do it

                          H 1 Reply Last reply 8 Sept 2019, 11:11 Reply Quote 0
                          • H
                            Hustler66 @moonston333
                            last edited by 8 Sept 2019, 11:11

                            @moonston333 How did you manage to remove some roms from the image.. I have extracted the .img file into a directory on my hard drive and there are 2 files, 0.fat & 1.img.
                            I cant extract the 1.img as it comes up with errors, but if I go into the rom files folder I can extract individual files with 7zip. Most of the other stuff that is showing up in the 1.img will not extract..
                            Can you explain how you extracted the original img file, removed roms and then remade the image..
                            i cant find naff all on how to do it..
                            The image I have is 1.38gb too large for the card and I have tried PiShrink but it doesnt shrink any as I think it had already been done.
                            Thanks and look forward to any information you can provide..

                            1 Reply Last reply Reply Quote 0
                            • Z
                              zachos138 @moonston333
                              last edited by 30 Dec 2020, 21:14

                              @moonston333 said in How to shrink a retropie image?:

                              @mitu yep true

                              but im asking ow do i make an image from all my files as ive got all the files extract how do image them back up

                              Hello @moonston333 I'm digging up this thread to ask if there is any further info on how to do that as I am facing the exact same issue.

                              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.

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