New on LowEndTalk? Please Register and read our Community Rules.
Script to erase a old vps - best practices

in General
Hi!
What are the best practices to erase all the information before ends the contract?
What are the best prctices?
It looks like you're new here. If you want to get involved, click one of these buttons!
Hi!
What are the best practices to erase all the information before ends the contract?
What are the best prctices?
Comments
shred
After booting into rescue mode:
dd if=/dev/zero of=/dev/sda bs=1M count=1
If you have a large disk, you can also increase the block size to reduce execution time.
if you want not just zeros but random data, you could use something like (faster than dd with urandom directly)
openssl enc -aes-256-ctr -pass pass:"$(dd if=/dev/urandom bs=128 count=1 < /dev/null | base64)" -nosalt </dev/zero | dd of=/dev/sdX
But when you do OS re-Install in the warning it said "all data will be loss", .. about if you just do two different OS installation??
Q:****How do I erase data from a hard disk so no one can ever recover it?
A: If it’s sensitive data, don’t trust any kind of formatting or zeroing out. Even if you do multiple pass Linux dd if=/dev/zero of=/dev/sda or some kind of Windows-based zero-ing software, there’s still a chance someone can recover. And definitely don’t just “quick format” the drive — that’s like erasing the table of contents and leaving all the other pages intact!
What’s the only sure way? I pay a local guy who owns one of these to come onsite while I watch him destroy the hard drives.
https://www.quora.com/While-installing-Ubuntu-I-erased-all-of-the-data-I-had-in-a-hard-disk-from-Windows-How-do-I-recover-it-or-at-least-50GB-out-of-all-300GB
Yep, you go to the dc, take those drives and fry them in microvawe for flat hour. And than just drown in the ocean. Evidences destroyed.
How to quickly destroy a computer Hard Drive HDD
Leave out the count=1 to erase everything
Throw away the encryption key. Oh, you're disks aren't encrypted? ¯\_(ツ)_/¯
*your
> inb4 I get destroyed by @AlwaysSkint
reinstall os
Take the rackmount server out of its rack.
Take it home.
Place it in your bathtub.
Shower it.
Power it on just to be sure.
Job done.
At what cost, me wonders.
Surely it must be faster to simply install Windows on it, and open up the RDP port to the world.
It's hard to recover ZFS dataset after being deleted