Difficulty

Moderate

Steps

7

Time Required

                          6 hours - 1 week            

Sections

1

  • Diagnosing and Erasing Hard Drives
  • 7 steps

Flags

Member-Contributed Guide

An awesome member of our community made this guide. It is not managed by iFixit staff.

  • BackLinux

  • Full Screen

  • Options

  • History

  • Save to Favorites

  • Download PDF

  • Edit

  • Translate

  • Get Shareable Link

  • Embed This Guide

  • Notify Me of Changes

  • Stop Notifications

Introduction

Common drive problems include:

  • High hours (Wear and tear)Reallocated sectorsPending reallocated sectorsHidden problems

Most failures are sudden and without warning. If these problems are caught early, the drive can be replaced before it fails. SMART plays a major role in this since the data can be used to do this.

Note: Some hard drives have known problems (Ex: Seagate 7.01/7200.11), while others fail due to lower quality standards (Ex: WD Blue/Green).

  • While Parted Magic can be redistributed legally per the GPL, I will not point to these downloads.These tests are not 100% accurate. Some problems can (and do) slip past these tests.

  • While WD, HGST and Seagate offer diagnostic tools, they do not work on drives with serious problems or excessive bad sectors.Before attempting a sector remap, backup your data.DO NOT REPAIR drives with SMART errors.

What you need

Step 1

              Mounting the hard drive for testing               
  • If the HDD/SSD is not installed in a PC, a USB drive adapter (SATA) can be used. For NVMe and NGFF M.2 SSDs, a specific enclosure is required.
  • If the hard drive is not installed and you do not have a USB adapter, it can be plugged into a motherboard.

If the HDD/SSD is not installed in a PC, a USB drive adapter (SATA) can be used. For NVMe and NGFF M.2 SSDs, a specific enclosure is required.

If the hard drive is not installed and you do not have a USB adapter, it can be plugged into a motherboard.

1024

Step 2

              (Ubuntu) Check the POH/POC               
  • While high hours are not an indication of failure, these drives are more likely to fail.
  • GSmartControl can be used in Ubuntu if you cannot read the output from Disks.
  • Boot your system into a live Ubuntu session. Locate the Disks application and select the hard disk 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 and Power Cycle Count.

While high hours are not an indication of failure, these drives are more likely to fail.

GSmartControl can be used in Ubuntu if you cannot read the output from Disks.

Boot your system into a live Ubuntu session. Locate the Disks application and select the hard disk 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 and Power Cycle Count.

Step 3

              (Ubuntu) Check the reallocated sectors and test the drive               
  • If Reallocated Sector Count is highlighted and the number is high, replace the drive. Use SMART Extended for accuracy. You will lose capacity and these drives often fail without warning!
  • Locate the following SMART attributes: Reallocated sector count; Current pending sector count.
  • To run a SMART Extended Self-Test, left click Start Self-Test. Select Extended from the drop-down menu.

If Reallocated Sector Count is highlighted and the number is high, replace the drive. Use SMART Extended for accuracy. You will lose capacity and these drives often fail without warning!

Locate the following SMART attributes: Reallocated sector count; Current pending sector count.

To run a SMART Extended Self-Test, left click Start Self-Test. Select Extended from the drop-down menu.

Step 4

              (Parted Magic) Check the POH/POC               
  • While high hours are not an indication of failure, these drives are more likely to fail.
  • Select Disks 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 and Power Cycle Count.

Select Disks 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 and Power Cycle Count.

Step 5

              (Parted Magic) Check the reallocated sectors and test the drive               
  • If Reallocated Sector Count is highlighted and the number is high, replace the drive. Use SMART Extended for accuracy. You will lose capacity and these drives often fail without warning!
  • In the Attributes tab, locate the following SMART attributes: Reallocated Sector Count; Reallocation Event Count; Current Pending Sector Count.
  • To test the drive, select Perform Tests. Click Test type: and select Extended Self-Test.

In the Attributes tab, locate the following SMART attributes: Reallocated Sector Count; Reallocation Event Count; Current Pending Sector Count.

To test the drive, select Perform Tests. Click Test type: and select Extended Self-Test.

Step 6

              (Parted Magic) Check the error log               
  • 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. Read these logs if any are found.

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. Read these logs if any are found.

Step 7

              (Parted Magic) Erasing hard drives               
  • When possible, avoid sector wiping SSDs. This will reduce the drive liftetime and can be drastic on older 75TBW lifetime drives.
  • Your erase options are limited to the Security Set options supported by your drive.
  • Drives without ATA Secure Erase will need to be erased externally. Select External and choose Nwipe. Run the DoD Short command (3 wipes+drive blanking).
  • If your drive has a buggy ATA Secure Erase implementation, choose External and erase the drive with Nwipe. SSDs should only be erased with the Secure Erase command.
  • For NVMe SSDs, the best option is to use NVMe Secure Erase.

When possible, avoid sector wiping SSDs. This will reduce the drive liftetime and can be drastic on older 75TBW lifetime drives.

Your erase options are limited to the Security Set options supported by your drive.

Drives without ATA Secure Erase will need to be erased externally. Select External and choose Nwipe. Run the DoD Short command (3 wipes+drive blanking).

If your drive has a buggy ATA Secure Erase implementation, choose External and erase the drive with Nwipe. SSDs should only be erased with the Secure Erase command.

For NVMe SSDs, the best option is to use NVMe Secure Erase.

Cancel: I did not complete this guide.

Author

                                      with 1 other contributor 

                    Nick                     

Member since: 11/10/2009

80,540 Reputation

                                      41 Guides authored                  



                       Badges:
                       55







                                                        +52 more badges                           

Team

                       Master Techs                        

                                                  Member of Master Techs 



                    Community                     


                                            310 Members                     


                                            1,168 Guides authored