{"id":17674550,"url":"https://github.com/007revad/synology_enable_m2_card","last_synced_at":"2025-04-09T20:08:28.363Z","repository":{"id":179138907,"uuid":"663021919","full_name":"007revad/Synology_enable_M2_card","owner":"007revad","description":"Enable M.2 PCIe cards in Synology NAS that don't officially support them","archived":false,"fork":false,"pushed_at":"2025-03-22T20:05:06.000Z","size":640,"stargazers_count":68,"open_issues_count":1,"forks_count":9,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-09T20:08:21.095Z","etag":null,"topics":["diskstation","dsm","rackstation","synology","synology-disk-station","synology-dsm","synology-nas"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/007revad.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.txt","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"007revad","buy_me_a_coffee":"007revad","custom":["https://www.paypal.me/007revad"]}},"created_at":"2023-07-06T11:39:17.000Z","updated_at":"2025-03-22T20:05:10.000Z","dependencies_parsed_at":"2023-11-28T22:23:33.119Z","dependency_job_id":"76367b31-90db-4c35-8ddc-e45badba3e55","html_url":"https://github.com/007revad/Synology_enable_M2_card","commit_stats":{"total_commits":140,"total_committers":1,"mean_commits":140.0,"dds":0.0,"last_synced_commit":"11551593072456590365c1f22938e341b3ee91b6"},"previous_names":["007revad/synology_enable_m2_card"],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/007revad%2FSynology_enable_M2_card","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/007revad%2FSynology_enable_M2_card/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/007revad%2FSynology_enable_M2_card/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/007revad%2FSynology_enable_M2_card/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/007revad","download_url":"https://codeload.github.com/007revad/Synology_enable_M2_card/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248103873,"owners_count":21048245,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["diskstation","dsm","rackstation","synology","synology-disk-station","synology-dsm","synology-nas"],"created_at":"2024-10-24T07:07:31.739Z","updated_at":"2025-04-09T20:08:28.333Z","avatar_url":"https://github.com/007revad.png","language":"Shell","funding_links":["https://github.com/sponsors/007revad","https://buymeacoffee.com/007revad","https://www.paypal.me/007revad","https://www.paypal.com/paypalme/007revad"],"categories":[],"sub_categories":[],"readme":"# Synology enable M2 card\n\n\u003ca href=\"https://github.com/007revad/Synology_enable_M2_card/releases\"\u003e\u003cimg src=\"https://img.shields.io/github/release/007revad/Synology_enable_M2_card.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://hits.seeyoufarm.com\"\u003e\u003cimg src=\"https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2F007revad%2FSynology_enable_M2_card\u0026count_bg=%2379C83D\u0026title_bg=%23555555\u0026icon=\u0026icon_color=%23E7E7E7\u0026title=views\u0026edge_flat=false\"/\u003e\u003c/a\u003e\n[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/paypalme/007revad)\n[![](https://img.shields.io/static/v1?label=Sponsor\u0026message=%E2%9D%A4\u0026logo=GitHub\u0026color=%23fe8e86)](https://github.com/sponsors/007revad)\n[![committers.top badge](https://user-badge.committers.top/australia/007revad.svg)](https://user-badge.committers.top/australia/007revad)\n\n### Description\n\nEnable Synology M.2 PCIe cards in Synology NAS that don't officially support them\n\nAllows using E10M20-T1, M2D20, M2D18 or M2D17 cards in Synology NAS models that aren't on their [supported model list](https://github.com/007revad/Synology_enable_M2_volume/wiki/Models-that-support-PCIe-M.2-cards).\n\n  - Enables E10M20-T1, M2D20, M2D18 and M2D17 for DS1823xs+, DS1821+, DS1621+.\n  - Enables M2D18 and M2D17 for DS2422+, RS2423+, RS2421+, RS2421RP+, RS2821RP+.\n  - Enables M2D18 and M2D17 for RS822RP+, RS822+, RS1221RP+ and RS1221+ using DSM 7.1.1 and older.\n  - May enable E10M20-T1, M2D20, M2D18 and M2D17 for other models with a PCIe x8 slot that have /usr/syno/synonvme.\n\n[Synology HDD db](https://github.com/007revad/Synology_HDD_db) now enables using Storage Manager to create volumes on M.2 drives in a PCIe M.2 adaptor card.\n\n\u003cbr\u003e\n\n## Which Synology models will this work on\n\n\u003c/br\u003e**Works on the following models:**\n\n\u003cdetails\u003e\n  \u003csummary\u003eClick here to see list\u003c/summary\u003e\n\n| Model | E10M20-T1 | M2D20 | M2D18 | M2D17 | Notes |\n|-|-|-|-|-|-|\n| DS1821+   | yes | yes | yes | yes | |\n| DS1621+   | yes | yes | yes | yes | |\n| DS1823xs+ | yes | yes | yes | yes | |\n| DS2422+   | yes | yes | yes | yes | E10M20-T1\tand M2D20 already enabled in DSM |\n| | | | | |\n| RS2423+   | yes | yes | yes | yes | E10M20-T1\tand M2D20 already enabled in DSM |\n| RS2423RP+ | yes | yes | yes | yes | E10M20-T1\tand M2D20 already enabled in DSM |\n| RS2421+   | yes | yes | yes | yes | E10M20-T1\tand M2D20 already enabled in DSM |\n| RS2421RP+ | yes | yes | yes | yes | E10M20-T1\tand M2D20 already enabled in DSM |\n| RS2821RP+ | yes | yes | yes | yes | E10M20-T1\tand M2D20 already enabled in DSM |\n| RS822+    | yes | yes | yes | yes | E10M20-T1 and M2D18 already enabled in DSM* |\n| RS822RP+  | yes | yes | yes | yes | E10M20-T1 and M2D18 already enabled in DSM* |\n| RS1221+   | yes | yes | yes | yes | E10M20-T1 and M2D18 already enabled in DSM* |\n| RS1221RP+ | yes | yes | yes | yes | E10M20-T1 and M2D18 already enabled in DSM* |\n| RS2418+   | yes | yes | yes | yes | M2D20, M2D18 and M2D17 already enabled in DSM. E10M20-T1 see note 2 |\n| RS2418RP+ | yes | yes | yes | yes | M2D20, M2D18 and M2D17 already enabled in DSM. E10M20-T1 see note 2 |\n| | | | | |\n| **others** | maybe | maybe | maybe | maybe | See Other Models Notes |\n\n**Notes** \n1. Synology added support for the M2D18 in RS822+ and RS1221+ in DSM 7.2\n2. [E10M20-T1 needs 1cm cut off](https://github.com/007revad/Synology_enable_M2_card/discussions/59) to fit into a RS2418RP+/RS2418+\n\n**Other Models Notes** \n- The Synology must have a PCIe x8 slot\n- DSM must include /usr/syno/bin/synonvme\n- DSM must include /usr/lib/libsynonvme.so.1\n\n\u003c/details\u003e\n\n\u003c/br\u003e**Should work for the following models but I have not tested them:**\n\n\u003cdetails\u003e\n  \u003csummary\u003eClick here to see list\u003c/summary\u003e\n\n| Model | E10M20-T1 | M2D20 | M2D18 | M2D17 | Notes |\n|-|-|-|-|-|-|\n| FS2500    | yes | yes | yes | yes | |\n| FS3410    | yes | yes | yes | yes | |\n| FS6400    | yes | yes | yes | yes | |\n| | | | | |\n| HD6500    | yes | yes | yes | yes | |\n| | | | | |\n| SA4310    | yes | yes | yes | yes | E10M20-T1\tand M2D20 already enabled in DSM |\n| SA3610    | yes | yes | yes | yes | E10M20-T1\tand M2D20 already enabled in DSM |\n| SA6400    | yes | yes | yes | yes | E10M20-T1\tand M2D20 already enabled in DSM |\n\n\u003c/details\u003e\n\n\u003c/br\u003e**Synology NAS models that this script may work on?**\n\n\u003cdetails\u003e\n  \u003csummary\u003eClick here to see list\u003c/summary\u003e\n\n| Model | E10M20-T1 | M2D20 | M2D18 | M2D17 | Notes |\n|-|-|-|-|-|-|\n| DS1621xs+ | ???  | yes | ???  | ??? |  |\n\n\u003c/details\u003e\n\n\u003c/br\u003e**Synology NAS models that this script won't work on:**\n\n\u003cdetails\u003e\n  \u003csummary\u003eClick here to see list\u003c/summary\u003e\n\n| Model | E10M20-T1 | M2D20 | M2D18 | M2D17 | Notes |\n|-|-|-|-|-|-|\n| DS923+     | no  | no  | no  | no | PCIe x2 slot only fits the E10G22-T1-Mini |\n| DS723+     | no  | no  | no  | no | PCIe x2 slot only fits the E10G22-T1-Mini |\n| DS1522+    | no  | no  | no  | no | PCIe x2 slot only fits the E10G22-T1-Mini |\n| RS422+     | no  | no  | no  | no | PCIe x2 slot only fits the E10G22-T1-Mini |\n| | | | | |\n| DS1817+    | no  | no  | no  | no | Does not have /usr/syno/bin/synonvme |\n| DS1517+    | no  | no  | no  | no | Does not have /usr/syno/bin/synonvme |\n| | | | | |\n| RS1219+    | no  | no  | no  | no | Does not have /usr/syno/bin/synonvme |\n| RS818+     | no  | no  | no  | no | Does not have /usr/syno/bin/synonvme |\n| RS818RP+   | no  | no  | no  | no | Does not have /usr/syno/bin/synonvme |\n| RS3617xs   | no  | no  | no  | no | Does not have /usr/syno/bin/synonvme |\n| RS18016xs+ | no  | no  | no  | no | Does not have /usr/syno/bin/synonvme |\n| | | | | |\n| FS3017     | no  | no  | no  | no | Does not have /usr/syno/bin/synonvme |\n\n\u003c/details\u003e\n\n\u003cbr\u003e\n\n## How to run the script\n\n### Download the script\n\n1. Download the latest version _Source code (zip)_ from https://github.com/007revad/Synology_enable_M2_card/releases\n2. Save the download zip file to a folder on the Synology.\n    - Do ***NOT*** save the script to a M.2 volume. After a DSM or Storage Manager update the M.2 volume won't be available until after the script has run.\n3. Unzip the zip file.\n\n### Running the script via SSH\n\n[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)\n\n**Note:** Replace /volume1/scripts/ with the path to where the script is located.\nRun the script then reboot the Synology:\n```YAML\nsudo -s /volume1/scripts/syno_enable_m2_card.sh\n```\n\n**Options:**\n```YAML\n  -c, --check           Check M.2 card status\n  -r, --restore         Restore from backups to undo changes\n  -e, --email           Disable colored text in output scheduler emails.\n      --autoupdate=AGE  Auto update script (useful when script is scheduled)\n                        AGE is how many days old a release must be before\n                        auto-updating. AGE must be a number: 0 or greater\n      --model=CARD      Automatically enable specified card model\n                        Required if you want to schedule the script\n                        CARD can be E10M20-T1, M2D20, M2D18 or M2D17\n  -h, --help            Show this help message\n  -v, --version         Show the script version\n```\n\n### What about DSM updates?\n\nAfter any DSM update you will need to run this script again. \n\n### Schedule the script to run at shutdown\n\nOr you can schedule Synology_enable_M2_card to run when the Synology shuts down, to avoid having to remember to run the script after a DSM update.\n\nSee \u003ca href=how_to_schedule.md/\u003eHow to schedule a script in Synology Task Scheduler\u003c/a\u003e\n\n\u003c/br\u003e\n\n## Screenshots\n\n\u003cp align=\"center\"\u003eAvailable options\u003c/p\u003e\n\u003cp align=\"center\"\u003e\u003cimg src=\"/images/help.png\"\u003e\u003c/p\u003e\n\n\u003cp align=\"center\"\u003eEnabling all M.2 card models\u003c/p\u003e\n\u003cp align=\"center\"\u003e\u003cimg src=\"/images/edited.png\"\u003e\u003c/p\u003e\n\n\u003cp align=\"center\"\u003eChecking the current M.2 card settings\u003c/p\u003e\n\u003cp align=\"center\"\u003e\u003cimg src=\"/images/check.png\"\u003e\u003c/p\u003e\n\n\u003cp align=\"center\"\u003eE10M20-T1 already enabled\u003c/p\u003e\n\u003cp align=\"center\"\u003e\u003cimg src=\"/images/e10m20.png\"\u003e\u003c/p\u003e\n\n\u003cp align=\"center\"\u003eAll M.2 card models already enabled\u003c/p\u003e\n\u003cp align=\"center\"\u003e\u003cimg src=\"/images/all.png\"\u003e\u003c/p\u003e\n\n\u003cp align=\"center\"\u003eRestoring the original M.2 card settings\u003c/p\u003e\n\u003cp align=\"center\"\u003e\u003cimg src=\"/images/restore.png\"\u003e\u003c/p\u003e\n\n\n\u003cp align=\"center\"\u003eDS1821+ with a E10M20-T1\u003c/p\u003e\n\u003cp align=\"center\"\u003e\u003cimg src=\"/images/1821_e10m20-1.png\"\u003e\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"/images/1821_e10m20-2.png\"\u003e\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F007revad%2Fsynology_enable_m2_card","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F007revad%2Fsynology_enable_m2_card","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F007revad%2Fsynology_enable_m2_card/lists"}