FIXONIC
SellSavedMy Fixonic
Official iFixit API visual reference

*READ INTRO NOTE* Diagnosing and Erasing Hard Drives - compatibility not guaranteed beyond Ubuntu 22.04LTS

⚠️ LEGACY MAINTENANCE NOTICE (July 30, 2026):...

iFixit Library Linux Moderate 1 hour - 1 week Guide 106073
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

⚠️ LEGACY MAINTENANCE NOTICE (July 30, 2026): This guide is in maintenance mode and ends March 2027 (Ubuntu 22.04 LTS EOL is April 2027). Due to Ubuntu's transition to Snap packages, updated guides use non-Snap Debian distros. Critical errors will be corrected, but Snaps will not be accommodated. For a stable testing solution, refer to the updated guide using Debian. Ubuntu 26.04: Confirmed to work (ongoing accuracy not guaranteed).Other Distros: Any distro supporting ATA SMART access commands out of the box works, provided smartctl is installed (e.g., Debian).High-Capacity Drives (>2TB): The guide's 7-day completion estimate for erasure/sanitization will likely be inaccurate.WARNING (Seagate Rosewood): Avoid Secure Erase via USB or on drives with SMART errors—connect directly to a motherboard or use nwipe over USB to avoid creating a condition that is prime for a BSY brick. If you still use Secure Erase, save the SMART data first to support warranty claims in case it gets bricked, especially if your hand is forced by regulation like HIPAA, FINRA, SOC 2 or PCI-DSS. Why Test Your Drives? Most failures happen without warning. Catching silent errors early with the SMART data gives you time to catch the issue, make backups and replace the drive before sudden failure. Reliability Note: Budget drives (like WD Blue/Green) carry higher failure risks after 3–5 years than performance drives (like WD Black); some series also have known firmware bugs (e.g., 7200.11), or fatal issues such as platter scraping that create SMART errors (e.g, Seagate Rosewood and 7.01, IBM DeathStar/DeskStar 75GXP) 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.⚠️ IMPORTANT: Back up your data before running tests, as severely compromised drives can fail under diagnostic stress. If a drive shows excessive SMART errors, do not attempt to "fix" it—back up your files immediately, replace it, and wipe the old drive!

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

  • 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.
  • If you are testing an M.2 SSD (AHCI or NVMe), you will need an enclosure specially built for this. This is not shown in this guide as M.2 was not as prevalent when I wrote this guide.
  • 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.
  • 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.
  • 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).
  • Connect the drive internally to your PC (SATA port or secondary M.2 slot), or to a USB drive adapter. NOTE: The enclosure must have true UASP support.
  • If the hard drive is not installed and you do not have a USB adapter, it can be plugged into a motherboard. NOTE: The enclosure must have true UASP support.
Step 3

Linux - Checking SMART health

  • For Ubuntu versions prior to 26.04, these steps mirror standard Debian-based distributions. If Ubuntu migrates the Disks application to Snaps, it will likely require manual permission adjustments (via Settings or CLI) beyond the scope of this guide. However, Ubuntu is not required for this guide - any distro with smartctl installed will work.
  • 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.
  • Boot your system into a live Ubuntu session. Locate the Disks application and select the suspicious hard drive. Note: Smartctl can be used if the drive does not show up in the GUI, but the steps to do this are not included in this guide.
  • From the drop-down menu, select SMART Data and Self Tests. This will pull up the SMART data.
  • Locate the following SMART attributes: HDDs: Power On Hours, Power Cycle Count, Reallocated sector count, Current pending sector count. SSDs: Power On Hours, Power Cycle Count, Reallocated sector count and wear leveling count.
  • To run a SMART Extended Self-Test, left click Start Self-Test. Select Short or Extended from the drop-down menu.
Step 4

Parted Magic - Checking SMART health

  • While high hours are not an indication of failure, the odds of a failure are much higher.
  • 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.
  • 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 builds) 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: HDDs: Power On Time, Power Cycle Count, Reallocated Sector Count; Reallocation Event Count; Current Pending Sector Count. SSDs: Power On Hours, Power Cycle Count, Reallocated sector count and wear leveling count.
Step 5

Parted Magic - SMART testing

  • 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 6

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 7

Parted Magic 3/26+ - Erasing HDDs

  • 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 8

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

  • Before erasing the machine, you must fill this out in it's entirety:
Step 9

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 10

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

  • 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 11

*Read first line* - Erasing hard drives

  • 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.
  • This guide has limited SSD coverage, but no coverage for eMMC. Follow this guide for pre 3/26 builds or this guide for 3/26+ builds to process eMMC devices.
  • When possible, avoid using Nwipe on SSDs. This puts unnecessary wear on the NAND flash and will eat into the remaining lifetime of the NAND flash, especially on older 75TBW drives. Disk and Shred will also going to add wear, but it will be much less severe.
  • The options available here that will work will vary based on what is supported by the firmware on the drive.
  • CAUTION: SSDs/HDDs with severe, unpatched firmware issues (e.g., Seagate 7200.11 BSY bug, SandForce controllers known to panic brick the drive) 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). For NAND preservation, stop at a single pass and verify.
  • AHCI drives (M.2 SATA/2.5" drives/3.5" drives): HDDs: Only ATA Secure Erase applies - SSDs: Sanitize - ATA devices (SSDs only, slower but more secure) or ATA Secure Erase (Faster) apply. WARNING: If the drive firmware has documented issues, use caution and read the advice above as this can brick these drives permanently.
  • NVMe SSD Recomendation: Do not use this guide - it lacks proper instructions. Use this guide to erase these drives.