* Checks if each drive is already in the Synology's compatible-drive database.
* Checks if each drive is already in the Synology's compatible-drive database.
* Adds any missing drives to the Synology's compatible-drive database.
* Adds any missing drives to the Synology's compatible-drive database.
**Planned updates:**
**Planned updates:**
* Detect any connected expansion units and get the model(s) and edit the correct expansion unit db files.
* Detect any connected expansion units and get the model(s) and edit the correct expansion unit db files.
* Or add support for users to specify their expansion unit model(s) as arguments.
* Or add support for users to specify their expansion unit model(s) as arguments.
* Or maybe use the shotgun approach and update all expansion unit db files.
* Or maybe use the shotgun approach and update all expansion unit db files.
* Add support for SAS drives? Are SAS drives listed as /dev/sata# or /dev/sas# ?
* Add support for SAS drives? Are SAS drives listed as /dev/sata# or /dev/sas# ?
#### Running the script
### When to run the script
DSM updates wil almost certainly overwrite the drive-compatibility database files so you may need to run the script after every DSM update. You would also have to re-run the script after DSM downloads a newer version of the drive-compatibility database, which can happen between DSM updates. The best option is to run the script every time the Synology boots, and the best way to do that is to setup a scheduled task to run the the script at boot-up.
### Scheduling the script in Synology's Task Scheduler
See <ahref=how_to_schedule.md/>How to schedule a script in Synology Task Manager</a>
### Running the script via SSH
You can either run the script in a shell, or add a "User defined script" task to Synology's Task Scheduler to run as root.
You run the script in a shell with sudo or as root.
If you run the script with the -showedits flag it will show you the changes it made to the Synology's compatible-drive database. Obviously this is only useful if you run the script in a shell.
If you run the script with the -showedits flag it will show you the changes it made to the Synology's compatible-drive database. Obviously this is only useful if you run the script in a shell.