3 years ago, I needed to return my laptop to the company and also need to wipe a private laptop at the same time to sell. I wanted to make sure that all my data was completely deleted and could not restored by somebody else.
I looked for free tools to wipe. This was not easy, but I found a way to do this via a live Linux CD, SystemRescue. You can boot this CD or create a bootable USB key, in my case, via the Rufus Tool. The good news it’s all free 😉
SystemRescue contains the GNU Core utilities, and the GNU Core utilities contain the command/tool „shred
„. Shred was created for wiping disks.
I boot the laptop with USB Stick.
- I
2. on the Linux console, I type „lsblk“ for show all information about all available or the specified block devices
[root@sysresccd]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop0 7:0 0 621.6M 1 loop /run/archiso/sfs/airootfs
sda 8:0 1 7.5G 0 disk
L sda1 8:1 1 7.5G 0 part /run/archiso/bootmnt
sr0 11:0 1 1024M 0 rom
nvme0n1 259:0 0 953.9G 0 disk
We see the „nvme0n1“ device with around 1TB in the last line. depending on your hardware the name of the hard disk can vary.
2. go to the device folder with „cd /dev/“
[root@sysresccd]# cd /dev/
[root@sysresccd /dev]#
3. type „ls nvme0n1“ even here you can place the „nvme0n1“ name with the name of your disk
[root@sysresccd /dev]# ls nvme0n1
nvme0n1
You see your hard drive in the line below.
4. Now you use linux command „shred“ to wipe the disk.
we use the command with the following options
shred -vfz -n 7 /dev/nvme0n1
-v, –verbose
show progress in detail.
-f, –force
Force the permissions to allow writing if necessary.
-z, –zero
Add a final overwrite with zeros to hide shredding.
–n
, –iterations=N
Instead of the default (3) times, overwrite the data N times.
but in our case we 7 because
[root@sysresccd /dev]# shred -vfz -n 7 /dev/nvme0n1
shred: /deu/nune0n1: pass 1/8 (random)...
shred: /deu/nune0n1: pass 1/8 (random)...2.2GiB/954GiB 0%
shred: /deu/nume0n1: pass 1/8 (random)...5.1GiB/954GiB 0%
shred: /deu/nume0n1: pass 1/8 (random)...7.9GiB/954GiB 0%
shred: /deu/nume0n1: pass 1/8 (random)...10GiB/954GiB 1%
shred: /deu/nune0n1: pass 1/8 (random)...13GiB/954GiB 1%
shred: /deu/nune0n1: pass 1/8 (random)...16GiB/954GiB 1%
shred: /deu/nume0n1: pass 1/8 (random)...19GiB/954GiB 2%
shred: /deu/nume0n1: pass 1/8 (random)...22GiB/954GiB 2%
5. Just wait until it is completed.
Neueste Kommentare