[GH-ISSUE #66] Does not work on DS1825+ running DSM 7.3-81180 #6

Closed
opened 2026-03-07 19:11:25 +03:00 by kerem · 8 comments
Owner

Originally created by @kennydm00 on GitHub (Oct 24, 2025).
Original GitHub issue: https://github.com/007revad/Synology_enable_M2_card/issues/66

Hi there,

I have some trouble getting the M2D20 with 2x WD_black m.2 to work under my DS1825+ running DSM 7.3-81180.
When I run syno_enable_m2_card.sh I get the following output:

Synology_enable_M2_card v3.1.17
DS1825+ DSM 7.3-81180

StorageManager 1.0.0-01026

Running from: /volume2/homes/kenny/Synology_enable_M2_card-main/syno_enable_m2_card.sh
WARNING Don't store this script on an NVMe volume!
1) E10M20-T1  3) M2D18      5) FX2422N    7) Quit
2) M2D20      4) M2D17      6) ALL
Select your M.2 Card: 2

M2D20 NVMe already enabled for DS1825+
FATAL ERROR: Couldn't open output file : No such file or directory
chmod: cannot access '': No such file or directory
sed: can't read : No such file or directory
/var/services/homes/kenny/Synology_enable_M2_card-main/syno_enable_m2_card.sh: line 690: : No such file or directory
Added M2D20 to model.dtb
FATAL ERROR: Couldn't open "": No such file or directory

Finished

The errors comes from the missing dts_file variable (commented out).
Output when using the check parameter:

Synology_enable_M2_card v3.1.17
DS1825+ DSM 7.3-81180

StorageManager 1.0.0-01026

Using options: -c
Running from: /volume2/homes/kenny/Synology_enable_M2_card-main/syno_enable_m2_card.sh
WARNING Don't store this script on an NVMe volume!
...
M2D20 NVMe is enabled for DS1825+
M2D20 is not enabled in /etc.defaults/model.dtb
M2D20 is not enabled in /etc/model.dtb
...

Your syno_hdd_db.sh script also don't see the pcie card neither the WD_black SSDs.
The thing is, I can see both m.2 cards when using your syno_create_m2_volume.sh script but the script also don't work. When it tries to create the volume, it fails silently.
The silent fail comes from synostgpool:

sudo /usr/syno/sbin/synostgpool --create -l SHR1 -d "vm storage pool" /dev/nvme0n1 /dev/nvme1n1

Please tell me if I can provide more information and thank you for creating these scripts! (I used your syno_hdd_db.sh script on DSM 7.2 and also your syno_app_mover.sh script)

Originally created by @kennydm00 on GitHub (Oct 24, 2025). Original GitHub issue: https://github.com/007revad/Synology_enable_M2_card/issues/66 Hi there, I have some trouble getting the **M2D20** with 2x WD_black m.2 to work under my **DS1825+** running **DSM 7.3-81180**. When I run syno_enable_m2_card.sh I get the following output: ``` Synology_enable_M2_card v3.1.17 DS1825+ DSM 7.3-81180 StorageManager 1.0.0-01026 Running from: /volume2/homes/kenny/Synology_enable_M2_card-main/syno_enable_m2_card.sh WARNING Don't store this script on an NVMe volume! 1) E10M20-T1 3) M2D18 5) FX2422N 7) Quit 2) M2D20 4) M2D17 6) ALL Select your M.2 Card: 2 M2D20 NVMe already enabled for DS1825+ FATAL ERROR: Couldn't open output file : No such file or directory chmod: cannot access '': No such file or directory sed: can't read : No such file or directory /var/services/homes/kenny/Synology_enable_M2_card-main/syno_enable_m2_card.sh: line 690: : No such file or directory Added M2D20 to model.dtb FATAL ERROR: Couldn't open "": No such file or directory Finished ``` The errors comes from the missing dts_file variable (commented out). Output when using the check parameter: ``` Synology_enable_M2_card v3.1.17 DS1825+ DSM 7.3-81180 StorageManager 1.0.0-01026 Using options: -c Running from: /volume2/homes/kenny/Synology_enable_M2_card-main/syno_enable_m2_card.sh WARNING Don't store this script on an NVMe volume! ... M2D20 NVMe is enabled for DS1825+ M2D20 is not enabled in /etc.defaults/model.dtb M2D20 is not enabled in /etc/model.dtb ... ``` Your **syno_hdd_db.sh** script also don't see the pcie card neither the WD_black SSDs. The thing is, I can see both m.2 cards when using your **syno_create_m2_volume.sh** script but the script also don't work. When it tries to create the volume, it fails silently. The silent fail comes from synostgpool: ``` sudo /usr/syno/sbin/synostgpool --create -l SHR1 -d "vm storage pool" /dev/nvme0n1 /dev/nvme1n1 ``` Please tell me if I can provide more information and thank you for creating these scripts! (I used your syno_hdd_db.sh script on DSM 7.2 and also your syno_app_mover.sh script)
kerem closed this issue 2026-03-07 19:11:25 +03:00
Author
Owner

@007revad commented on GitHub (Oct 25, 2025):

