{"repo":"Drewsif/PiShrink","free":true,"listed":false,"github":"https://github.com/Drewsif/PiShrink","clone":"git clone https://github.com/Drewsif/PiShrink.git","description":"Make your pi images smaller!","language":"Shell","stars":4095,"topics":["raspberry-pi","raspberrypi","shell-script","sd-card","pi-image"],"license":"MIT","category":"self-hosted-apps","readme_excerpt":"PiShrink # 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. In addition the shrunk image can be compressed with gzip and xz to create an even smaller image. Parallel compression of the image using multiple cores is supported. Usage ## 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. -s prevents automatic filesystem expansion on the images next boot -v enables more verbose output -n disables the script from checking Github for a new PiShrink release -r will attempt to repair the filesystem using additional options if the normal repair fails -z will compress the image after shrinking using gzip. .gz extension will be added to the filename. -Z will compress the image after shrinking using xz. .xz extension will be added to the filename. -a will use option -f9 for pigz and option -T0 for xz and compress in parallel. -d will create a logfile pishrink.log which may help for problem analysis. Default options for compressors can be overwritten by defining PISHRINK GZIP or PSHRINK XZ environment variables for gzip and xz. Prerequisites ## If you are running PiShrink in VirtualBox you will likely encounter an error if you attempt to use VirtualBox's \"Shared Folder\" fe","default_branch":null,"files":null,"tree":[],"storefront":"/r/Drewsif","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Drewsif/PiShrink/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}