Script to shred all disks found on a host
Assume logged in as root (usually default for SystemRescueCD)
- git clone
- ./autonuke
Nodes must all be connected to a common network. One node will act as master and serve DHCP and PXE boot requests.
See also: http://www.sysresccd.org/Sysresccd-manual-en_PXE_network_booting
- Boot systemrescuecd from cd
- Configure network settings:
- /etc/cond.f/network
ifconfig_eth0=”192.168.0.5 netmask 255.255.255.0” defaultroute=”gw 192.168.0.254”
- If more than 50 hosts:
- Change PXEBOOTSRV_DHCPRANGE in /etc/conf.d/pxebootsrv
- /etc/init.d/pxebootsrv start
- Edit /tftpboot/pxelinux.cfg/default
append … ar_source=http://192.168.1.5 setkmap=us
- Copy contents of
autonuke
to/tftpboot/autorun
- Any node that PXEboots on this network will automatically shred all hard drives without prompting.