Unusual Question

David Christensen dpchrist at holgerdanske.com
Fri Jul 14 04:48:31 UTC 2017


On 07/09/17 02:57, Doug Hardie wrote:
> I have a FreeBSD 9.3 remote server that needs to be purged.  I know that rm -rf / will remove all the directory entries, but I need to write over the drive.  I thought that dd if=/dev/zero of=/dev/ada0 might do the trick, but it gives an not permitted error.  The whole thing can crash and burn at the end.  This is an unmanned site so moving drives is not viable.

If the machine has BIOS and the system drive isn't too large, write an 
assembly program that fits into the MBR bootstrap code area to wipe the 
rest of the drive, assemble the program, write it into the MBR, and reboot.


Bonus: the program deletes the MBR when done wiping the rest of the drive.


David



More information about the freebsd-questions mailing list