-
-
Save bofhbug/40915da427790eca33eadbb949a17a3e to your computer and use it in GitHub Desktop.
Zero out space on a virtual machine
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
init 1 | |
for i in `mount | grep sda | grep ext | cut -b 9` ; do mount -o remount,ro /dev/sda$i && zerofree -v /dev/sda$i && mount -o remount,rw /dev/sda$i ; done ; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment