Перейти к основному содержанию

Diagnosing and Erasing Hard Drives

Выберете то, что вам нужно

  1. Diagnosing and Erasing Hard Drives, Mounting the hard drive for testing: шаг 1, изображение 1 из 3 Diagnosing and Erasing Hard Drives, Mounting the hard drive for testing: шаг 1, изображение 2 из 3 Diagnosing and Erasing Hard Drives, Mounting the hard drive for testing: шаг 1, изображение 3 из 3
    • IF YOUR MACHINE SUPPORTS USB-C, FAVOR TYPE-C WHEN BUYING AN ADAPTER. USB-A enclosures are a mixed bag, but most support UAS if it is true USB3 UAS. If your computer has USB-C, buy a Type-C adapter to avoid the hassle. If you do not have USB-C, look for a USB-A enclosure with true USB 3.0 or 3.1 support with UAS.

    • IMPORTANT: Adapters with 4 pins and a blue interface are "fake" USB3, and these rarely support UAS. These will have an issue, and you will probably need to buy another one. You can try, but be prepared to send it back.

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

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

    • Connect the drive internally to your PC (SATA port or secondary M.2 slot), or to a USB drive adapter.

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

  2. Diagnosing and Erasing Hard Drives, Linux - POH/POC Check: шаг 2, изображение 1 из 3 Diagnosing and Erasing Hard Drives, Linux - POH/POC Check: шаг 2, изображение 2 из 3 Diagnosing and Erasing Hard Drives, Linux - POH/POC Check: шаг 2, изображение 3 из 3
    • 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.

    • While high hours are not an indication of failure, the odds of a failure are much higher.

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

  3. Diagnosing and Erasing Hard Drives, Linux - Reallocated sectors and SMART testing: шаг 3, изображение 1 из 3 Diagnosing and Erasing Hard Drives, Linux - Reallocated sectors and SMART testing: шаг 3, изображение 2 из 3 Diagnosing and Erasing Hard Drives, Linux - Reallocated sectors and SMART testing: шаг 3, изображение 3 из 3
    • 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.

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

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

    • SSD data to check: Percentage used (100-0%), Data Written, Power on hours, Unsafe shutdown (less critical, but check!), Media errors.

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

  4. Diagnosing and Erasing Hard Drives, Parted Magic - POH/POC check: шаг 4, изображение 1 из 3 Diagnosing and Erasing Hard Drives, Parted Magic - POH/POC check: шаг 4, изображение 2 из 3 Diagnosing and Erasing Hard Drives, Parted Magic - POH/POC check: шаг 4, изображение 3 из 3
    • While high hours are not an indication of failure, the odds of a failure are much higher.

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

  5. Diagnosing and Erasing Hard Drives, Parted Magic - Reallocated sectors and SMART testing: шаг 5, изображение 1 из 3 Diagnosing and Erasing Hard Drives, Parted Magic - Reallocated sectors and SMART testing: шаг 5, изображение 2 из 3 Diagnosing and Erasing Hard Drives, Parted Magic - Reallocated sectors and SMART testing: шаг 5, изображение 3 из 3
    • 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.

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

    • SSD data to check: Percentage used, Data Written, Power on hours, Unsafe shutdown (less critical, but check!), Media errors.

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

  6. Diagnosing and Erasing Hard Drives, Parted Magic - Error log check: шаг 6, изображение 1 из 3 Diagnosing and Erasing Hard Drives, Parted Magic - Error log check: шаг 6, изображение 2 из 3 Diagnosing and Erasing Hard Drives, Parted Magic - Error log check: шаг 6, изображение 3 из 3
    • 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.

  7. Diagnosing and Erasing Hard Drives, Parted Magic - Erasing hard drives: шаг 7, изображение 1 из 3 Diagnosing and Erasing Hard Drives, Parted Magic - Erasing hard drives: шаг 7, изображение 2 из 3 Diagnosing and Erasing Hard Drives, Parted Magic - Erasing hard drives: шаг 7, изображение 3 из 3
    • I have not included a proper step for this at this time, but if you are erasing an eMMC device, DO NOT USE THE TRADITIONAL OPTIONS - IT WILL NOT WORK. Use External and do a dd wipe on the eMMC module for these machines.

    • When possible, avoid using Nwipe on SSDs. This will eat into the TBW of the drive, which can cause problems on older 75TBW drives. Disk or Shred is safer for these then Nwipe.

    • The options available here that will work will vary based on what is supported by the firmware on the drive.

    • CAUTION: SATA SSDs and HDDs with known firmware issues could be bricked with the ATA Secure Erase command set if the bug is severe. If you are easing a drive with known bad firmware with a high chance of bricking the SSD, select EXTERNAL for safety (at the expense of time/NAND flash wear on SSDs).

    • IF the drive does not support ATA Secure Erase (primarily older drives), you will need to select External and use Nwipe to erase it. The best middle ground in Nwipe/DBAN is "DoD Short (3 pass+blanking).

    • AHCI drives (M.2 SATA/2.5" drives/3.5" drives) When possible for security (and in the case of SSDs, reduced or mitigated drive wear), try to use the ATA Secure Erase option when possible, unless the drive has known bugs (see warning above).

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

Финишная прямая

3 человек успешно провели ремонт по этому руководству.

Nick

Участник с: 11/10/09

98 168 Репутация

Автор 61 руководств

0 Комментарии к руководству

Добавить комментарий

Статистика просмотров:

За последние 24 часов: 6

За последние 7 дней: 51

За последние 30 дней: 111

За всё время: 3,106