FIXONIC
SellSavedMy Fixonic
Official iFixit API visual reference

Diagnosing and Erasing SSDs and eMMC - Debian based distros, Parted Magic Legacy and 2026+ builds/Erase Station (12/26+)

If you are evaluating a SSD in use for years or...

iFixit Library Linux Easy 1 - 6 hours Guide 202166
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

If you are evaluating a SSD in use for years or in a used machine you just got, this guide will show you how to do basic tests to detect common problems. While these tests are not perfect, they will detect MOST issues. Common drive problems include: High hours (Wear and tear, increased failure risk, SSDs with heavy use)Reallocated sectors (pending and fully reallocated)Hidden problems Why should used SSDs be checked? Most failures are sudden and without warning, if not known in advance due to lack of symptoms. If the machine has problems and the issue is caught early, it will give you time to move everything and replace the drive before it fails. While SMART can only do so much, it plays a significant role since the data can be used to catch a failure before it occurs. Guide notes While Parted Magic is open-source (GPL) and legally redistributable, purchase it directly from the official website to guarantee authenticity. Prices are subject to change and are in USD, so check the site or use a currency converter if you do not use USD.$19 single download (updates issued if released in 30 days)Subscription: $59 yearly / $19 quarterlyLifetime: $349 (recommended for shops/regular users)Enterprise Compliance License: $1,750These tests are not 100% accurate. Some problems can (and do) slip past these tests. USB Enclosures & Compatibility If you use a cheap USB enclosure and the drive does not show up, your enclosure is likely incompatible. Use a UASP-verified enclosure capable of passing commands through as-is, or connect the drive directly to a PC motherboard. Sector remapping: While WD and Seagate offer diagnostic tools for HDDs, fewer tools exist like this for SSDs as many lean on standard commands - however, Samsung has Samsung Magician (Retail only, will not work on "PM" OEM drives) and Crucial (Micron) has Storage Executive, as well as WD/SanDisk. If I know about them I will add them here, but outside of those, most vendors do not offer a customer facing diagnostic tool. However, these tools DO NOT CORRECT MAJOR FAILURES; some minor errors can be fixed with a free space erase or secure erase, but major errors require a new drive.IMPORTANT: If you can do so before testing, back up your data. In some cases during testing, a drive that is on the way out may fail while being diagnosed.DO NOT FIX THE DRIVE IF THERE ARE EXCESSIVELY HIGH SMART ERRORS. Back up the data, transfer the data, wipe the old 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 SSD for testing

  • 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 you have already created your boot drive. If you need instructions on how to make a bootable USB, please 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.
  • If you are testing an M.2 SSD (AHCI or NVMe) outside of the computer (i.e: not on a desktop board or inside a laptop), you will need an enclosure specially built for this. It must support NVMe with NVMe drives, or AHCI for older M.2 SSDs.
  • Connect the drive using a USB adapter, or plug it directly into a free internal slot (SATA or M.2) on your motherboard.
Step 3

Linux - locating the device ID

  • These steps will work on ANY Debian based distro using Debian packages. However, you must be online temporarily for installation purposes. This is not needed for systems with a permanent installation that is in active use, or if the package is pre-installed like in Parted Magic or most Debain Stable based distros. I tested this personally.
  • This can be located in Terminal with sudo nvme list (NVMe only) or lsblk -o NAME,MODEL,SERIAL,SIZE,TYPE,ROTA. However, Disks will show it without terminal knowledge.
Step 4

Linux - NVMe

  • These steps will work on ANY Debian based distro using Debian packages. However, you must be online temporarily for installation purposes. This is not needed for systems with a permanent installation that is in active use, or if the package is pre-installed like in Parted Magic or most Debain Stable based distros. I tested this personally.
  • These steps are unique to NVMe SSDs. They do not apply to SATA SSDs.
  • Authors' Note: Debian Stable includes this out of the box - if you want to avoid connecting the machine to the internet for a package install, use Debian Stable. Start your Debian based distro (or Debian Stable) and run sudo apt-get install nvme-cli on the live image.
  • -H can be replaced with -B but this data will need to be converted from binary to hex to be human readable.
  • NOTE: The device dev ID can be found in Disks, each machine will be different. After installing nvme-cli, run the following command: sudo nvme smart-log -H /dev/nvmeX (change X for the SSD ID). External SSDs may use /dev/sdbX, but same rule for probing it in CLI applies - just double check with externals.
  • Check the following data first: Percentage used, Data Written, Power on hours, Unsafe shutdown (less critical, but check!), Media errors.
Step 5

Linux, SATA SSDs - SMART data check

  • These steps will work on ANY Debian based distro using Debian packages. However, you must be online temporarily for installation purposes. This is not needed for systems with a permanent installation that is in active use, or if the package is pre-installed like in Parted Magic or most Debain Stable based distros. I tested this personally.
  • Some SSDs (example shown: PNY CS900) do not properly relay SMART data. Nothing can be done about this, as the vendor chose to encrypt the data unnecessarily.
  • GSmartControl can be used in Ubuntu if you cannot read the output from Disks.
  • Boot your system into a live Linux session. Locate the Disks application and select the SSD you want to test.
  • 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 Cycle Count, Reallocated sector count and wear leveling count.
  • Example of a unnessacarily overencrypted SSD's SMART data.
Step 6

Linux - SMART testing

  • If the Percentage used is near 100% (name might be different per SSD vendor), the drive must be replaced; it will likely keep working, but is at high risk of sudden failure. High usage isn't an issue, but the lifespan will be very limited. For testing, while SMART Extended is better, a quick test may be sufficient.
  • Ubuntu 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.
  • eMMC devices do not present SMART data. This is normal on these eMMC Non-UFS devices. UFS devices might present SMART data if it is implemented on your machine.
  • To run a SMART Extended Self-Test, left click Start Self-Test. Select Extended from the drop-down menu.
Step 7

Parted Magic - Health check

  • While high hours are not an indication of failure, the odds of a failure are much higher.
  • 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 for SATA SSDs: Reallocated Sector Count, Power On Time, Power Cycle Count and Wear Leveling Count.
  • In order to check the error logs, click Error Log. Any errors will be stored here. Some drives offer additional data, which can be accessed under Advanced.
Step 8

Parted Magic - NVMe

  • NVMe drives give different data than SATA SSDs - different metrics are used compared to SATA SSDs.
  • In the Attributes tab, locate the following SMART attributes: Available Spare (and Spare Threshold), Percentage used, Data Units (Written), Power Cycles, Power on hours, and Unsafe shutdown (less critical, but check!).
  • To access the NVMe logs, click on NVMe Errors.
  • To test the drive, select Perform Tests. Click Test type: and select Extended Self-Test.
Step 9

Parted Magic - If no data shows

  • If this occurs, read on - you MIGHT be able to salvage the situation.
  • In the event your drive adapter DOES NOT populate the data and shows this, you have to find a different adapter. However, the need for this can be verified in Terminal to make sure it is NOT a GUI issue with the following command: smartctl - H /dev/X (replace X with sdbX, X being the drive number if present).
  • If Terminal just says SMART Health Status: OK, the adapter you picked has issues in Parted Magic (likely due to a chipset blacklist). Pick another adapter as you're flying blind.
Step 10

Parted Magic 3/26+ - Erasing SSDs

  • 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.
  • If the SSD does not show up here with the drive in a USB enclosure, the controller is not passing the commands through. You must plug the SSD into a motherboard, PCIe adapter card or use a well supported enclosure.
  • CAUTION: Drives with known documented and known severe firmware problems can be bricked with Sanitize or ATA Secure Erase by "locking" the drive in a BSY state permanently (e.g, early SandForce controllers). If you are easing one of these "infamous" drives, select Show Block Wipe and erase the SSD with a single pass erase.
  • These steps apply to both NVMe and SATA SSDs - the relevant command is selected automatically now.
  • 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 SSD needing to be erased (Verification is optional but recommended) and click Continue.
  • Click Continue and then the "I understand this is permanent" box, then Continue again. The erase will proceed.
Step 11

Parted Magic 3/26+ - Erasing SSDs, NIST Purge

  • For all intents and purposes, Step 11 and 12 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.
  • CAUTION: Drives with known documented and known severe firmware problems can be bricked with Sanitize or ATA Secure Erase by "locking" the drive in a BSY state permanently (e.g, early SandForce controllers). DO NOT PROCESS THESE UNDER NIST PURGE UNLESS YOU ARE OKAY WITH THE RISK - IF IT CANNOT BE ACCEPTED, DESTROY THE DRIVE!
  • Before erasing the machine, you must fill this out in it's entirety:
Step 12

Parted Magic 3/26+ - Erasing SSDs, NIST Purge

  • Newer Parted Magic builds support NIST Purge verification for regulated devices (HIPAA, FINRA, GLBA, SOC 2). Unless your shop has a certified secure environment, avoid retaining these drives due to liability; wipe and return them immediately to maintain chain of custody.
  • When needing to do a NIST Purge, you must toggle NIST Purge - select 100% to be safe for SSDs; reduce it accordingly for hard drives if the verification will take a long time. 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, especially if DMI tracking is poor.
  • Toggle NIST Purge ON (100% verification selected by default), select your SSD, and open Cert Info to ensure the form is complete. In the "asset tag" box, enter the drive S/N and client-assigned asset tag—or use the motherboard S/N and SSD S/N as a fallback if DMI auto-detection fails.
  • Once all certificate info is filled out, click Continue, check "I understand this is permanent", and hit Start Erase.
  • When finished, download and save the logs and sanitization certificate locally (if not using the Parted Magic server) to local media. This serves as your client's official Certificate of Sanitization and must read SUCCESS to be compliant. Deliver these to the client with your intake form and e.rased drive in an ESD bag, labeled with the WO.
  • If the client demands destruction of the drive, you must generate a Certficate of Destruction (CoD). Only do this after erasing the drive if possible, and only process it if your shop has the capability to do it; otherwise, drill holes in it and return it or send it to a company who can. Process not shown due to iFixit platform photo limits.
Step 13

Dropping failed drives from sanitization processes - 9/2026+ only

  • Authors note: Dropping a drive logs a "FAILURES" report on the Parted Magic reporting server. If a dropped drive remains locked, enter pmagic to unlock it for erasure. If the command refuses to run in the Erase menu, you may need to use hdparm. This page has more information if you need it.
  • Dropping a drive causes failure if logged to a reporting server; use only as a last resort for hung erases. ATA drives may need to be unlocked with ATA Security disable under the Erase menu - in some cases, hdparm may be required for EHDs such as WD SmartWare drives with the USB port on the HD PCB where the main PCB is the USB bridge.
  • SEAGATE ROSEWOOD WARNING: Rosewood hard drives are highly susceptible to permanent firmware BSY state corruption when subjected to interrupted ATA security command executions. Use with extreme caution—if a BSY lock is triggered, the drive is a brick without a PC-3000 or equivalent hardware recovery tool. There is no software recovery path.
  • If you are erasing a drive and it has clearly failed due to a long delay, click Drop on that drive. This will release the drive by unlocking it with the ATA password set by Parted Magic and reset the controller for NVMe SSDs.
Step 14

Parted Magic 2025 and older - Erasing SSDs

  • If the SSD does not show up here with the drive in a USB enclosure, the controller is not passing the commands through. You must plug the SSD into a motherboard, PCIe adapter card or use a well supported enclosure.
  • As of the 3/2026 builds, these steps only apply to 2025 and early 2026 builds. I am keeping them for legacy ISO users who still need them.
  • The options available here that will work will vary based on what is supported by the firmware on the drive.
  • CAUTION: Drives with known documented and known severe firmware problems can be bricked with Sanitize or ATA Secure Erase by "locking" the drive in a BSY state permanently (e.g, early SandForce controllers). If you are easing one of these "infamous" drives that are easy to brick if the firmware hangs, select Block Wiping and use dd or Shred.
  • IF the drive does not support ATA Secure Erase (primarily older drives, extremely rare with SSDs), select External and use Shred or Disk to erase the drive. DO NOT USE Nwipe - THIS PUTS UNECESSARY WEAR ON SSDs
  • AHCI drives (M.2 SATA/2.5" drives/3.5" drives) Pick Sanitize (Highest security, slowest) or ATA secure erase (faster but less secure, resets encryption keys). If the drive has known firmware issues, see the warnings for extra advice on what to do.
  • If you can tolerate a little less security, Disk and Shred are faster then Nwipe, but at the expense of wipe security being compromised. It is fine for personal reuse but should not be used on a drive you are disposing of.
  • NVMe SSD Recomendation: When possible, use NVMe secure erase. This is instant because it destroys the encryption key on these drives so the data can no longer be read and does not need to zero out the entire drive.
Step 15

Parted Magic 2025 and older - Erasing non-UFS eMMC

  • Note: These steps only apply to older builds (pre-March 2026). If you are using a 3/26+ build, refer to the updated guide.
  • eMMC Note: If you are using an archived 2025 build to wipe a budget eMMC laptop (without UFS), standard SSD secure commands will not work. Instead of dd in the terminal, select Disk or Shred in the GUI to run a block-level erase. If you need NIST (which is already legally dubious on this class of eMMC), you must upgrade to 3/2026+. Refer to this guide for 3/26+ which covers the eMMC process.
  • Why is eMMC (non-UFS) dubious? non-UFS has 2 block sets: The main partition and blocks called mmcblkboot, which cannot be erased in software reliably to be NIST compliant. The OP space is also inaccessible as well on these devices. Physical destruction is the only option in high security environments.
  • Non-UFS eMMC devices lack SMART, fail without warning and have no hardware level erase support. Avoid multi-pass overwrites (DoD/Gutmann) as this causes extreme NAND wear. These steps are included for end users and non-regulated erases on budget eMMC devices (e.g., Celeron+eMMC HP 14/HP Stream). These builds do not support NIST anyway.
  • Open Erase Disk and select Block Wiping. Choose either Disk or Shred (both do the same thing).
  • Select all "mmcblk" drives.
  • Note: Drives that cannot be wiped will throw an access error and close—this is a harmless nuisance error expected on older builds attempting to write to hardware-locked boot partitions—dismiss the error and let the main eMMC partition format.
  • Start the erase. This typically takes 20 to 25 minutes, though slow eMMC controllers may take up to 40 minutes.
Step 16

Parted Magic 2025 and older - Erasing UFS eMMC

  • Even if your UFS devices has SAMRT and ATA Secure erase command support, this hardware must be block erased in 2025 and older builds, as they lack other mechanisms and multi-pass overwrite support (which can cause extreme NAND wear anyway). These steps are for end users and non-regulated erases (e.g., UFS EDU laptops, HP 14 128GB UFS models).
  • While these devices can be wiped as a unified device in both 2025 and 3/2026+ versions, NIST Clear support is not present in 2025 and older builds. If you need NIST compliance, you must use 3/2026+ or newer. If you use these versions for NIST compliance, NAND destruction is required - often required in high security environments anyway. The guide for 3/26+ is located here.
  • Check if the laptop supports it under Secure erase - If yours does not have support, it will be greyed out.
  • Open Erase Disk and select Block Wiping (called External on very old builds). Choose either Disk or Shred (both do the same thing).
  • Select the device labeled "sda" - this is the UFS NAND chip.
  • Start the erase. Depending on the device and speed of the NAND flash, this will take ~10-15 minutes.