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

    (SOLVED) - SD Card Image size

    Scheduled Pinned Locked Moved Help and Support
    9 Posts 2 Posters 8.4k 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.
    • U
      UP4IT
      last edited by UP4IT

      Hi all,
      I had an issue with restoring my Raspberry Pi3 RetroPie image to a different 32GB Micro SD card. Win32 Disk Imager reported that the brand new SD card was too small.

      Using the instructions here http://www.aoakley.com/articles/2015-10-09-resizing-sd-images.php and an Ubuntu VM, I managed to shrink the image by an amount so that I could copy the SD image to a new SD.

      I hope that helps others in the same situation. It took quite a few hours to find the answer.

      Enjoying my Retro Pie :-)

      Cheers

      Stuart

      1 Reply Last reply Reply Quote 0
      • plasmah77P
        plasmah77
        last edited by

        I should not have to do this if my SD card is the same size as my image correct? In other words I have a 64 gig Micro SD and I image that, Now I want to copy that image to a new 64 gig micro SD. Will that work? Thanks

        1 Reply Last reply Reply Quote 0
        • U
          UP4IT
          last edited by

          You might have to, my replacement Sandisk Ultra 32GB was identical to the original, however it showed up as a few hundred bytes smaller than the original. Apparently identical SD cards may not be identical.

          I was a bit stumped for a while

          1 Reply Last reply Reply Quote 0
          • plasmah77P
            plasmah77
            last edited by

            Oh... Wow OK thanks for this heads up. Saved me a lot of time. Appreciate it.

            1 Reply Last reply Reply Quote 0
            • U
              UP4IT
              last edited by

              no worries, is why I posted it. I thought I was losing the plot :-D

              1 Reply Last reply Reply Quote 0
              • plasmah77P
                plasmah77
                last edited by

                I found this it might be of use.

                1 Reply Last reply Reply Quote 0
                • U
                  UP4IT
                  last edited by UP4IT

                  That is pretty much identical to http://www.aoakley.com/articles/2015-10-09-resizing-sd-images.php

                  I just mounted my Windows folder that contained my SD image as a share in Ubuntu VM and followed the same steps. It's important to note down the start sectors and new size info. I just reduced the size by 5GB as I knew my image only had 4GB of data out of the 32GB space

                  plasmah77P 1 Reply Last reply Reply Quote 0
                  • plasmah77P
                    plasmah77 @UP4IT
                    last edited by

                    @UP4IT Yea cool... I can see this being a little hairy for people with no experience with Linux but at least there is options. There has to be an easier way and I will continue to seek it out. Lol

                    1 Reply Last reply Reply Quote 0
                    • U
                      UP4IT
                      last edited by

                      This is the only way I found to do it, if you keep a backup copy of the SD image and work on another copy, you can't really break anything. It is actually quite straight forward as long as you follow the instructions. I started at this part
                      Resizing a partition within an image file

                      and stopped here
                      truncate -s $(((END+1)*512)) imagename.imgThe image was on my Windows shared folder i had mounted in my Ubuntu VM.

                      I used the info here to mount the Windows Share
                      https://wiki.ubuntu.com/MountWindowsSharesPermanently

                      I knew how to then copy the new image to SD and also had a copy of the original in case i stuffed up.

                      It's all a good learning experience

                      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.