Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /boot
- mkdir /root/tmpfs/
- mount -t tmpfs tmpfs /root/tmpfs/
- debootstrap --variant=buildd --arch amd64 precise /root/tmpfs/
- mkdir /root/tmpfs/mainroot
- mount --bind / /root/tmpfs/mainroot
- mount --bind /dev /root/tmpfs/dev
- chroot /root/tmpfs/
- # fill mainroot partition to wipe previously deleted data files
- dd if=/dev/zero of=/mainroot/root/bigfile; rm /mainroot/root/bigfile
- # now clobber the entire partition, probably won't be able to stay connected to ssh after starting this
- # obviously change '/dev/md1' to the device that needs cleared
- nohup dd if=/dev/zero of=/dev/md1 >/dev/null 2>&1
- /home
- /opt
- /var
- /etc
- /usr
- dd if=/dev/urandom of=/dev/sda
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement