4

Clear unused space with zeros (btrfs)

view full story
linux-howto

http://unix.stackexchange.com – How to clear unused space with zeros ? (btrfs) I'm looking for something smarter than cat /dev/zero > /mnt/X/big_zero ; sync; rm /mnt/X/big_zero Like FSArchiver is looking for "used space" and ignores unused, but opposite site. Purpose: I'd like to compress partition images, so filling unused space with zeros is highly recommended. Btw. For ext3,ext4 : Clear unused space with zeros (HowTos)