FIXONIC
SellSavedMy Fixonic
Official iFixit API visual reference

Diagnosing and Erasing Hard Drives - Debian based distros, Parted Magic Legacy and 3/26+/Erase Station (12/26+)

NOTE: This guide is only for HDDs, and most...

iFixit Library Linux Easy 6 hours - 1 week Guide 222947
Open the authorised source
Licensed iFixit integration

This attributed iFixit guide is displayed through Fixonic's recorded commercial API permission. iFixit remains the independent source and author of the procedure.

Guide overview

Before you begin

NOTE: This guide is only for HDDs, and most ~6-7TB+ drives will almost certainly take longer then 7 days to erase with the multi overwrite methods. Refer to this guide for SSDs. Ubuntu 26.04 status: Tested working for now. However due to the push for Snaps, I cannot guarantee this will remain accurate. This will be the last Ubuntu flavor I test. Why Test Your Drives? Most drive failures happen without warning. Catching issues early gives you time to back up your data and replace the drive. While SMART diagnostics are not perfect, they will detect the majority of impending failures. Reliability note: Budget drives (WD Blue/Green) carry higher failure risks after 3–5 years than performance drives (WD Black); some series also have known firmware bugs (e.g., 7200.11, Rosewood), or issues that cause sudden catastrophic failure (e.g, Seagate Rosewood and 7.01, IBM DeskStar 75GXP - both have known platter scraping issues).DO NOT USB SECURE ERASE SEAGATE ROSEWOODS - use a real SATA port! These drives are prone to permanent BSY locks - even the Barracuda Pro! If the drive has SMART errors, the risk exponentially increases, especially if interrupted and it is often unrecoverable. Nwipe avoids touching the firmware and is safer (but slower), especially for RMA purposes where this may affect a warranty claim. If you must do it (e.g, HIPAA, FINRA, SOC 2, PCI-DSS), save the SMART data first in case you need to file a warranty claim! Guide notes Parted Magic: While open-source (GPL) and redistributable, purchase directly from the official site for authenticity. Pricing: Single $19 | Subscription $59/yr or $19/quarterly | Lifetime $349 | Enterprise $1,750.eMMC & UFS: eMMC and most UFS devices do not support SMART data unless explicitly implemented.USB Enclosures: Enclosures must support UASP or command passthrough. If a drive doesn't show up in a cheap enclosure, connect it directly to the test PC.Bad Sectors: Manufacturer tools cannot fix major physical failures. Most drives cap spare sectors at ~100 before losing capacity and failing SMART entirely. While they both have tools to fix minor errors, a secure erase can do the same. For WD, download WD Drive Utilities. Segate uses SeaTools for testing and decoding the raw error rate data other tools cannot properly parse.These tests are not 100% accurate. Some problems can (and do) slip past these tests. A word about bad sector remapping: ⚠️ IMPORTANT: Back up your data before running tests, as a severely compromised drive can fail under the stress of diagnostics. If a drive shows excessive SMART errors, do not attempt to "fix" it. Back up your files immediately, wipe the drive, and replace it!

Step 1

USB-C>USB-A adapter note

  • If you don't have a spare USB-C to USB-A adapter (such as from a broken Poly headset), you can easily find them online or at retailers like Best Buy by searching for "USB-C to USB-A adapter". This adapter lets you connect modern USB-C UASP devices to legacy PCs, saving you from searching for an elusive native USB-A UASP adapter.
  • They can be purchased here if you cannot salvage one: UGREEN USB to USB C Adapter & USB C to USB Adapter Combo 4-Pack.
Step 2

Mounting the hard drive for testing

  • If you are working with an SSD, this guide specifically covers SSDs: Diagnosing and Erasing SSDs and eMMC - Debian based distros, Parted Magic Legacy and 2026+ builds/Erase Station (12/26+) -- these require different steps to test/erase.
  • New Parted Magic builds (~3/2026+) support NIST Purge verification for regulated devices (e.g., HIPAA, FINRA, GLBA, SOC 2). Small shops can technically wipe these, but should not retain drives due to liability/insurance constraints. Unless you have a secure environment, wipe and return the drive to maintain a clean chain of custody.
  • IF YOUR MACHINE HAS USB-C, FAVOR TYPE-C TO AVOID THE HASSLE. USB-A enclosures are a mixed bag, though genuine USB 3.x ones do support UASP. If you lack USB-C, ensure you get a USB-A enclosure with true USB 3.0/3.1 and UASP support or pair it with a USB-C>USB-A adapter.
  • This guide assumes the boot drive has been created beforehand. If you need instructions on how to make a bootable USB, refer to this guide (Rufus) or this guide (Etcher).
  • IMPORTANT: Adapters with a blue interface but only 4 pins are "fake" USB3 and won't support UASP—if your enclosure has this, return it and buy one with a true USB 3.0 connector. True USB-A 3.x connectors have 9 pins. Using a USB-C to USB-A adapter with a USB-C enclosure bypasses all of this compatibility guesswork.
  • Connect the drive internally to your PC (SATA port). If you cannot do this, connect the drive to a PC with a USB adapter with (MUST support UASP).
