2
I have a (physically) remote server I'd like to securely destroy. Unfortunately, the disk is partitioned with a single, large root partition and nothing else. Can I reliably use dd
to wipe the device containing the root filesystem?
Something simple like:
$ sudo nohup dd if=/dev/urandom of=/dev/sda bs=1024
Obviously, I'll never see the output of the job, so I won't be able to verify that it completed successfully. The dd
and nohup
programs should be small enough and there's nothing else running on the server at this point, so there's no reason for those programs to be ejected from memory while they run. Will they run to completion, or will the kernel likely panic at some point before dd
completes?
I'm contemplating other possibilities, but I'll ask about those in separate questions.
I've tried doing this with the OS booted and it failed. Doing it without the OS booted or with the OS running from a ramdisk seems to be the solution. Since you mentioned it is a server I assume out of band management is available making Hackslash's answer a good one. +1 – Hennes – 2018-01-02T19:19:52.950
Although appreciate your answer for its Truth, it doesn't really answer my actual question. – Christopher Schultz – 2018-01-02T19:49:24.483
Well Chris, the answer is that you can't be sure of what happens after the system goes down and you lose your remote connection. That answer is even less helpful. You have to assume that it failed if you can't confirm success. – HackSlash – 2018-01-02T19:52:51.140