Search For A Solution!

Total Pageviews

Saturday, April 15, 2017

Use PiShrink to shrink a RetroPie image! Full Step by Step guide (Video to follow)


*** Full Video HERE... ***

This is a full step by step guide for newbies or not

1. Make the VM

Use Virtualbox to create new Ubuntu vdi

VM Settings:
2GB Ram
Remove Floppy
NIC Bridge
VGA 32GB

Get Ubuntu ISO 16.04.2 LTS

Mount iso in your VM and boot to install
Follow ubuntu install wizard...

Reboot

2. Enable/Install Devices/Guest Additions CD Image
Open terminal

cd /media/yourusername
ls
cd thefolderNAMEdisplayedbyLS
sudo sh VBoxLinuxAdditions.run
sudo adduser yourusername vboxsf
exit

3. Map your folders/drives

Menu Devices
Set Up The Shared Folder - Mount & Permanent

Reboot/Reset the vm

Open file manager and open now your shared/mapped drive

4. Get pishrink  click to download as a zip not the sh file (cause you will get html code instead the file)
(unelss you already have it in your share/local drive)


PiShrink is a bash script that automatically shrink a pi image that will then resize to the max size of the SD card on boot. This will make putting the image back onto the SD card faster and the shrunk images will compress better.

Usage: ./pishrink [-s] imagefile.img [newimagefile.img]

If the -s option is given the script will skip the autoexpanding part of the process. If you specify the newimagefile.img parameter, the script will make a copy of imagefile.img and work off that. You will need enough space to make a full copy of the image to use that option.

NOTES:
copy pishrink.sh in your img folder location
Your image name should have no spaces...

Right click in the image folder and select OPEN IN TERMINAL
Now type:

Example:
sudo ./pishrink.sh ImageName.img
Press enter,
at the prompt enter your password,

let PiShrink do its magic and your image will be ready in few moments...

No comments:

Post a Comment