|
laomms
发表于 2018-3-22 10:49
来自 中国浙江温州
本帖最后由 laomms 于 2018-3-22 13:08 编辑
各个qnap版本的config挂载代码:
For TS-201 use ...
- mount -t ext2 /dev/mtdblock4 /tmp/config
- vi /tmp/config/autorun.sh
- chmod +x /tmp/config/autorun.sh
- echo .
- echo "unmounting /tmp/config..."
- umount /tmp/config
复制代码
For TS-109, TS-109P, TS-119, TS-209, TS-209P, TS-219, TS-412, TS-409 (Marvell ARM) use ...
- mount -t ext2 /dev/mtdblock5 /tmp/config
- vi /tmp/config/autorun.sh
- chmod +x /tmp/config/autorun.sh
- echo .
- echo "unmounting /tmp/config..."
- umount /tmp/config
复制代码
TS-439, TS-509, TS-639, TS-809, TS-809U (x86) use ...
- mount -t ext2 /dev/sdx6 /tmp/config
- vi /tmp/config/autorun.sh
- chmod +x /tmp/config/autorun.sh
- echo .
- echo "unmounting /tmp/config..."
- umount /tmp/config
复制代码
All HAL-based Intel and AMD NAS use ...
- mount $(/sbin/hal_app --get_boot_pd port_id=0)6 /tmp/config
- touch /tmp/config/autorun.sh
- chmod +x /tmp/config/autorun.sh
- $EDITOR /tmp/config/autorun.sh
- umount /tmp/config
复制代码
TAS-x68, TS-x28 use ...
- /bin/mount -t ext4 /dev/mmcblk0p7 /tmp/config
- vi /tmp/config/autorun.sh
- chmod +x /tmp/config/autorun.sh
- echo .
- echo "unmounting /tmp/config..."
- umount /tmp/config
复制代码
All AL-based NAS(TS-x31+ and TS-x31X) and TS-x31 use ...
- ubiattach -m 6 -d 2
- /bin/mount -t ubifs ubi2:config /tmp/config
- vi /tmp/config/autorun.sh
- chmod +x /tmp/config/autorun.sh
- echo .
- echo "unmounting /tmp/config..."
- umount /tmp/config
- ubidetach -m 6
复制代码
|
|