Last active
January 25, 2022 09:42
-
-
Save tknr/da74e12f77ab01df89b8fcd6afc689f8 to your computer and use it in GitHub Desktop.
do compact all virtualbox hdds
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
#/bin/bash | |
## https://www.ringosan.net/?p=258 | |
export IFS=$'\n' | |
for uuid in `vboxmanage list hdds | grep ^UUID | sed 's/ //g'| cut -d ':' -f 2` | |
do | |
echo ${uuid} | |
vboxmanage modifyhd ${uuid} --compact | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment