Created
April 3, 2021 20:05
-
-
Save StudioEtrange/94bf884129b7d5652a0d56f1314ae386 to your computer and use it in GitHub Desktop.
synology_set_external_drive_as_internal
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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