# 群晖usb改为识别成esata

  1. 主要是修改/etc.default/synoinfo.conf和/etc/synoinfo.conf两个文件里相关的值
# 说明:端口在哪里是用二进制表示
# maxdisks="2":最大的内部端口数,表示最多只有2个,如果要识别成内部端口,此值要相应增大。
# internalportcfg="0x3" :内部端口,表示有两个,分别在第1,2位
# esataportcfg="0x4":esata端口,表示在第3位
# usbportcfg="0x70000":usb端口,表示在第17,18,19位


vim /etc.default/synoinfo.conf

#示例:把第17位(右往左数)的端口改为esata
#esataportcfg="0x4"     #0100,原值表示第3位是esata端口
esataportcfg="0x10004"  #0001 0000 0000 0000 0100现在增加第17位也识别为esata端口

#usbportcfg="0x70000" #0111 0000 0000 0000 0000,原值表示第17,18,19位是usb端口
usbportcfg="0x60000"  #0110 0000 0000 0000 0000,把第17位去掉,不再识别为usb端口

vim /etc/synoinfo.conf
#示例:把第17位(右往左数)的端口改为esata
#esataportcfg="0x4"     #0100,原值表示第3位是esata端口
esataportcfg="0x10004"  #0001 0000 0000 0000 0100现在增加第17位也识别为esata端口

#usbportcfg="0x70000" #0111 0000 0000 0000 0000,原值表示第17,18,19位是usb端口
usbportcfg="0x60000"  #0110 0000 0000 0000 0000,把第17位去掉,不再识别为usb端口