especially in times of EU-GDPRDSGVO but also for the user’s privacy effectively shredding data is important.

if the admin-user wants to wipe-shred-secure-delete entire harddisks look at this article.

GNU Linux Debian 10 can do that 🙂

# install software
# deb based
hostnamectl; # tested on
  Operating System: Debian GNU/Linux 10 (buster)
            Kernel: Linux 4.19.0-14-amd64
      Architecture: x86-64
apt install zip secure-delete

# rpm based
hostnamectl; # tested on
  Operating System: CentOS Linux 8
       CPE OS Name: cpe:/o:centos:centos:8
            Kernel: Linux 4.18.0-240.10.1.el8_3.x86_64
      Architecture: x86-64
yum install zip srm.x86_64

# encrypt all files also filenames (good idea to also encrypt meta info too)
# warning! name the folder or to encrypt something random ! X-D
mv -v /folder/to/encrypt /folder/to/$FILENAME
zip -r $ /folder/to/$FILENAME

#      OUTPUT-FILE             INPUT-FILE
zip -e $ $

lsb_release -a; # tested on
No LSB modules are available.
Distributor ID:	Debian
Description:	Debian GNU/Linux 10 (buster)
Release:	10
Codename:	buster

apt install wipe
wipe *
Yes? # type Yes hit Enter
... overwrite 34x passes with zeros # pretty fast :)

# srm is complaining about "HARDLINKED" files for whatever reason
# then shred the unencrypted version of the file
# maximum paranoia: overwrite with 38x passes of random
srm -vr /folder/to/$FILENAME
srm -vr $

# minimum paranoia: overwrite with 1x pass of random
srm -rfllv /folder/to/$FILENAME
srm -rfllv $

related manpages:

can only do files:

GNU Linux – automatic harddisk wipe secure delete erase script with dd

liked this article?

  • only together we can create a truly free world
  • plz support dwaves to keep it up & running!
  • (yes the info on the internet is (mostly) free but beer is still not free (still have to work on that))
  • really really hate advertisement
  • contribute: whenever a solution was found, blog about it for others to find!
  • talk about, recommend & link to this blog and articles
  • thanks to all who contribute!