文件信息
版本:DS923+ 7.1.1 42962 update 4
修改文件: /lib64/libhwcontrol.so.1
原始sha1: ecd958868934ea1f8c15858eba8b981169505b0a
用hex编辑器进行下面替换。
macOS可以使用 Hex Fiend工具
1
2
| search : 1EFA803E00B8010000007520
replace: 1EFA803E00B8010000009090
|

然后执行下面命令
1
2
3
| sudo -i
echo "2C396: 9090" | xxd -r - /usr/lib/libhwcontrol.so.1
chmod 644 /usr/lib/libhwcontrol.so.1
|
重启机器后即可设置nvme硬盘作为存储

纯享版命令
直接使用下列 linux命令即可完成文件修改
1
2
3
4
5
6
7
8
9
| cd /tmp
xxd -p /lib64/libhwcontrol.so.1 > libhwcontrol.hex
sed -i 's/1EFA803E00B8010000007520/1EFA803E00B8010000009090/g' libhwcontrol.hex
xxd -r -p libhwcontrol.hex > libhwcontrol_patch.so.1
echo "2C396: 9090" | xxd -r - libhwcontrol_patch.so.1
chmod 644 libhwcontrol_patch.so.1
# 替换原文件
cp /usr/lib/libhwcontrol.so.1 /usr/lib/libhwcontrol.so.1.bak
mv libhwcontrol_patch.so.1 /usr/lib/libhwcontrol.so.1
|
参考内容
- https://xpenology.com/forum/topic/67961-use-nvmem2-hard-drives-as-storage-pools-in-synology/#comment-438877