New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Comments
If you can somehow boot from an ISO or if your provider has rescue boot that would be one way. Most providers can hook up a USB DVD temporarily.
Depending on how your HD is partitioned and what tool you want to use you could probably zero the non-boot partitions. There shouldn't be anything in the boot partition you would need to worry about. I've never tried that though. Just spit balling.
dd bs=100M if=/dev/zero of=/dev/sda
or dd bs=100M if=/dev/urandom of=/dev/sda
1) This will work an order of magnitude slower
2) You don't actually need random, zero is enough, this has been proven time and time again in various studies.
[citation needed]
http://security.stackexchange.com/questions/10464/why-is-writing-zeros-or-random-data-over-a-hard-drive-multiple-times-better-th
All you're trying to do is overwrite data which is why writing zeros is fine. You aren't trying to encrypt the data. It isn't the disks that would be taxed from random, it is the random character generation performed by the CPU, so unless you have a supercomputer, zeros will be way faster.
The question I have about running dd bs=100M if=/dev/zero of=/dev/sda on a live server is if the server would crash before it finishes. I've always run it from a live CD so the system still has access to any files it needs during the execution.
Turn off all swap beforehand (swapoff -a), and it will not.
If i want to zero disk /dev/sda and /dev/sdb which share a raid-0 LVm partition, does one just repeat the dd command with /dev/sdb
If you can mount the software RAID in a live boot thingy then you can dd 0's to the mount, otherwise just do it to sda and sdb separately.