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 trying to shrink pi image

    Scheduled Pinned Locked Moved Help and Support
    pishrink errorhrink
    4 Posts 3 Posters 1.1k 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.
    • ?
      A Former User
      last edited by A Former User

      Tried a couple differnt times and this is what I got. 3rd time it did copy the image and then couldnt shrink it

      chris@12 /media/sf_vman5 $ sudo ./pishrink.sh virtualman5.img
      [sudo] password for chris:
      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.QZ7fWADgkG/etc/rc.local: No such file or directory
      ./pishrink.sh: line 69: [: !=: unary operator expected
      umount: /tmp/tmp.QZ7fWADgkG: not mounted
      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 142: [[: Couldn'tfindvalidfilesystemsuperblock.: syntax error: invalid arithmetic operator (error token is "'tfindvalidfilesystemsuperblock.")
      ./pishrink.sh: line 148: - Couldn'tfindvalidfilesystemsuperblock.: syntax error: invalid arithmetic operator (error token is "'tfindvalidfilesystemsuperblock.")
      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.QZ7fWADgkG/etc/rc.local.bak': No such file or directory
      umount: /tmp/tmp.QZ7fWADgkG: not mounted

      chris@12 /media/sf_vman5 $ sudo ./pishrink.sh virtualman5.img
      [sudo] password for chris:
      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.d8vkXdsERe/etc/rc.local: No such file or directory
      ./pishrink.sh: line 69: [: !=: unary operator expected
      umount: /tmp/tmp.d8vkXdsERe: not mounted
      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 142: [[: Couldn'tfindvalidfilesystemsuperblock.: syntax error: invalid arithmetic operator (error token is "'tfindvalidfilesystemsuperblock.")
      ./pishrink.sh: line 148: - Couldn'tfindvalidfilesystemsuperblock.: syntax error: invalid arithmetic operator (error token is "'tfindvalidfilesystemsuperblock.")
      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.d8vkXdsERe/etc/rc.local.bak': No such file or directory
      umount: /tmp/tmp.d8vkXdsERe: not mounted

      chris@12 /media/sf_vman5 $ sudo ./pishrink.sh virtualman5.img newtest.img
      Copying virtualman5.img to newtest.img...
      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.CONpABLF0U/etc/rc.local: No such file or directory
      ./pishrink.sh: line 69: [: !=: unary operator expected
      umount: /tmp/tmp.CONpABLF0U: not mounted
      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 142: [[: Couldn'tfindvalidfilesystemsuperblock.: syntax error: invalid arithmetic operator (error token is "'tfindvalidfilesystemsuperblock.")
      ./pishrink.sh: line 148: - Couldn'tfindvalidfilesystemsuperblock.: syntax error: invalid arithmetic operator (error token is "'tfindvalidfilesystemsuperblock.")
      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.CONpABLF0U/etc/rc.local.bak': No such file or directory
      umount: /tmp/tmp.CONpABLF0U: not mounted
      chris@12 /media/sf_vman5 $

      1 Reply Last reply Reply Quote -1
      • SanoS
        Sano
        last edited by

        Hum...
        Are you really asking for help here, on a script that has nothing to do with retropie, in order to shrink an illegal and modified retropie image containing roms ?

        1 Reply Last reply Reply Quote 1
        • ?
          A Former User
          last edited by

          tried to edit that the copy was the 3rd try instead of 2nd and add paragraphs but im getting flagged for spam

          mituM 1 Reply Last reply Reply Quote 0
          • mituM
            mitu Global Moderator @A Former User
            last edited by

            @thesteg said in Error trying to shrink pi image:

            im getting flagged for spam

            Well, not far from the truth. As @Sano said, the script is not part of the retropie and has no affiliation whatsoever with the project. You should contact the author of the script on Github.

            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.