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

    Error during pishrink retropie image help please ASAP

    Scheduled Pinned Locked Moved Help and Support
    helpretropiepishrinkvirtualbox
    8 Posts 4 Posters 2.5k 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.
    • J
      jmorris
      last edited by

      HELP!!!!! I have tried to pishrink using both mint and ubuntu in virtualbox. I have the image and pishrink in the folder. When I execute the pishrink I get the following. Does anyone know how to fix this? I am trying to clone my retropie for christmas present. Here is a link to the error I get. https://drive.google.com/open?id=0B0SRkuIygXh0T1ZJRnJJMDFwRTFJaE4zZXFqdmo0bUY5WW44

      1 Reply Last reply Reply Quote 0
      • chipsnblipC
        chipsnblip
        last edited by

        can't access the link to your error, it says "You need permission"

        1 Reply Last reply Reply Quote 0
        • J
          jmorris
          last edited by jmorris

          Should be fixed now. Try to view it now.

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

            @jmorris Is this a single OS installation or you have more than 2 partitions on the SD card ?
            The error seems to indicate that the script cannot find a valid linux filesystem on the 2nd partition. What's the output of the command below ?

            parted -m 32GBpi.img unit B print
            
            1 Reply Last reply Reply Quote 0
            • J
              jmorris
              last edited by

              I am new to this so if you can tell me how to check that I will. I purchased this retropie already setup and now I am trying to make a copy of it for friend.

              mituM 1 Reply Last reply Reply Quote -2
              • mituM
                mitu Global Moderator @jmorris
                last edited by mitu

                @jmorris said in Error during pishrink retropie image help please ASAP:

                I am new to this so if you can tell me how to check that I will

                I just did - run the command in my previous post.

                I purchased this retropie already setup

                Forum rules - no support for 3rd party images, there are too many differences in configuration and customizations between the RetroPie provided image and these images. Not too mention you got scammed, since selling systems with RetroPie is against the RetroPie license.

                1 Reply Last reply Reply Quote 1
                • J
                  jmorris
                  last edited by

                  ok thanks

                  1 Reply Last reply Reply Quote 0
                  • papinistP
                    papinist
                    last edited by

                    I have a similar problem trying to shrink my image with pishrink.

                    pi@pi-VirtualBox /media/sf_SD__images $ sudo ./pishrink.sh 64gb_Papberry_arcade.img
                    [sudo] password for pi:
                    tune2fs: Attempt to read block from filesystem resulted in short read while trying to open /dev/loop0
                    Couldn't find valid filesystem superblock.
                    tune2fs: Attempt to read block from filesystem resulted in short read while trying to open /dev/loop0
                    Couldn't find valid filesystem superblock.
                    mount: /dev/loop0 is write-protected, mounting read-only
                    mount: /dev/loop0: can't read superblock
                    md5sum: /tmp/tmp.JImqrA1mnE/etc/rc.local: No such file or directory
                    ./pishrink.sh: line 63: [: !=: unary operator expected
                    umount: /tmp/tmp.JImqrA1mnE: not mounted
                    e2fsck 1.42.13 (17-May-2015)
                    e2fsck: Operation not permitted while trying to open /dev/loop0
                    You must have r/w access to the filesystem or be root
                    resize2fs 1.42.13 (17-May-2015)
                    resize2fs: Operation not permitted while trying to open /dev/loop0
                    ./pishrink.sh: line 136: [[: Couldn'tfindvalidfilesystemsuperblock.: syntax error: invalid arithmetic operator (error token is "'tfindvalidfilesystemsuperblock.")
                    expr: syntax error
                    expr: syntax error
                    expr: syntax error
                    resize2fs 1.42.13 (17-May-2015)
                    resize2fs: Operation not permitted while trying to open /dev/loop0
                    Couldn't find valid filesystem superblock.
                    ERROR: resize2fs failed...
                    mount: /dev/loop0 is write-protected, mounting read-only
                    mount: /dev/loop0: can't read superblock
                    mv: cannot stat '/tmp/tmp.JImqrA1mnE/etc/rc.local.bak': No such file or directory
                    umount: /tmp/tmp.JImqrA1mnE: not mounted

                    @mitu running the command you said, this is the output:

                    pi@pi-VirtualBox /media/sf_SD__images $ parted -m 64gb_Papberry_arcade.img unit B print
                    WARNING: You are not superuser. Watch out for permissions.
                    BYT;
                    /media/sf_SD__images/64gb_Papberry_arcade.img:64021856256B:file:512:512:msdos::;
                    1:4194304B:63963135B:59768832B:fat16::boot, lba;
                    2:63963136B:63864569855B:63800606720B:ext4::;

                    (I don't know how to use the forum editor to make this code looks like yours, with black background)

                    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.