08-31-2019, 08:52 PM
how to wipe data. Use at your own risk! no data recover service if misused/misunderstood commands lead to data loss
Examples:
Your internal hdd is sda and you want to wipe partition 1 select one of the commands.
faster, secure enough for you
more secure, slow
Your internal flash drive is sdb and you want to wipe partition 7 select one of the commands.
faster, secure enough for you
more secure, slow
Your SD card is sdc and you want to wipe whole SD card select one of the commands.
faster, secure enough for you
more secure, slow
Keep in mind that wiping SSD, SD card, usb flash drives, usb SSD or any solid state media wears out after limited amount of program/erase cycles so don't wipe solid state media for fun.
Code:
sudo dd if=/dev/zero (faster, less secure) or /dev/urandom (slow, more secure) of=/dev/sdx(y)
Examples:
Your internal hdd is sda and you want to wipe partition 1 select one of the commands.
Code:
sudo dd if=/dev/zero of=/dev/sda1
Code:
sudo dd if=/dev/urandom of=/dev/sda1
Your internal flash drive is sdb and you want to wipe partition 7 select one of the commands.
Code:
sudo dd if=/dev/zero of=/dev/sdb7
Code:
sudo dd if=/dev/urandom of=/dev/sdb7
Your SD card is sdc and you want to wipe whole SD card select one of the commands.
Code:
sudo dd if=/dev/zero of=/dev/sdc
Code:
sudo dd if=/dev/urandom of=/dev/sdc
Keep in mind that wiping SSD, SD card, usb flash drives, usb SSD or any solid state media wears out after limited amount of program/erase cycles so don't wipe solid state media for fun.