#!/bin/bash source /etc/profile # fill all free hdd space with zeros dd if=/dev/zero of="$chroot/boot/EMPTY" bs=1M rm "$chroot/boot/EMPTY" dd if=/dev/zero of="$chroot/EMPTY" bs=1M rm "$chroot/EMPTY" # fill all swap space with zeros and recreate swap swapoff /dev/sda3 shred -n 0 -z /dev/sda3 mkswap /dev/sda3 exit