Giter Club home page Giter Club logo

synology_clear_drive_error's Introduction

Synology Clear Drive Error

Donate committers.top badge

Description

Clear critical drive errors so DSM will let you use the drive

If DSM decides a drive is critical DSM stores "status critical" in a database and will not let you use the drive again. If you run an extended S.M.A.R.T. test on the drive in a computer and it says there is nothing wrong with the drive DSM will still refuse to let you use the drive. You can use this script on the Synology to delete that drive's "status critical" entries from DSM's database. Then DSM will let you use the drive again.

NOTE The script does not fix a faulty drive.

If this script does not work use the following method:

NAS with hotswap drive bays:

  1. Open Storage Manager and select the drive.
  2. Click on Actions then select Deactivate.
  3. Remove the drive from the NAS.
  4. Reboot.
  5. Insert the drive.
  6. Open Storage Manager and click on Repair.
  7. Select the drive, click Next then Repair.

NVMe drives or NAS without hotswap drive bays:

  1. Open Storage Manager and select the drive.
  2. Click on Actions then select Deactivate.
  3. Shut down the NAS.
  4. Remove the drive from the NAS.
  5. Boot the NAS.
  6. Shut down the NAS.
  7. Insert the drive.
  8. Boot the NAS.
  9. Open Storage Manager and click on Repair.
  10. Select the drive, click Next then Repair.

Download the script

  1. Download the latest version Source code (zip) from https://github.com/007revad/Synology_clear_drive_error/releases
  2. Save the download zip file to a folder on the Synology.
  3. Unzip the zip file.

How to run the script

Run the script via SSH

How to enable SSH and login to DSM via SSH

Run the script:

sudo -s /volume1/scripts/syno_clear_drive_error.sh

Note
Replace /volume1/scripts/ with the path to where the script is located.

After running the script

If Storage Manager is already open, close it and then open it again.

Screenshots

Clearing critical error for 2 drives

synology_clear_drive_error's People

Contributors

007revad avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

drfta

synology_clear_drive_error's Issues

/bin/sh: syno_clear_drive_error.sh: command not found

Hello everyone,

After reporting an error I am having with one of the disk on Reddit, I was recommended to try the syno script.

All goes well until I try to run and meet an error.
I tried again after install Z shell, but still the same error.

Any idea what I can do?

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.