Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Jul 2017 21:44:30 -0700
From:      David Christensen <dpchrist@holgerdanske.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Unusual Question
Message-ID:  <b5b8a49e-804d-15be-25b7-ff7c29a5ae8a@holgerdanske.com>
In-Reply-To: <888578F8-AD68-4993-823C-152789F3C929@mail.sermon-archive.info>
References:  <888578F8-AD68-4993-823C-152789F3C929@mail.sermon-archive.info>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b5b8a49e-804d-15be-25b7-ff7c29a5ae8a>