Is there a bin folder in the same folder as the script, and does the bin folder contain dtc ?

<!-- gh-comment-id:3445288267 --> @007revad commented on GitHub (Oct 25, 2025): Is there a bin folder in the same folder as the script, and does the bin folder contain dtc ?
Author
Owner

@kennydm00 commented on GitHub (Oct 25, 2025):

Yes bin folder and dtc is there

<!-- gh-comment-id:3445827707 --> @kennydm00 commented on GitHub (Oct 25, 2025): Yes bin folder and dtc is there
Author
Owner

@007revad commented on GitHub (Oct 25, 2025):

I'm updating my DS1821+ to DSM 7.3-81180 to see if it has the same issue - which will make it easier for me to debug and fix.

<!-- gh-comment-id:3447831253 --> @007revad commented on GitHub (Oct 25, 2025): I'm updating my DS1821+ to DSM 7.3-81180 to see if it has the same issue - which will make it easier for me to debug and fix.
Author
Owner

@007revad commented on GitHub (Oct 25, 2025):

I have 4 of my scripts scheduled to run as root at boot.

Synology_HDD_db
Synology_enable_M2_card
Synology_enable_eunit
Synology_enable_Deduplication

The first 3 use dtc to edit model.dtb and they all worked okay.

While checking the Synology_HDD_db task scheduler log I remembered that Synology_HDD_db automatically adds your installed PCIe M.2 card to model.dtb and edits adapter_cards.conf - so if you run Synology_HDD_db you shouldn't need Synology_enable_M2_card.

If Synology_HDD_db has the same errors then DSM 7.3 may be more strict for a DS1825+ and I'll have to dig deeper. And get you run a test version of Synology_enable_M2_card to see which lines in the script are causing the errors.

<!-- gh-comment-id:3447869385 --> @007revad commented on GitHub (Oct 25, 2025): I have 4 of my scripts scheduled to run as root at boot. Synology_HDD_db Synology_enable_M2_card Synology_enable_eunit Synology_enable_Deduplication The first 3 use dtc to edit model.dtb and they all worked okay. While checking the Synology_HDD_db task scheduler log I remembered that Synology_HDD_db automatically adds your installed PCIe M.2 card to model.dtb and edits adapter_cards.conf - so if you run Synology_HDD_db you shouldn't need Synology_enable_M2_card. If Synology_HDD_db has the same errors then DSM 7.3 may be more strict for a DS1825+ and I'll have to dig deeper. And get you run a test version of Synology_enable_M2_card to see which lines in the script are causing the errors.
Author
Owner

@kennydm00 commented on GitHub (Oct 26, 2025):

I also let the syno_hdd_db script run with root at boot-up. But weirdly the script does not recognize the pcie adapter. I also thought that the card is faulty, but the SSDs get mounted to /dev/nvme0n1 and /dev/nvme1n1 respectively. I can also retrieve S.M.A.R.T. information for the m.2 and it's telling me that the SSDs are connected trough the M2D20 card.

<!-- gh-comment-id:3448244015 --> @kennydm00 commented on GitHub (Oct 26, 2025): I also let the syno_hdd_db script run with root at boot-up. But weirdly the script does not recognize the pcie adapter. I also thought that the card is faulty, but the SSDs get mounted to /dev/nvme0n1 and /dev/nvme1n1 respectively. I can also retrieve S.M.A.R.T. information for the m.2 and it's telling me that the SSDs are connected trough the M2D20 card.
Author
Owner

@007revad commented on GitHub (Oct 26, 2025):

Try this:

sudo chmod 755 /volume2/homes/kenny/Synology_enable_M2_card-main/bin/dtc

Then run the script again.

<!-- gh-comment-id:3448987869 --> @007revad commented on GitHub (Oct 26, 2025): Try this: ``` sudo chmod 755 /volume2/homes/kenny/Synology_enable_M2_card-main/bin/dtc ``` Then run the script again.
Author
Owner

@007revad commented on GitHub (Oct 26, 2025):

I've found the problem. You are using v3.1.17, which I have deleted because it had a bug. It is missing a line dts_file="/tmp/model${hwrev}.dts" so the dts_file variable is empty!

I just noticed v3.18-RC is also missing the same line.

Use v3.1.16 or v3.1.19 as they work.

<!-- gh-comment-id:3449001995 --> @007revad commented on GitHub (Oct 26, 2025): I've found the problem. You are using v3.1.17, which I have deleted because it had a bug. It is missing a line `dts_file="/tmp/model${hwrev}.dts"` so the dts_file variable is empty! I just noticed v3.18-RC is also missing the same line. Use [v3.1.16 or v3.1.19](https://github.com/007revad/Synology_enable_M2_card/releases) as they work.
Author
Owner

@kennydm00 commented on GitHub (Oct 27, 2025):

Yes, v3.1.19 worked like a charm! Thank you very much for your help!

<!-- gh-comment-id:3450524583 --> @kennydm00 commented on GitHub (Oct 27, 2025): Yes, v3.1.19 worked like a charm! Thank you very much for your help!
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Synology_enable_M2_card#6
No description provided.