the device has few bad sectors

  • Hi everyone, can anyone figure out what kind of damage /dev/sda has?
    some time ago there was a break of the electric current.
    probably because of that event?
    How can I try to fix it now and protect myself from future events? (in addition to installing a UPS)


    https://imgur.com/jRNUQc5
    https://imgur.com/bDU9wjq
    https://pastebin.com/YbzysiMd

    H520 Desktop (Lenovo) - Type 2562

    Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz

    7.4.14-1 (Sandworm) Linux 6.1.0-28-amd64

    /dev/sda Seagate Barracuda ST1000DM003-9YN162

    /dev/sdb Seagate Barracuda ST1000DM003-9YN162

  • Replace HDD. If there is eve one bad sector, the hdd is failing.

    so the raid is not working? thankfully I had created a raid mirror

    H520 Desktop (Lenovo) - Type 2562

    Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz

    7.4.14-1 (Sandworm) Linux 6.1.0-28-amd64

    /dev/sda Seagate Barracuda ST1000DM003-9YN162

    /dev/sdb Seagate Barracuda ST1000DM003-9YN162

    • Offizieller Beitrag

    It may be possible to fix the drive so that the bad sectors are "revived" or are flagged as unusable.


    However the bad sectors might not be an isolated event. It is likely a sign that the drive is failing in general. Then you can expect more bad sectors soon. You can try to reformat and fix the bad sectors, and then monitor the health of the drive regularly using SMART tools and chkfs.


    Typically a new drive has a bunch of unused sectors it can use to map around bad sectors, and can that way continue working as usual. That is perfectly fine. But if the reallocated sector count keep increasing it is a sure sign that the drive is failing.


    I would replace the drive ASAP.

    Be smart - be lazy. Clone your rootfs.
    OMV 5: 9 x Odroid HC2 + 1 x Odroid HC1 + 1 x Raspberry Pi 4

  • To address the current issue with /dev/sda, start by diagnosing the drive with SMART tests and disk utilities. Repair any file system errors and consider replacing the drive if it shows signs of failure

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!