Skip to content

Fill entire free space in a partition with files containing zero bytes.

License

Notifications You must be signed in to change notification settings

saurabhg17/FillPartition

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Fill Partition

Fill free space in a partition with files containing zero bytes.

The purpose of this script is to allow the user to fill the entire free space in the specified partition with files containing zero bytes as a safety measure before discarding a hard drive.

The script has one mandatory argument (the path of the partition) and one optional argument (--outputDir, -od) the directory where files should be written. If the optional argument is not specified, it is set to the partition path.

Examples:

  • python FillPartition.py -od C:\Users\USER_NAME\ C:
  • python FillPartition.py -od /home/USER_NAME /

Note that the output directory should have write permission for the current user, otherwise the script will fail.

About

Fill entire free space in a partition with files containing zero bytes.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages