007revad /Synology_HDD_db

Add your HDD, SSD and NVMe drives to your Synology's compatible drive database and a lot more

★ 6,013⑂ 385👁 87⑃ 289● 250▤ 115
ShellMITCreated 2023-02-26
Download: v3.6.139v3.6.139 ↓3.6.1392026-08-30
+2
Daily
6,013
stars
385
forks
87
watchers
289
prs
250
issues
115
releases

README

Synology HDD db


!Badge







 Description

Add your SATA or SAS HDDs and SSDs plus SATA and NVMe M.2 drives to your Synology's compatible drive databases, including your Synology M.2 PCIe card and Expansion Unit databases. 

The script works in DSM 7, including DSM 7.1, 7.2, 7.3 and 7.4, and DSM 6.

It also has a restore option to undo all the changes made by the script.

Also works for 2025 series or later Plus models. See 2025_plus_models.md

 What the script does:

 Gets the Synology NAS model and DSM version (so it knows which db files to edit).
 Gets a list of the HDD, SSD, SAS and NVMe drives installed in your Synology NAS.
 Gets each drive's model number and firmware version.
 Backs up the database files if there is no backup already.
 Checks if each drive is already in the Synology's compatible-drive database.
 Adds any missing drives to the Synology's compatible-drive database.
 Optionally prevents DSM auto updating the drive database.
 Optionally disable DSM's "support_disk_compatibility".
 Optionally disable DSM's "support_memory_compatibility" to prevent non-Synology memory notifications.
 Optionally edits max supported memory to match the amount of memory installed, if installed memory is greater than the current max memory setting.
     DSM only uses the max memory setting when calculating the reserved RAM area size for SSD caches.
 Optionally set write_mostly for your internal HDDs so DSM will normally read from your faster internal SSD(s).
     It can automatically set DSM to read from your internal SSDs.
     Or you can tell the script which internal drive(s) DSM should read from.
 Optionally disables Western Digital Device Analytics (aka WDDA) to prevent DSM showing a warning for WD drives that are 3 years old.
     DSM 7.2.1 already has WDDA disabled.
 Makes DSM allow you to enable SSD TRIM on 3rd party SSDs and NVMes. Don't use the -f or --force option if you want to enable SSD TRIM.
     Do NOT use TRIM on SSDs in RAID 5, RAID 6 or SHR with 3 or more SSDs unless you are certain your SSDs use TRIM Method 1 mentioned here.
     Enabling TRIM on SSDs that use TRIM Method 2 can result in data loss in RAID 5, RAID 6 and SHR with 3 or more drives.
 Enables M2D20, M2D18, M2D17 and E10M20-T1 if present on Synology NAS that don't officially support them.
     Newer NAS models may also need Synology_enable_M2_card
 Checks that M.2 volume support is enabled (on models that have M.2 slots or PCIe slots).
 Enables creating M.2 storage pools and volumes from within Storage Manager in DSM 7.2 and later (newer models only?).
     Including M.2 drives in PCIe adaptor cards like M2D20, M2D18, M2D17 and E10M20-T1 for DSM 7.2 and above (schedule the script to run boot).
 Optionally update IronWolf Health Monitor to v2.5.1 to support recent model IronWolf and IronWolf Pro drives. (NAS with x86_64 CPUs only).
     Also installs IronWolf Health Management on '22 series and newer models that don't have IronWolf Health Management (untested).
 Make

Top issues

Discussions

Latest release

v3.6.139 v3.6.139 2026-08-30
- Changed to only edit the current Synology model's host db files.
  - Skips old Synology model's db files if the drives were migrated from a different model.

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON