Video failed to load

nwipe Tutorial: Secure Data Destruction with an Open-Source Tool

687 words
3 minutes
nwipe Tutorial: Secure Data Destruction with an Open-Source Tool
nwipe Tutorial: Secure Data Destruction with an Open-Source Tool

Translation Notice

This article was originally written in Chinese and translated into English with the assistance of AI. The translation has been reviewed and edited for clarity, accuracy, and readability. Please refer to the original source where necessary, especially for technical terms, commands, configuration details, and proper nouns.

1. What Is nwipe?#

nwipe[1] is an open-source command-line tool designed to securely and thoroughly erase data from hard drives, including HDDs and SSDs. It is a fork and modern successor to the earlier well-known tool DBAN (Darik’s Boot and Nuke).

Its core purpose is to overwrite data multiple times with random or specified patterns before storage media is retired, resold, or recycled, ensuring that the original data cannot be recovered by software or hardware and protecting privacy and security.

martijnvanbrummelen
/
nwipe
nwipe secure disk eraser
—
—
GPL-2.0
C

nwipe
nwipe

2. Key Features of nwipe#

  1. Free and open source: The code is public and transparent. Anyone can audit, modify, and redistribute it, making the tool trustworthy.

  2. Multiple erasure standards: It includes internationally recognized algorithms for different security requirements, including:

    • DoD 5220.22-M: U.S. Department of Defense standard (3 or 7 passes)
    • Gutmann: The classic method proposed by Peter Gutmann (35 passes; very thorough for older technology, but potentially excessive for modern drives such as SSDs)
    • PRNG Stream: Multiple overwrites using a pseudorandom-number generator (the number of passes is configurable)
    • Verify Only: A fast mode that checks whether every disk sector is readable without erasing data, useful for detecting bad sectors
  3. Independent of the installed OS: nwipe is commonly included in Live Linux distributions such as Parted Magic and SystemRescue, or can be placed on a bootable USB drive. It runs independently of the operating system on the disk, allowing the system disk itself to be erased without file-lock or permission issues.

  4. Automation and batch processing: Command-line parameters enable scripted, automated batch erasure, making it suitable for data centers and large disk inventories.

  5. Detailed logs: Later versions generate logs containing the serial number, model, erasure method, start and end times, and final verification result (PASS/FAIL), which is important for auditing and compliance.

  6. Broad hardware compatibility: It supports storage devices connected through SATA, SAS, PCIe/NVMe, and USB.

3. Install nwipe (Skip to Section 4 if Already Installed)#

Prerequisites#

  1. A Linux distribution (to erase an entire device, use a Live OS booted from an external medium such as a USB drive)
  2. A computer or server capable of recognizing your drive (SAS, SATA, SSD, NVMe, and so on)

Installation#

  1. Boot into an operating system. Any Linux distribution will work. To erase an entire device, I recommend systemrescue[1], a Live OS for Linux system recovery that includes many tools, including nwipe.

  2. Install nwipe.

This method may not install the latest version and may not support PDF reports (PDF reports require nwipe version >= 0.35).

Package-manager installation
Package-manager installation

  • Package-manager installation 👇
Terminal window
# Ubuntu, Debian, etc.
apt-get update -y
apt-get install nwipe -y
# CentOS, OpenEuler, Rocky Linux, etc.
yum update -y
yum install install nwipe -y
# Linux distributions supported by dnf
dnf update -y
dnf install install nwipe -y
  • Build from source 👇
Terminal window
wget https://github.com/martijnvanbrummelen/nwipe/archive/refs/tags/v0.38.tar.gz
tar -xzf v0.38.tar.gz
cd nwipe-0.38/
./autogen.sh
./configure
make
sudo make install
  1. Verify the installation. If nwipe --version returns a version, the installation succeeded. For example:
Terminal window
root@ubuntu:~# nwipe --version
nwipe version 0.38
root@ubuntu:~#

4. Destroy Data on a Retired Drive with nwipe#

Here I use a VMware virtual machine running Ubuntu Server.

  1. Run sudo nwipe to open the nwipe interface. Its GUI-like interface makes data erasure much easier.
  2. Select the storage medium to erase. Use the arrow keys to navigate and Space to select; selected devices display “wipe”.
    nwipe
    nwipe
  3. Press M to select the erasure standard. Use the arrow keys to navigate and Enter to confirm. (See 2. Key Features of nwipe for standards, and “Data Destruction: An Overview of Technologies and Standards” for differences.)
    Erase Method
    Erase Method
  4. Press V to choose the verification method. The default verifies the final pass; you can disable verification to improve speed.
    Verify
    Verify
  5. Press s to start overwriting. Because this is risky and irreversible, a safety check requires you to press Shift+S or uppercase S before the operation begins.
    Start Erase
    Start Erase
  6. When erasure is complete, press CTRL+C to exit nwipe. The report is generated in the current directory (supported only in newer versions).
    Complete
    Complete
    Report
    Report
  7. Finally, copy the PDF file out manually.
    PDF Report
    PDF Report

🔗 Related links:

[1] nwipe Project Repository: https://github.com/martijnvanbrummelen/nwipe

[2] systemrescue Official Website: https://www.system-rescue.org/

Support & Share

If this article helped you, please share or support!

Sponsor
nwipe Tutorial: Secure Data Destruction with an Open-Source Tool
https://blog.bytesycn.cn/posts/8532da7b-b852-4ad5-81be-9ceddd33fabb/
Author
Ryan Zhang
Published at
2025-08-22
Related PostsSmart
1
Data Destruction: An Overview of Technologies and Standards
KnowledgeAn analysis of data-destruction technologies and standards, including domestic and global overwrite standards such as the three- and seven-pass methods in GA/T 1143 and DoD 5220.22-M; logical erasure of storage media; and physical shredding as the ultimate safeguard. The article compares mainstream standards, their principles, strengths, weaknesses, and use cases, and introduces common destruction tools such as AOMEI Assistant and nwipe.
2
TOTP Two-Factor Authentication for Windows Remote Logins
TutorialAdd TOTP-based two-factor authentication to Windows Remote Desktop (RDP) with multiOTP to improve remote-login security. Supports mainstream authenticators such as Google Authenticator and Tencent Authenticator.
3
A Record of Upgrading My NAS
TinkeringMy NAS originally ran a hacked Synology system, whose DSM web interface would freeze when two disks were read and written simultaneously. I considered TrueNAS, but its ZFS filesystem requires ECC memory; since the original board and CPU did not support ECC, I planned a hardware upgrade.
4
Information Leaks — A Responsibility Software Vendors Must Own
Personal ViewsBehind the frequent data leaks lies society’s increasingly blurred understanding of privacy. Developer negligence, institutional apathy, and user compromise have woven a exposed online world. Security is no longer merely a technical issue.
5
Is InfiniBand’s “Infinite Bandwidth” Really Infinite? 🤔
KnowledgeA casual look at InfiniBand, a leader in high-speed networking, and how we designed an IB-based storage network.
Random PostsRandom

Comments

Profile Image of the Author
Ryan Zhang
Keep building, keep thinking, keep creating.
Announcement
Welcome to my blog!
Categories
Tags
Latest Moments
Site Statistics
Posts
30
Categories
7
Tags
42
Total Words
117,260
Running Days
0 days
Last Activity
0 days ago
Table of Contents