Created
December 5, 2016 03:13
-
-
Save jacricelli/b1756b170e62f19d27acfe8d78fe3132 to your computer and use it in GitHub Desktop.
Using ZeroFree to shrink a VirtualBox Linux Image.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
sudo apt-get install -y zerofree | |
sudo mount -r /dev/sda1 /mnt | |
sudo zerofree -v /dev/sda1 | |
sudo umount /dev/sda1 | |
sudo poweroff |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment