007revad 2 years ago
parent
commit
182aa468ef
  1. 46
      CHANGES.txt
  2. 63
      README.md
  3. BIN
      bin/dtbpatch
  4. BIN
      dtb/DS1520+_model.dtb
  5. BIN
      dtb/DS1621+_model.dtb
  6. BIN
      dtb/DS1821+_model.dtb
  7. BIN
      dtb/DS1823+_model.dtb
  8. BIN
      dtb/DS2422+_model.dtb
  9. BIN
      dtb/RS1221+_model.dtb
  10. BIN
      dtb/RS1221RP+_model.dtb
  11. BIN
      dtb/RS2421+_model.dtb
  12. BIN
      dtb/RS2421RP+_model.dtb
  13. BIN
      dtb/RS2423+_model.dtb
  14. BIN
      dtb/RS2821RP+_model.dtb
  15. BIN
      dtb/RS822+_model.dtb
  16. BIN
      dtb/RS822RP+_model.dtb
  17. BIN
      images/unknown.png
  18. BIN
      images/vendor_ids.png
  19. 14
      my-other-scripts.md
  20. 960
      syno_hdd_db.sh
  21. 22
      syno_hdd_vendor_ids.txt

46
CHANGES.txt

@ -1,3 +1,49 @@
v3.4.78
- Added check that script is running on Synology NAS.
v3.4.77
- Include smart_test_ignore and smart_attr_ignore in db files.
- Now saves changes.txt as <script-filename>_changes.txt when updating the script.
- To not overwrite changes.txt if my other scripts are in the same folder.
- Bug fix for detecting if script is located on M.2 drive.
- Bug fix for error when -s or --showedits option was used. Issue #200
- Minor bug fix.
v3.3.73
- Bug fix for vendor id.
v3.3.72
- Bug fix for enabling creating storage pools in Storage Manager for M.2 drives in PCIe adaptor cards.
- Bug fix for not copying syno_hdd_db_vendors.txt to script location when script updates itself.
- Bug fix for checking if script located on NVMe drive.
v3.3.70
- Now enables creating storage pools in Storage Manager for M.2 drives in PCIe adaptor cards:
- E10M20-T1, M2D20, M2D18 and M2D17.
- DSM 7.2.1 and above only.
- Script needs to run after each boot.
- Added new vendor ids for Apacer, aigo, Lexar and Transcend NVMe drives.
- Now includes syno_hdd_vendor.txt so users can add their NVMe drive's vendor id.
- syno_hdd_vendor.txt needs to be in the same folder as syno_hdd_db.sh
- Now warns if script is located on an M.2 volume.
v3.2.69
- Added KIOXIA vendor id.
- Bug fix for wrong version number, which caused an update loop.
v3.2.68
- Updated so E10M20-T1, M2D20, M2D18 and M2D17 now work in models that use device tree and are using:
- DSM 7.2 Update 2 and 3, 7.2.1, 7.2.1 Update 1, 2 and 3. Issue #132, #148
- Now edits model.dtb instead of downloading a pre-edited version.
- Improvements to --restore option.
- Fix for Unknown vendor causing "Unsupported firmware version" warning. Issue #161
- Now supports NVMe drives that show as Unknown brand in storage manager: Issue #161
- ADATA, Corsair, Gigabyte, HS/MAXIO, MSI, Netac, Phison, PNY
- SK Hynix, Solidigm, SPCC/Lexar, TEAMGROUP, UMIS, ZHITAI
- Fixed bug where memory was shown in MB but with GB unit.
- Removed -i, --immutable option.
- Minor bug fixes.
v3.1.65
- Bug fix for NVMe drives with / in the model name for non-device tree Synology models. Issue #154

63
README.md

@ -31,6 +31,7 @@ #### What the script does:
* Enables M2D20, M2D18, M2D17 and E10M20-T1 if present on Synology NAS that don't officially support them.
* 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 **(newer models only?)**.
* Including M.2 drives in PCIe adaptor cards like M2D20, M2D18, M2D17 and E10M20-T1 for DSM 7.2.1 and above **(need to run script after each boot)**.
* Makes DSM recheck disk compatibility so rebooting is not needed if you don't have M.2 drives (DSM 7 only).
* **If you have M.2 drives you may need to reboot.**
* Reminds you that you may need to reboot the Synology after running the script.
@ -41,6 +42,8 @@ ### Download the script
See <a href=images/how_to_download.png/>How to download the script</a> for the easiest way to download the script.
Do ***NOT*** save the script to a M.2 volume. The M.2 volume won't be available until after the script has run.
### When to run the script
You would need to re-run the script after a DSM update. If you have DSM set to auto update the best option is to run the script every time the Synology boots, and the best way to do that is to <a href=how_to_schedule.md/>setup a scheduled task</a> to run the the script at boot-up.
@ -75,6 +78,8 @@ ### Scheduling the script in Synology's Task Scheduler
### Running the script via SSH
[How to enable SSH and login to DSM via SSH](https://kb.synology.com/en-global/DSM/tutorial/How_to_login_to_DSM_with_root_permission_via_SSH_Telnet)
You run the script in a shell with sudo -i or as root.
```YAML
@ -95,6 +100,20 @@ ### Running the script via SSH
<p align="leftr"><img src="images/syno_hdd_db.png"></p>
### vendor_ids.txt
You only need to edit syno_hdd_vendor_ids.txt if the script warns you about a missing vendor id.
If DSM doesn't know the brand of your NVMe drives they will show up in Storage Manager as Unknown brand, and Unrecognised firmware version.
<p align="leftr"><img src="images/unknown.png"></p>
In this case the script will show you the vendor ID and advise you to add it to the syno_hdd_vendor_ids.txt file.
<p align="leftr"><img src="images/vendor_ids.png"></p>
<br>
**Credits**
- The idea for this script came from a comment made by Empyrealist on the Synology subreddit.
@ -105,30 +124,20 @@ ### Running the script via SSH
**Donators**
Thank you to the following paypal donators and GitHub sponsors
- Harry Bos
- Mark-Philipp Wolfger
- Filip Kraus
- John Pham
- Alejandro Bribian Rix
- Daniel Hofer
- Bogdan-Stefan Rotariu
- Kevin Boatswain
- anschluss-org
- Yemeth
- Patrick Thomas
- Manuel Marquez Corral
- Evrard Franck
- Chad Palmer
- 侯​永政
- CHEN​HAN-YING
- Eric Wells
- Massimiliano Pesce
- JasonEMartin
- Gerrit Klussmann
- Alain Aube
- Robert Kraut
- Charles-Edouard Poisnel
- Oliver Busch
- And the anonymous donors and private sponsors
Thank you to the following PayPal donators, GitHub sponsors and hardware donators
| | | | |
|--------------------|--------------------|----------------------|----------------------|
| | Voluntary Commerce LLC | Ez Hosting | Alec Wilhere |
| Reece Lyne | Enric Escudé Santana | Yunhao Zhang | Matthias Gerhardt |
| Darryl Harper | Mikescher | Matthias Pfaff | cpharada |
| Neil Tapp | zen1605 | Kleissner Investments | Angel Scandinavia |
| bcollins | Peter jackson | Mir Hekmat | Andrew Tapp |
| Peter Weißflog | Joseph Skup | Dirk Kurfuerst | Gareth Locke |
| Rory de Ruijter | Nathan O'Farrell | Harry Bos | Mark-Philipp Wolfger |
| Filip Kraus | John Pham | Alejandro Bribian Rix | Daniel Hofer |
| Bogdan-Stefan Rotariu | Kevin Boatswain | anschluss-org | Yemeth |
| Patrick Thomas | Manuel Marquez Corral | Evrard Franck | Chad Palmer |
| 侯​永政 | CHEN​HAN-YING | Eric Wells | Massimiliano Pesce |
| JasonEMartin | Gerrit Klussmann | Alain Aube | Robert Kraut |
| Charles-Edouard Poisnel | Oliver Busch | anonymous donors | private sponsors |

BIN
bin/dtbpatch

Binary file not shown.

BIN
dtb/DS1520+_model.dtb

Binary file not shown.

BIN
dtb/DS1621+_model.dtb

Binary file not shown.

BIN
dtb/DS1821+_model.dtb

Binary file not shown.

BIN
dtb/DS1823+_model.dtb

Binary file not shown.

BIN
dtb/DS2422+_model.dtb

Binary file not shown.

BIN
dtb/RS1221+_model.dtb

Binary file not shown.

BIN
dtb/RS1221RP+_model.dtb

Binary file not shown.

BIN
dtb/RS2421+_model.dtb

Binary file not shown.

BIN
dtb/RS2421RP+_model.dtb

Binary file not shown.

BIN
dtb/RS2423+_model.dtb

Binary file not shown.

BIN
dtb/RS2821RP+_model.dtb

Binary file not shown.

BIN
dtb/RS822+_model.dtb

Binary file not shown.

BIN
dtb/RS822RP+_model.dtb

Binary file not shown.

BIN
images/unknown.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
images/vendor_ids.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

14
my-other-scripts.md

@ -5,7 +5,7 @@ ## All my Synology Scripts
- **<a href="https://github.com/007revad/Synology_enable_M2_volume">Synology_enable_M2_volume</a>**
- Enable creating volumes with non-Synology M.2 drives.
- Enable Health Info for non-Synology NVMe drives.
- Enable Health Info for non-Synology NVMe drives (not in DSM 7.2.1 or later).
- **<a href="https://github.com/007revad/Synology_M2_volume">Synology_M2_volume</a>**
- Easily create an M.2 volume on Synology NAS.
@ -31,5 +31,17 @@ ## All my Synology Scripts
- **<a href="https://github.com/007revad/Synology_DSM_reinstall">Synology_DSM_reinstall</a>**
- Easily re-install the same DSM version without losing any data or settings
- **<a href="https://github.com/007revad/Synology_app_mover">Synology_app_mover</a>**
- Easily move Synology packages from one volume to another volume
- **<a href="https://github.com/007revad/Synology_Cleanup_Coredumps">Synology_Cleanup_Coredumps</a>**
- Cleanup memory core dumps from crashed processes
- **<a href="https://github.com/007revad/Docker_Autocompose">Docker_Autocompose</a>**
- Create .yml files from your docker existing containers
- **<a href="https://github.com/007revad/Download_Synology_Archive">Download_Synology_Archive</a>**
- Download all or part of the Synology archive
- **<a href="https://github.com/007revad/ScriptNotify">ScriptNotify</a>**
- DSM 7 package to allow your scripts to send DSM notifications

960
syno_hdd_db.sh

File diff suppressed because it is too large

22
syno_hdd_vendor_ids.txt

@ -0,0 +1,22 @@
# You can add your drive's vendor id and vendor name here.
#
# Only edit this file if the script warns you about a missing vendor id.
0x1dbe="ADATA"
0x0ed1="aigo"
0x1bdc="Apacer"
0x1b1c="Corsair"
0x1cfa="Corsair"
0x1458="Gigabyte"
0x1e0f="KIOXIA"
0x05dc="Lexar"
0x1462="MSI"
0x1f40="Netac"
0x1987="Phison"
0x196e="PNY"
0x1c5c="SK Hynix"
0x025e="Solidigm"
0x10ec="TEAMGROUP"
0x1d79="Transcend"
0x1cc4="UMIS"
0x1e49="ZHITAI"
Loading…
Cancel
Save