[CentOS] wiping out data on a disk (no physical acess to the machine)

Sun Jan 13 00:03:57 UTC 2013
Gordon Messmer <yinyang at eburg.com>

On 01/08/2013 02:36 PM, Carl T. Miller wrote:
> 1)   connect using ssh and stop all services
> 2)   swapoff /dev/sdXX
> 3)   shred -n5 -z -v /dev/sdX

I assume that all of the disks are to be shredded.  Shredding non-system 
disks wouldn't be difficult enough to ask about.  If you shred a mounted 
filesystem, the kernel will probably panic if it tries to read from the 
filesystem after shred starts overwriting data.

> 4)   echo 1 > /proc/sys/kernel/sysrq
> 6)   echo o > /proc/sysrq-trigger

You wouldn't be able to do that once shred had run.