zerofill - Man Page

clear unused disk space and blank devices.


zerofill [options] [devices] ...


This command is a relative of nullfile.  Like nullfile, it can be used to write all unused disk space with '0', thereby making file systems that are stored on virtual machines easier to pack.  In addition, zerofill can fill unused disk space with random data before zeroing, which can be useful to remove forensic trace of deleted files.  Finally, zerofile can be told to operate on and zero (erase) complete disk devices.



Number of passes to use writing random data before wiping data.


Outputs help screen for the user.


zerofill was written by David Sugar <>.

Reporting Bugs

Report bugs to or

Referenced By


January 2010 GNU uCommon GNU Telephony