User Tools

Site Tools


fill_with_zero_s

If you want to send us your comments, please do so. Thanks
More on comments


Fill with zero's

CommandExplanationRemark
dd
cat /dev/zero > /mnt/fs/zeros; sync; rm /mnt/fs/zeros Do not use this. Can slow down fsck
sfill Do not use this. Can slow down fsck. Not in the Debian repository
shred --iterations=1 --verbose --zero file.txt Works on files not on disk nor partitions
zerofreeScans the free blocks in an ext[2-4] filesystem and fills any non-zero blocks with zeroesWorks on ext[2-4]. Output is like: 1586/2910/4096 being (our guess) Zeroed bytes/Free partition space in bytes/Partition or disk size in bytes

Background information on zerofree

Other values

Fill with 0xFF or any other byte value can be done with

  • 377 is octal for 0xFF
  • “x” is the drive number
tr '\0' '\377' < /dev/zero > /dev/sdx
zerofree -f value

Main subjects on this wiki: Linux, Debian, HTML, Microcontrollers, Privacy

RSS
Disclaimer
Privacy statement
Bugs statement
Cookies
Copyright © : 2014 - 2024 Webevaluation.nl and the authors
Changes reserved.

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
fill_with_zero_s.txt · Last modified: 06-01-2024 21:46 by wim