how to wipe your system data secure1 min read

Prabhin Prabharkaran Administrator
DevOps Engineer

He is a Technical professional. He is a person who loves to share tricks and tips on the Internet. He Posts what he does!

follow me

HI all, this document helps you how to wipe your system data secure.
There are certain cases you need to sell or decommission HDD. Sometimes you might have stored some important data in the disk. So before that, you might need to wipe the data securely. So here we are using random digits which writes on the disk.

Here is the step which I have followed before reselling my laptop.

1. Boot the live CD
2. Select try ubuntu while booting rather than installing
3. Once ubuntu is fully loaded, open the terminal from the search bar
4. execute the below command to run the commands as a root user

sudo su

5. Execute the below command to identify the HDD.

fdisk -l

It may show multiple disks with USB bootable disk also, so identify the disk based on size

Below is the sample output

Disk /dev/sda: 238.5 GiB, 256060514304 bytes, 500118192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 448571C2-EE42-4997-BA0A-614A3478508A

6. Note down the disk name /dev/sdXX

7. execute the below command to wipe the disk


dd if=/dev/urandom of=/dev/sdX bs=1M

replace X with the target drive letter.

© 2020, Techrunnr. All rights reserved.

Questions Answered
Articles Written
Overall Points

Related posts

Leave a Reply