Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save StudioEtrange/94bf884129b7d5652a0d56f1314ae386 to your computer and use it in GitHub Desktop.
Save StudioEtrange/94bf884129b7d5652a0d56f1314ae386 to your computer and use it in GitHub Desktop.
synology_set_external_drive_as_internal
# https://www.casler.org/wordpress/synology-ssd-cache-on-external-devices/
echo "Current values"
more /etc.defaults/synoinfo.conf | grep maxdisk
more /etc.defaults/synoinfo.conf | grep usbportcfg
more /etc.defaults/synoinfo.conf | grep esataportcfg
more /etc.defaults/synoinfo.conf | grep internalportcfg
sudo sed -i.bak -e 's/maxdisks=\".*$/maxdisks=\"24\"/g' -e 's/usbportcfg=\".*$/usbportcfg=\"0x00\"/g' -e 's/esataportcfg=\".*$/esataportcfg=\"0x00\"/g' -e 's/internalportcfg=\".*$/internalportcfg=\"0xffffff\"/g' /etc.defaults/synoinfo.conf
echo "Updated values"
more /etc.defaults/synoinfo.conf | grep maxdisk
more /etc.defaults/synoinfo.conf | grep usbportcfg
more /etc.defaults/synoinfo.conf | grep esataportcfg
more /etc.defaults/synoinfo.conf | grep internalportcfg
echo "Reboot syno"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment