NAS automount Magic TV HD

Magic TV HD 可以供其他裝置連上,只要適合用NFS 格式。

NAS: Synology 216+II https://www.synology.com/zh-tw/products/DS216+II
MagicTV 3300D
Win/Mac can connect to NAS via SSH


1. 開啟Magic TV  NFS 功能 (1)
MENU > 增值功能 > 網絡磁碟 > 網絡儲存伺服器:開啟

2. 關啟NFS SSH 功能。
3. showmount -e IP of MagicTV
4. mount -t nfs ip of MagicTV:/mnt/path/to/extHD /volume1/magicTV
5. Synology 用 busybox, 第二個參考資料段script (2) 我部機run 有少少問題,所以我改成如下

#!/bin/sh

if [ "$(ping -c 3 192.168.11.231 | grep '0 received')" ]; then
        exit 1
else
        if  [ "$(df | grep '192.168.11.231')" ]; then
                echo "magic TV mount!"
        else
                mount -t nfs 192.168.11.231:/mnt/path/to/extHD /volume1/magicTV
    fi
fi

5. 將佢copy to /usr/local/etc (應該呢到換機先唔會洗) (3)
6. 在DSM > Task Schedule, set 佢5分鐘run 一次。
7. done.
8. 不過若果在抄資料過程中,magicTV 自動關機會... (哀)

參考資料:
1. http://www.hkepc.com/forum/viewthread.php?fid=219&tid=1833597
2. https://forum.synology.com/enu/viewtopic.php?f=39&t=6617&hilit=fstab&sid=71d9a809352e214395a34aa657f6dedf&start=30
3. https://forum.synology.com/enu/viewtopic.php?t=86232



Comments

Popular Posts