If you are using these commands your files will be irrevocably deleted! So make sure you understand what you are doing!

To securely delete all your data from your hard drive, you can boot your computer with a Linux distribution either from a CD or DVD drive or a simple USB stick. You can find a how to on creating such a USB stick here.

Once you’ve booted up your computer with the thumb drive, you need to open a terminal and enter the following command:

#> shred -v /dev/sdX

Where X is the drive identifier. Your first hard drive is likely to be /dev/sda, but your mileage may vary. If you are unsure that this is the correct drive, you can execute

#> cfdisk /dev/sda

and see from the size of the drive and partitions if this is the expected drive.

Like this post? Share on: TwitterFacebookEmail

Jens Frey Avatar Jens Frey is the creator of the datapile blog.

Keep Reading





Stay in Touch