Advertisement
Guest User

Untitled

a guest
Mar 30th, 2015
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. /boot
  2.  
  3. mkdir /root/tmpfs/
  4. mount -t tmpfs tmpfs /root/tmpfs/
  5. debootstrap --variant=buildd --arch amd64 precise /root/tmpfs/
  6. mkdir /root/tmpfs/mainroot
  7. mount --bind / /root/tmpfs/mainroot
  8. mount --bind /dev /root/tmpfs/dev
  9. chroot /root/tmpfs/
  10.  
  11. # fill mainroot partition to wipe previously deleted data files
  12. dd if=/dev/zero of=/mainroot/root/bigfile; rm /mainroot/root/bigfile
  13. # now clobber the entire partition, probably won't be able to stay connected to ssh after starting this
  14. # obviously change '/dev/md1' to the device that needs cleared
  15. nohup dd if=/dev/zero of=/dev/md1 >/dev/null 2>&1
  16.  
  17. /home
  18. /opt
  19. /var
  20. /etc
  21. /usr
  22.  
  23. dd if=/dev/urandom of=/dev/sda
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement