(SOLVED) - SD Card Image size
-
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
-
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
-
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
-
Oh... Wow OK thanks for this heads up. Saved me a lot of time. Appreciate it.
-
no worries, is why I posted it. I thought I was losing the plot :-D
-
I found this it might be of use.
-
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
-
@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
-
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 fileand 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/MountWindowsSharesPermanentlyI 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
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.