Step 3

Distro choice note

  • Note on Linux Distributions: This guide was officially written and illustrated using LMDE (Linux Mint Debian Edition). LMDE is built directly on top of Debian Stable and strictly avoids forced Snap sandboxing, maintaining unrestricted hard drive controller access.
  • Debian Users: Because LMDE shares the exact same package base, these instructions (including the GUI Disks utility and smartctl terminal commands) work identically on standard Debian setups.
Step 4

Linux (Disks app) - Checking SMART health

  • If the Reallocated Sector Count is highlighted with a high count, REPLACE THE DRIVE; they are prone to failure and unexpected capacity loss! While SMART Extended is better, a quick test may be sufficient.
  • LMDE is not required for this step as long as the distro supports the ATA SMART access commands out of the box, such as distros like Debian.
  • While high hours are not an indication of failure, the odds of a failure are much higher.
  • Seagate Raw Read Error Rate: Seagate drives naturally log massive raw read error counts. Ignore high raw numbers here unless there are other red flags in the SMART data as this behavior is known and normal. Note I have a laptop with a "ST" Spinpoint (M8 AF) - it did not recreate this behavior but some of these drives may do it as well.
  • GSmartControl can be used in Ubuntu if you cannot read the output from Disks.
  • Boot your system into a live Linux session (Note: Used LMDE, but Ubuntu and LMDE use the same tools and commands). Locate the Disks application and select the suspicious hard drive.
  • From the drop-down menu, select SMART Data and Self Tests. This will pull up the SMART data.
  • Locate the following SMART attributes: Power On Hours, Power Off Retract, Load/Unload Cycle Count, Reallocated sector count, Current Pending Sector Count, Uncorrectable Sector Count.
Step 5

Disks app - SMART testing

  • For times sake, I only ran SMART Short; if a failure is borderline, choose SMART Extended.
  • Click on Start self test and you will see 3 options: Short, Extended, Conveyance.
  • To run a SMART Short test, click
  • To run a SMART Extended test, click
Step 6

If smartmontools refuses to install:

  • Only do this if you have this specific error - apt update && sudo install smartmontools or sudo install smartmontools works 99% of the time.
  • If you attempt to install smartmontools if it fails due to package updates from when LMDE got updated compared to the Debian repository, run sudo apt upgrade. This will take some time.
  • Type Y and then press Enter, the packages will be upgraded. This will take some time.
Step 7

CLI - Checking SMART health

  • Most Debian based Linux distros come with this installed, but if it is not, use this command to install it: sudo apt install smartmontools. LMDE does not, so I did this in advance for speed.
  • Seagate Raw Read Error Rate: Seagate drives naturally log massive raw read error counts. Ignore high raw numbers here unless there are other red flags in the SMART data as this behavior is known and normal. Note I have a laptop with a "ST" Spinpoint (M8 AF) - it did not recreate this behavior but some of these drives may do it as well.
  • Run lsblk in Terminal if you were unable to locate the disk ID (sdaX). If you have the drive's sda ID in Linux, you can skip this. If you have multiple drives, run this command: lsblk -o NAME,MODEL,SERIAL,SIZE,TYPE,ROTA.
  • Run sudo smartctl -a /dev/sdaX (X=drive identifier) or sudo smartctl -x /dev/sdaX (X=drive identifier). You will see the raw SMART data translated into human readable text.
Step 8

CLI - SMART testing

  • For times sake, I only ran SMART Short; if a failure is borderline, choose SMART Extended.
  • To run a SMART Short test, run sudo smartctl -t short /dev/sdaX (X=drive ID).
  • To run a SMART Extended test, run sudo smartctl -t long /dev/sdaX (X=drive ID).
  • To read the logs, type sudo smartctl -i selftest /dev/sdaX (X=drive ID).
Step 9

Parted Magic - Checking SMART health

  • If the Reallocated Sector Count is highlighted with a high count, REPLACE THE DRIVE; they are prone to failure and unexpected capacity loss! While SMART Extended is better, a quick test may be sufficient.
  • While high hours are not an indication of failure, the odds of a failure are much higher.
  • Seagate Raw Read Error Rate: Seagate drives naturally log massive raw read error counts. Ignore high raw numbers here unless there are other red flags in the SMART data as this behavior is known and normal. Note I have a laptop with a "ST" Spinpoint (M8 AF) - it did not recreate this behavior but some of these drives may do it as well.
  • Select Disks (Disk Health on newer versions) from the desktop to open GSmartControl.
  • Select the hard disk you want to test. Click Attributes to read the SMART data.
  • Locate the following attributes: Power On Time, Power Cycle Count, Reallocated Sector Count, Reallocation Event Count, Current Pending Sector Count.
