[GH-ISSUE #58] Make it possible for USB-Disks #210

Closed
opened 2026-03-11 06:30:59 +03:00 by kerem · 3 comments
Owner

Originally created by @DenisMtfl on GitHub (Jun 6, 2023).
Original GitHub issue: https://github.com/007revad/Synology_enable_M2_volume/issues/58

Since DSM 7.1 there is no Port configs in synoinfo.conf for bringing the USB-Disks to a Volume.
Do you have an idea to make it possible anymore?

Originally created by @DenisMtfl on GitHub (Jun 6, 2023). Original GitHub issue: https://github.com/007revad/Synology_enable_M2_volume/issues/58 Since DSM 7.1 there is no Port configs in synoinfo.conf for bringing the USB-Disks to a Volume. Do you have an idea to make it possible anymore?
kerem closed this issue 2026-03-11 06:31:10 +03:00
Author
Owner

@007revad commented on GitHub (Jun 7, 2023):

EDIT I seem to have pasted an answer to someone else's question here!?!?

The script adds enable_m2_pool="yes" to synoninfo.conf. The script works for DSM 7.1.1 on some '20 and newer models.

You are better off updating to DSM 7.2 and using the https://github.com/007revad/Synology_HDD_db script.

If you really want to stick with DSM 7.0 you can use the https://github.com/007revad/Synology_M2_volume script.

<!-- gh-comment-id:1580076455 --> @007revad commented on GitHub (Jun 7, 2023): _**EDIT I seem to have pasted an answer to someone else's question here!?!?**_ The script adds `enable_m2_pool="yes"` to synoninfo.conf. The script works for DSM 7.1.1 on some '20 and newer models. You are better off updating to DSM 7.2 and using the https://github.com/007revad/Synology_HDD_db script. If you really want to stick with DSM 7.0 you can use the https://github.com/007revad/Synology_M2_volume script.
Author
Owner

@007revad commented on GitHub (Jun 16, 2023):

Since DSM 7.1 there is no Port configs in synoinfo.conf for bringing the USB-Disks to a Volume.
Do you have an idea to make it possible anymore?

Are you saying that DSM 7.0 let you create a volume using USB disks?

<!-- gh-comment-id:1594025481 --> @007revad commented on GitHub (Jun 16, 2023): > Since DSM 7.1 there is no Port configs in synoinfo.conf for bringing the USB-Disks to a Volume. > Do you have an idea to make it possible anymore? Are you saying that DSM 7.0 let you create a volume using USB disks?
Author
Owner

@007revad commented on GitHub (Jun 19, 2023):

@DenisMtfl

Just because the usbportcfg key is not in synoinfo.conf by default any more does not mean you can't add it. In some cases DSM will check if the key exists in synoinfo.conf and then use a default setting if the key doesn't exist.

The synosetkeyvalue command will add the key+value if it doesn't exist, or change the value if the key does exist.
Note: Using synosetkeyvalue to set a key in /etc.defaults/synoinfo.conf also sets the same key in /etc/synoinfo.conf (saves you having to edit both files by hand).

This should work:

sudo -i
synosetkeyvalue /etc.defaults/synoinfo.conf esataportcfg="0"
synosetkeyvalue /etc.defaults/synoinfo.conf internalportcfg="0xffffffffff"
synosetkeyvalue /etc.defaults/synoinfo.conf usbportcfg="0"
synosetkeyvalue /etc.defaults/synoinfo.conf maxdisks=24

I wouldn't set esataportcfg="0" if you use an eSATA HDD.
Set maxdisks tothe number of internal drive bays + the number of USB ports you want to appear as internal ports.

<!-- gh-comment-id:1596495460 --> @007revad commented on GitHub (Jun 19, 2023): @DenisMtfl Just because the usbportcfg key is not in synoinfo.conf by default any more does not mean you can't add it. In some cases DSM will check if the key exists in synoinfo.conf and then use a default setting if the key doesn't exist. The synosetkeyvalue command will add the key+value if it doesn't exist, or change the value if the key does exist. Note: Using synosetkeyvalue to set a key in **/etc.defaults/synoinfo.conf** also sets the same key in **/etc/synoinfo.conf** (saves you having to edit both files by hand). This should work: ``` sudo -i synosetkeyvalue /etc.defaults/synoinfo.conf esataportcfg="0" synosetkeyvalue /etc.defaults/synoinfo.conf internalportcfg="0xffffffffff" synosetkeyvalue /etc.defaults/synoinfo.conf usbportcfg="0" synosetkeyvalue /etc.defaults/synoinfo.conf maxdisks=24 ``` I wouldn't set esataportcfg="0" if you use an eSATA HDD. Set maxdisks tothe number of internal drive bays + the number of USB ports you want to appear as internal ports.
Sign in to join this conversation.
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_volume#210
No description provided.