Synology x Magic TV 機頂盒讀取大法
新買回來的NAS設定實在太簡單了,沒有什麼難度可言,接下來就研究這麼大的空間如何幫Magic TV瘦身。
NAS: Synology DS414j, DSM 5.1
STB: Magic TV MTV7000D-MINI
STB: Magic TV MTV7000D-MINI
MTV7000D或以上型號有網絡分享錄影功能,近日發現原來是利用NFS通訊協定達成,剛好NAS可以讀取。現在就可以用NAS備份錄影而不用拔插硬碟了。再者,家人在看電視或錄影時我也可用電腦看錄影,完全不受影響。網上亦有連接Win7的教學,但Windows始終對NFS通訊協定的支援較差,容易出現亂碼問題,而同是UNIX based的NAS就不會有這問題出現了。
1. 開啟「網絡儲存裝置伺服器」功能
增值功能 > 網絡磁碟> 網絡儲存裝置伺服器:開啟
2. 設定NAS
3. 新增SAMBA 資料夾
先確定開啟了SMB功能,
選取「啟動Windows檔案服務」輸入工作群組,如無更改過一般都是"WORKGROUP"
選取「啟動SMB 2」及「啟動 Large MTU」
4. 新增SMB資料夾
4. 下載putty
接下來要以SSH連線至NAS,網上有很多SSH軟件,筆者選擇了最簡單的putty
下載:http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
下載:http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
5. 連線SSH
- cd /
- 回到根目錄
- ls
- 查詢目錄內的資料夾,找到volume1,就是NAS內建立的磁碟群組-1
- cd volume1
- 進入磁碟群組-1找先前建立的資料夾「NFS-MTV」
- showmount -e (MTV7000D的ip address)
- 找尋MTV的NFS路徑。以MTV7000D-MINI來說內置硬碟是/mnt/hd0/1
- mount -t nfs (MTV7000D的ip address):/mnt/hd0/1 /volume1/NFS-MTV
- mount NFS到NAS的資料夾路徑
如果成功的不會有任何特別提示,此時以Windows進入該資料夾即可看到MTV內的檔案。
root@192.168.31.222's password:
BusyBox v1.16.1 (2015-11-12 18:06:25 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.
dsm> ls /volume2/nfsmtv
@eaDir
dsm> showmount -e 192.168.31.224
Export list for 192.168.31.224:
/mnt/hd0/1 *
/mnt/hd0 *
dsm> mount -t nfs 192.168.31.224:/mnt/hd0/1 /volume2/nfsmtv
dsm> ls /volume2/nfsmtv
lost+found mtv0bfbdf mtv5ce3ce mtv6cc691 mtvdbd1d8
mtv087750 mtv55883d mtv674f0c mtv71259d ts
dsm>
192.168.31.224:/mnt/hd0/1 /volume2/nfsmtv nfs rsize=8192,wsize=8192,timeo=14,intr,bg
umount /volume2/nfsmtv
檔案名全是數字?
因為開啟了即時重溫,按以下方式關閉
設定 > 時光倒流設定 > 即時重溫:關閉
設定 > 時光倒流設定 > 即時重溫:關閉
為什麼我下載影片只有10MB/s?
因為MTV7000D-MINI的網絡接口是10/100BaseT,最高只有100Mbits。~100/8=12.5Mbtyes
Auto Mode?
vi /etc/fstab
192.168.31.224:/mnt/hd0/1 /volume2/nfsmtv nfs rsize=8192,wsize=8192,timeo=14,intr,bg
umount /volume2/nfsmtv
does not work 2
vi /usr/local/etc/rc.d/a.sh
mount -t nfs 192.168.31.224:/mnt/hd0/1 /volume2/nfsmtv
2020 Notes
DSM Schedule:
mount -t nfs 192.168.1.37:/mnt/hd0/1 /volume1/video/mtv/
umount /volume1/video/mtv/
umount /volume1/video/mtv/
change to
mount -t nfs 192.168.1.37:/mnt/hd0/1 /volume1/mtv/hd01/
umount /volume1/mtv/hd01/
umount /volume1/mtv/hd01/
原有的mtv mount point有時候會停止讀取,會導致整個parent folder video都不能讀取。將hd01由mount去video改爲mount去信的shared folder可以減低影響。
我在MTV3700D插上USB 128G之後,在Raspberry Pi上面輸入showmoung -e 192.168.1.37,除了原本的/mnt/hd/之外,也見到/mnt/ext/(120G)Ultra,但是
mount -t nfs 192.168.1.37:/mnt/ext/(120G)Ultra /volume1/mtv/usb/
mount -t nfs 192.168.1.37:/mnt/ext/(120G)Ultra /volume1/mtv/usb/
mount.nfs: access denied by server while mounting 192.168.1.37:/mnt/ext/(120G)Ultra
邊幾個 model support NTFS ??
All SMP8655 and SMP8673 models:
3200/3300/3700/3800/7000
https://www.hkepc.com/forum/viewthread.php?fid=116&tid=1617246&page=1
new feature, MagicTV Share. When there are multiple MagicTV connected on the same home network, MagicTV can play and record to other MagicTV's storage.
- all MagicTV can play and record to storage from MTV3200(S/D)/3700D/7000D
- MTV3200(S/D)/3700D/7000D can share storage to all MagicTV
- MTV3000/3100(D)/3500/3600D/5000(D) can not share storage to other MagicTV
Please enable MagicTV Share feature in Magic TV Gadgets->Network HDD
- Use Network HDD, to access shared storage from MTV3200(S/D)/3700D/7000D
- Network HDD Server, for MTV3200(S/D)/3700D/7000D to share storage to other MagicTV
- all MagicTV can play and record to storage from MTV3200(S/D)/3700D/7000D
- MTV3200(S/D)/3700D/7000D can share storage to all MagicTV
- MTV3000/3100(D)/3500/3600D/5000(D) can not share storage to other MagicTV
Please enable MagicTV Share feature in Magic TV Gadgets->Network HDD
- Use Network HDD, to access shared storage from MTV3200(S/D)/3700D/7000D
- Network HDD Server, for MTV3200(S/D)/3700D/7000D to share storage to other MagicTV
How to launch a script at startup in RT2600ac?
You can put your startup script into the /usr/local/etc/rc.d directory.
2021-01-28 MTV7000 SRM1.2.4 Synology RT1900AC
最近從MTV3700升級到MTV7000D-Mini,也從DSM5.2更新到SRM1.2.4,目前希望讓SRM存取到MTV7000D的內置硬盤。
新使用MTV時候記得將"即時重溫"關閉,以免.ts影片檔案每200MB一個。
1. SRM、控制面板、啓動SSH功能、端口22
2. Windows 10、powershell、ssh root@192.168.1.1 -p 22 (一定要root不可以admin)
3. 插入SD卡,建立hd01文件夾,
SynologyRouter> pwd
/volumeUSB1/usbshare1-1/hd01
SynologyRouter> showmount -e 192.168.1.70
Export list for 192.168.1.70:
/mnt/hd0/1 *
/mnt/hd0 *
掛載:
mount -t nfs 192.168.1.70:/mnt/hd0/1 /volumeUSB2/usbshare2-1/hd01
卸載:
umount /volumeUSB2/usbshare2-1/hd01
開機掛載:
#!/bin/sh
if [ "$(ping -c 3 192.168.1.70 | grep '0 packets received')" ]; then
echo "fail cannot ping"
exit 1
else
if [ "$(df | grep '192.168.1.70')" ]; then
echo "failed 192.168.1.70 already mounted"
else
echo "mount start"
mount -t nfs 192.168.1.70:/mnt/hd0/1 /volumeUSB2/usbshare2-1/hd01
echo "mount done"
fi
fi
# touch /usr/local/etc/rc.d/mounthd01.sh
# vi /usr/local/etc/rc.d/mounthd01.sh
# . /usr/local/etc/rc.d/mounthd01.sh
On DS212j since 2021
mount -t nfs 192.168.1.70:/mnt/hd0/1 /volume2/2TB/mtv
umount /volume2/2TB/mtv
End
很高興看到這個網頁,想請教一下,這個做法是不是「自動」的?還是要每次手動才能做到?謝謝!
回覆刪除你好,單單使用mount -t這個做法在NAS關機後就會消失,如果想做到自動的話,可以加多一個開機後的自動mount指令,例如https://confluence.jaytaala.com/display/TKB/Mount+drive+in+linux+and+set+auto-mount+at+boot
刪除