Step 10

Parted Magic - Checking SMART health

  • After confirming the drive is healthy in the previous step, run a SMART Self-Test to verify the drive does not have other issues. Select Short or Extended.
  • To test the drive, select Perform Tests or Test Type. Click Test type: and select Extended Self-Test or Short Self-test. Click Execute to run the test.
Step 11

Parted Magic - Error log check

  • Use the error log and SMART data together to diagnose drive problems.
  • Check the error log for drive errors. Click the Error log tab, and review the logs.
  • In the Error log, review the available errors. If you want to see if the error is serious, click on View Output.
Step 12

Parted Magic 3/26+ - Erasing HDDs

  • 9/2026+ builds won't load the erase menu with Intel VMD or IRST (RAID mode) enabled. While HP and Lenovo mask or refuse to support/enable it and it is completely absent, Dell defaults to toggling it on with the OptiPlex and Latitudes. Toggle "SATA Operation" to AHCI (older) or NVMe under Storage in the Dell BIOS before booting Parted Magic.
  • Everything about these builds is significantly different from the 2025 builds. However, I left the 2025 and older steps in place for users of old builds who either have lapsed subscriptions or did a one time purchase.
  • Select the HD needing to be erased (Verification is optional but recommended) and click Continue.
  • Click Continue and then the "I understand this is permanent" box, then Start erase. The erase will proceed.
Step 13

Parted Magic 3/26+ - Erasing HDDs, NIST purge

  • For all intents and purposes, Step 14, 15 and 16 only apply if you are required to use a NIST standard for erasure. Most users will not need this - it is here for those who do.
  • Before erasing the machine, you must fill this out in it's entirety:
Step 14

Parted Magic 3/26+ - Erasing HDDs, NIST purge

  • New Parted Magic builds support NIST Purge verification for regulated use devices (i.e, HIPAA, FINRA, GLBA, SOC 2). Small shops can technically wipe these, but should not retain the drive due to liability/insurance constraints. Unless you have a secure environment for regulated data, wipe and return the drive to maintain chain of custody.
  • When needing to do a NIST Purge, you must toggle NIST Purge - select 100% to be safe. Add the drive S/N as the "asset tag" rather then the machine's serial# as the drive is the critical part that needs to be tracked.
  • Toggle NIST Purge ON and select the target SSD. Click on Cert Info and fill out all of the boxes. This is for the compliance certificate Parted Magic generates.
  • Put the computer's Serial# and HD Serial# in the Asset Tag box if the machine does not have a known asset tag as a fallback in case the DMI interface and Parted Magic do not get along.
  • Click Continue and then the "I understand this is permanent" box, then Continue again. The erase will proceed.
  • Download and save both the erase logs and certificate - these MUST BE DELIVERED TO THE CLIENT with your intake form. It must say SUCCESS to be compliant. Place the drive in a labeled, sealed ESD bag with the date to quickly identify the HD and certificate. Due to guide photo limits I cannot post them, but save and print these for the client.
Step 15

Parted Magic 3/26+ - Erasing HDDs, NIST purge

  • Newer builds (26.09_2 and later) switched to SHA-256. If you run a shop which handles regulated data it's time to consider retiring older builds for this alone. MD5 is fine for non commercial clients, but a lot of commercial and regulated clients do not accept MD5 due to NIST (and other organizations like NIST) and known hash vulnerabilities.
  • Your actual logs will have a serial number - I redacted it via photo editing tools on these photos as I used a real computer for generation purposes.
  • This is what your NIST logs will look like - these are the logs you give to the client. You must give them all generated logs.
Step 16

*Read first line* Parted Magic 2025 and older - Erasing hard drives

  • The last builds to use this GUI were released in 2025 - the FINAL build with this GUI is from 12/31/2025. You want to find the 2025 builds for drive erasures if you do not purchase the 2026 builds outright - the 2020-2024 builds are largely fine for SMART testing, but don't rely on it for ERASING drives - too many advancements!
  • As of the 3/2026 builds, these steps only apply to 2025 and early 2026 builds with the exception of Nwipe and Free Space wipe remaining available in 3/2026+. As it has some relevance as 2 options remain (Nwipe and Free Space erase) in 2026+ versions, I am keeping these steps in place for those who need them.
  • CAUTION: HDDs with severe, unpatched firmware issues (e.g., Seagate 7200.11 BSY bug) can brick during secure wipes. If your drive is KNOWN to be higher risk due to firmware or controller issues, use Block Wiping with dd or shred instead.
  • IF the drive does not support ATA Secure Erase (1996 and older, some early 1997-1999 DOM drives) or has sketchy firmware, select Block Wiping and use Nwipe. The best middle ground in Nwipe for security and speed is "DoD Short (3 pass+blanking).
  • When possible for security, use ATA Secure Erase. The only exception to this is using it on drives with known firmware bugs that are fatal to the drive (see warning above).