Skip to content

Instantly share code, notes, and snippets.

@swarzesherz
Created September 3, 2014 18:41
Show Gist options
  • Save swarzesherz/09836d9b37bb984760ed to your computer and use it in GitHub Desktop.
Save swarzesherz/09836d9b37bb984760ed to your computer and use it in GitHub Desktop.
Fill free space of zero to shrik partition in vmware
#!/bin/bash
dd if=/dev/zero of=zero.small.file bs=1024 count=102400
cat /dev/zero > zero.file
rm zero.small.file
rm zero.file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment