PiShrink: Difference between revisions
Jump to navigation
Jump to search
JimmyRustles (talk | contribs) (→Usage) |
JimmyRustles (talk | contribs) No edit summary |
||
Line 7: | Line 7: | ||
== Usage == | == Usage == | ||
sudo pishrink.sh [-s] imagefile.img [newimagefile.img] | sudo pishrink.sh [-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. | |||
---- |
Revision as of 02:24, 8 September 2020
Project Homepage:
https://github.com/Drewsif/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.
Usage
sudo pishrink.sh [-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.