On 01/08/2013 02:36 PM, Carl T. Miller wrote:
- connect using ssh and stop all services
- swapoff /dev/sdXX
- 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.
- echo 1 > /proc/sys/kernel/sysrq
- echo o > /proc/sysrq-trigger
You wouldn't be able to do that once shred had run.