Skip to content

007revad/Synology_Clear_Drive_Error

Repository files navigation

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:

  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.

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