Record PVR to NAS (NFS)

Here for general support for F series TVs, request and problem solve area.

Joejoe
SamyGO Project Donor
Posts: 55
Joined: Thu Dec 26, 2013 11:47 pm

Re: Record PVR to NAS (NFS)

Post by Joejoe »

So, after many hours I have the scripts
- 02_04_vusb.init.remi71
- 03_03_nfsmount.init.remi71
- 80_80_record_to_nwshare.init.remi71
rewritten to work for me.

At this link http://wiki.samygo.tv/index.php5/PVR_Re ... r_C-Series I read:
NOTE: Although the media screen report that the SamyGo Virt. USB device for recording is 1.5GB, don't worry because the NFS share is remounted into the original mount point of the XFS image so the real size is the free space on your server.
What I have now found out is that first of all the nfs share is mounted. Then from the xfs file at the nfs share (in my case the ext4 file) is created a virtual-usb-device. Then on the mount-point of the virtual usb device (in my case /dtv/usb/sdb) the nfs-share is mounted on it again.

After running the nfsmount-script and the vusb-script i have a device that is in ext4 format with a size of 10GB (the size of my ext4 image-file) ~900Mb used on it. This device is still not able to save PVR on it because of the speed test. Now running the record_to_nwshare-script. Found the mount point and mount nfs-source i define in PVRPATH on /dtv/usb/sdb. Now my device is 10Gb of 10Gb full and still not able to save PVR on it.

I even try to umount the ext4 at /dtv/usb/sdb first and then mount nfs-source on it > same result.

What's my error?

Greetz Joe
UE46F6470 with T-MST12DEUC @ 2105.0
SamyGo working :D
User avatar
beatfreak
SamyGO Project Donor
Posts: 597
Joined: Tue Aug 23, 2011 9:03 am
Location: Hamburg
Contact:

Re: Record PVR to NAS (NFS)

Post by beatfreak »

first it will be the easiest to create a new xfs/ext4 image, it seems that the second nfs mount didn't work and the data has gone into your image instead of the nfs share.
did you put the
.PlaceHolderDO-NOT-REMOVE

file in your image? (don't forget the starting dot)
in 80_80 script we look for this file/flag to identify the pvr-image and mount the nfs-record-share there

EDIT: and do we really need 10GB on F-Series?

P.S.
as my nfs-server macine runs win7 i placed my pvr-xfs-image (1,5GB for C-Series TV) on a compressed ntfs partition, size on disk ~780KB 8-)
//UE40C6500 @ T-VALDEUC 3011 // rooted manual HotelMode style // PVR to NFS via 18MB on-the-fly sparse XFS // >> decommissioned due to tuner death
//UE46F8090 @ T-FXPDEUC 1136 // rooted by new Widget // root starting with empty usb drive
FYI: you can close your ssh session with SamyGO with

Code: Select all

~.
If you can't fix it using dvct tape, you are not using enough dvct tape.
Joejoe
SamyGO Project Donor
Posts: 55
Joined: Thu Dec 26, 2013 11:47 pm

Re: Record PVR to NAS (NFS)

Post by Joejoe »

Here is the output of test.cgi when I start the record_to_nwshare-script:
SpoilerShow
+ . /dtv/SGO.env
+ SYSROOT=/mnt
+ MOUNT_PATH=/dtv/usb/sda
+ export MOD_DIR=/mnt/lib/modules/3.0.33
+ export TMPDIR=/dtv
+ export HOME=/mtd_rwcommon
+ export SMB_CONF_PATH=/mnt/etc/samba/smb.conf
+ LOGFILE=/mnt/samygo.log
+ LD_LIBRARY_PATH=/mnt/opt/privateer/lib:/mnt/opt/privateer/usr/lib:/mnt/lib:/mnt/usr/lib:/tmp/bin:/mtd_cmmlib/RECOGNITION_LIB:/lib:/mtd_cmmlib/lib:/mtd_cmmlib/Comp_LIB:/mtd_exe/lib:/mtd_cmmlib/YWidget_LIB:/mtd_cmmlib/InfoLink/lib/plugin/Static:/mtd_appdata/moip:/mtd_cmmlib/GAME_LIB:/mtd_appdata/gemstar:/mtd_cmmlib/DRM_LIB:/Java/lib:/mtd_cmmlib/InfoLink/lib:/mtd_appext/WidgetEngine:/mtd_appext/Webkit:/mtd_exe/WebServerApp/bin:/mtd_cmmlib/CBRE:/mtd_cmmlib/CBRE/bin/lib:/mtd_cmmlib/flashplayer/libs:/mtd_appdata/Runtime/lib/CairoShadow:/mtd_appdata/Runtime/lib:/mtd_appdata/Runtime/XorgLibs:/mtd_cmmlib/CM_LIB:/mtd_appext/OIPF/lib:/mtd_exe/OIPF/lib:/mtd_contents:/dtv
+ PATH=/mnt/opt/privateer/sbin:/mnt/opt/privateer/bin:/mnt/opt/privateer/usr/bin:/mnt/opt/privateer/usr/sbin:/mnt/sbin:/mnt/bin:/mnt/usr/bin:/mnt/usr/sbin:/tmp/bin:/usr/sbin:/usr/bin:/bin:/sbin:/etc/Scripts:/util:/mtd_appdata/Runtime/bin
+ export ENV=/dtv/.ashrc
+ export FRAMEBUFFER=/dev/sam/fb0
+ export DISTROOT=/mnt/opt/privateer
+ export LIBSO_DIR=/mnt/opt/privateer/usr/so
+ export TERM=linux
+ export LS_OPTIONS=--color=auto
+ SAMYGODEVS=/dev/sda /dev/sdb
+ PVRSERVER=192.168.0.100
+ PVRPATH=/volume1/Samsung-Aufnahme
+ M_OPTS=soft,tcp,nolock,async
+ WAIT=25
+ echo
+ WriteToLog Start Record to Network Share script (80_80_record_to_nwshare.init) 1
+ date +%Y%m%d-%H%M%S
+ NOW=19700101-010609
+ echo 19700101-010609 Start Record to Network Share script (80_80_record_to_nwshare.init)
+ CheckNFSServer 192.168.0.100
+ WriteToLog Check if server 192.168.0.100 is reachable and NFS service available... 1 -n
+ date +%Y%m%d-%H%M%S
+ NOW=19700101-010609
+ echo -n 19700101-010609 Check if server 192.168.0.100 is reachable and NFS service available...
+ showmount --no-header -e 192.168.0.100
+ [ 0 = 0 ]
+ WriteToLog OK 2
+ echo OK
+ return 0
+ [ 0 = 0 ]
+ SearchPVRImageMP
+ FOUND=false
+ WriteToLog Search for mount point of pvrimage... 1
+ date +%Y%m%d-%H%M%S
+ NOW=19700101-010609
+ echo 19700101-010609 Search for mount point of pvrimage...
+ sleep 25
+ echo /dev/sda /dev/sdb
+ grep -e ^/dev/sda /proc/mounts+ cut -d
-f 2
+ MPOINT=/dtv/usb/sda
+ [ -e /dtv/usb/sda/.PlaceHolderDO-NOT-REMOVE ]
+ grep -e ^/dev/sdb+ /proc/mounts
cut -d -f 2
+ MPOINT=/dtv/usb/sdb
+ [ -e /dtv/usb/sdb/.PlaceHolderDO-NOT-REMOVE ]
+ [ false = false ]
+ PVRMPOINT=/dtv/usb/sdb
+ FOUND=true
+ WriteToLog pvrimage mount point is /dtv/usb/sdb 1
+ date +%Y%m%d-%H%M%S
+ NOW=19700101-010634
+ echo 19700101-010634 pvrimage mount point is /dtv/usb/sdb
+ [ true = true ]
+ MountNFSShare soft,tcp,nolock,async 192.168.0.100 /volume1/Samsung-Aufnahme /dtv/usb/sdb
+ WriteToLog Mount of 192.168.0.100:/volume1/Samsung-Aufnahme on /dtv/usb/sdb... 1 -n
+ date +%Y%m%d-%H%M%S
+ NOW=19700101-010634
+ echo -n 19700101-010634 Mount of 192.168.0.100:/volume1/Samsung-Aufnahme on /dtv/usb/sdb...
+ /bin/busybox mount -o soft,tcp,nolock,async 192.168.0.100:/volume1/Samsung-Aufnahme /dtv/usb/sdb
+ [ 0 = 0 ]
+ WriteToLog OK 2
+ echo OK
+ CONTENTSDIR=/dtv/usb/sdb/CONTENTS
+ [ -d /dtv/usb/sdb/CONTENTS ]
+ echo PVR on server 192.168.0.100 is now ready in localpath /dtv/usb/sdb
PVR on server 192.168.0.100 is now ready in localpath /dtv/usb/sdb
+ WriteToLog PVR on server 192.168.0.100 is now ready in localpath /dtv/usb/sdb 1
+ date +%Y%m%d-%H%M%S
+ NOW=19700101-010634
+ echo 19700101-010634 PVR on server 192.168.0.100 is now ready in localpath /dtv/usb/sdb
+ WriteToLog End Record to Network Share script (80_80_record_to_nwshare.init) 1
+ date +%Y%m%d-%H%M%S
+ NOW=19700101-010634
+ echo 19700101-010634 End Record to Network Share script (80_80_record_to_nwshare.init)
It all seems to be fine. But the said error (10GB/10GB full) is anyway. Even if I try to record/timeshift the TV tell me that ther is sufficient capacity.

The 10GB-image-file is not the error I think. At first I thought the TV records into the image-file so I created it extra large.
UE46F6470 with T-MST12DEUC @ 2105.0
SamyGo working :D
User avatar
beatfreak
SamyGO Project Donor
Posts: 597
Joined: Tue Aug 23, 2011 9:03 am
Location: Hamburg
Contact:

Re: Record PVR to NAS (NFS)

Post by beatfreak »

ok, one more check:
-disable 80_80_record_to nwshare script
-reboot tv
-connect via telnet/ssh
-post output of

Code: Select all

ls -alR /dtv/usb/sdb
if sdb ist your mounted ext4 image
//UE40C6500 @ T-VALDEUC 3011 // rooted manual HotelMode style // PVR to NFS via 18MB on-the-fly sparse XFS // >> decommissioned due to tuner death
//UE46F8090 @ T-FXPDEUC 1136 // rooted by new Widget // root starting with empty usb drive
FYI: you can close your ssh session with SamyGO with

Code: Select all

~.
If you can't fix it using dvct tape, you are not using enough dvct tape.
Joejoe
SamyGO Project Donor
Posts: 55
Joined: Thu Dec 26, 2013 11:47 pm

Re: Record PVR to NAS (NFS)

Post by Joejoe »

Here it is :) :
SpoilerShow
root@(none) phpsysinfo $ ls -alR /dtv/usb/sdb
/dtv/usb/sdb:
total 28
drwxrwxrwx 4 root 0 4096 Jan 1 01:06 .
drwxr-xr-x 4 root 0 100 Jan 1 01:00 ..
-rw-r--r-- 1 root 42949672 0 Jan 1 1970 .PlaceHolderDO-NOT-REMOVE
-rwxr-xr-x 1 root 0 21 Jan 1 1970 .cm0013
drwxr-xr-x 2 root 0 4096 Jan 1 01:03 CONTENTS
drwx------ 2 root 0 16384 Jan 1 1970 lost+found

/dtv/usb/sdb/CONTENTS:
total 12
drwxr-xr-x 2 root 0 4096 Jan 1 01:03 .
drwxrwxrwx 4 root 0 4096 Jan 1 01:06 ..
-rwxr-xr-x 1 root 0 10 Jan 1 01:03 .PVRPfmChkLog

/dtv/usb/sdb/lost+found:
total 20
drwx------ 2 root 0 16384 Jan 1 1970 .
drwxrwxrwx 4 root 0 4096 Jan 1 01:06 ..
UE46F6470 with T-MST12DEUC @ 2105.0
SamyGo working :D
User avatar
beatfreak
SamyGO Project Donor
Posts: 597
Joined: Tue Aug 23, 2011 9:03 am
Location: Hamburg
Contact:

Re: Record PVR to NAS (NFS)

Post by beatfreak »

ok as you see there is definately more stuff in it that should be
i think you should create a new image to get a clean one
- disable vusb, nfsshare and record_to_nwshare scripts
- reboot
- connect via telnet/ssh
- create a folder in /dtv to have a mountpoint
- manually mount your nfs share there
- delete your old imagefile
- and create a new one following the steps in wiki (steps 10,11,12) you'll have to create an additional mountpoint for the new image
- unmount the new image and move it to the location mentioned in vusb script
- enable vusb and nfsshare scripts and reboot
- again do a ls -alrR /dtv/usb/sdb
and don't try to access pvr/timeshift menu while record_to_nwshare script is disabled ! (also turn off automatic timeshift mode before you begin with this all)
//UE40C6500 @ T-VALDEUC 3011 // rooted manual HotelMode style // PVR to NFS via 18MB on-the-fly sparse XFS // >> decommissioned due to tuner death
//UE46F8090 @ T-FXPDEUC 1136 // rooted by new Widget // root starting with empty usb drive
FYI: you can close your ssh session with SamyGO with

Code: Select all

~.
If you can't fix it using dvct tape, you are not using enough dvct tape.
Joejoe
SamyGO Project Donor
Posts: 55
Joined: Thu Dec 26, 2013 11:47 pm

Re: Record PVR to NAS (NFS)

Post by Joejoe »

So, new ext4-file with file size only 1,5Gb.

Output of "ls -alR /dtv/usb/sdb" :

Code: Select all

root@(none) phpsysinfo $ ls -alR /dtv/usb/sdb
/dtv/usb/sdb:
total 14
drwxr-xr-x    3 root     0             1024 Jan  1 00:03 .
drwxr-xr-x    4 root     0              100 Jan  1 00:03 ..
-rw-r--r--    1 root     42949672         0 Jan  1  1970 .PlaceHolderDO-NOT-REMOVE
-rwxr-xr-x    1 root     0               21 Jan  1 00:03 .cm0013
drwx------    2 root     0            12288 Jan  1  1970 lost+found

/dtv/usb/sdb/lost+found:
total 13
drwx------    2 root     0            12288 Jan  1  1970 .
drwxr-xr-x    3 root     0             1024 Jan  1 00:03 ..
After enabling the 3 scripts the mountpoint is found and the record_to_nwshare-script was startet properly the same error appears. 1,5GB/1,5GB full and no way to PVR or timeshift :x
UE46F6470 with T-MST12DEUC @ 2105.0
SamyGo working :D
User avatar
beatfreak
SamyGO Project Donor
Posts: 597
Joined: Tue Aug 23, 2011 9:03 am
Location: Hamburg
Contact:

Re: Record PVR to NAS (NFS)

Post by beatfreak »

check output of

Code: Select all

cat /proc/mounts
for something like

Code: Select all

192.168.2.10:/recordshare /dtv/usb/sdb nfs rw,vers=3,rsize=32768....
with your matching ip adress and sharename of course

and its good to put any file on your NAS / NFS-share you wnt to record to, then when checking /dtv/usb/sdb for contents you immediately see if everything has been mounted correctly
//UE40C6500 @ T-VALDEUC 3011 // rooted manual HotelMode style // PVR to NFS via 18MB on-the-fly sparse XFS // >> decommissioned due to tuner death
//UE46F8090 @ T-FXPDEUC 1136 // rooted by new Widget // root starting with empty usb drive
FYI: you can close your ssh session with SamyGO with

Code: Select all

~.
If you can't fix it using dvct tape, you are not using enough dvct tape.
Joejoe
SamyGO Project Donor
Posts: 55
Joined: Thu Dec 26, 2013 11:47 pm

Re: Record PVR to NAS (NFS)

Post by Joejoe »

I don't know if output of "cat /proc/mounts" seems to be good?
SpoilerShow
root@(none) phpsysinfo $ cat /proc/mounts
rootfs / rootfs rw 0 0
/dev/root / squashfs ro,relatime 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
tmpfs /dev/shm tmpfs rw,relatime 0 0
tmpfs /dtv tmpfs rw,relatime,size=40960k 0 0
tmpfs /tmp tmpfs rw,relatime,size=36864k 0 0
tmpfs /freesia tmpfs rw,relatime,size=2048k 0 0
tmpfs /core tmpfs rw,relatime,size=30720k 0 0
none /sys/kernel/security securityfs rw,relatime 0 0
/dev/mmcblk0p19 /mtd_uncompexe emmcfs ro,relatime 0 0
none /sys/fs/cgroup cgroup rw,relatime,cpu 0 0
/dev/mmcblk0p17 /mtd_exe squashfs ro,relatime 0 0
/dev/mmcblk0p16 /mtd_rwarea emmcfs rw,relatime 0 0
/dev/mmcblk0p14 /mtd_drmregion_a emmcfs rw,relatime 0 0
/dev/mmcblk0p15 /mtd_drmregion_b emmcfs rw,relatime 0 0
/dev/mmcblk0p21 /mtd_rocommon squashfs ro,noexec,relatime 0 0
/dev/mmcblk0p24 /mtd_contents emmcfs rw,relatime 0 0
none /proc/bus/usb usbfs rw,relatime 0 0
/dev/mmcblk0p26 /mtd_rwcommon emmcfs rw,relatime 0 0
/dev/mmcblk0p23 /mtd_emanual emmcfs rw,relatime 0 0
/dev/mmcblk0p25 /mtd_swu emmcfs rw,relatime 0 0
/dev/loop0 /mtd_rwcommon/widgets/manager/10130000000 squashfs ro,noexec,relatime 0 0
/tmp/loopnone /mnt ext4 rw,sync,relatime,user_xattr,barrier=1,data=ordered 0 0
192.168.0.100:/volume1/Samsung-Aufnahme/ /dtv/test/nfs/192.168.0.100/_volume1_Samsung-Aufnahme nfs rw,noexec,relatime,vers=3,rsize=131072,wsize=131072,namlen=1020,soft,nolock,proto=tcp,port=65535,timeo=70,retrans=3,sec=sys,local_lock=all,addr=192.168.0.100 0 0
/dev/sda /dtv/usb/sda vfat rw,dirsync,noexec,noatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=utf8,shortname=mixed,usefree,flush,errors=continue 0 0
/dev/sdb /dtv/usb/sdb ext4 rw,noexec,relatime,user_xattr,barrier=0,data=ordered 0 0
/dtv/loop4 /mtd_rwcommon/widgets/normal/111199001564 squashfs ro,noexec,relatime 0 0
192.168.0.100:/volume1/Samsung-Aufnahme/ /dtv/usb/sdb nfs rw,noexec,relatime,vers=3,rsize=131072,wsize=131072,namlen=1020,soft,nolock,proto=tcp,port=65535,timeo=70,retrans=3,sec=sys,local_lock=all,addr=192.168.0.100 0 0
devpts /dev/pts devpts rw,relatime,mode=600 0 0
/dev/mmcblk0p16 /etc/profile emmcfs rw,relatime 0 0
/dev/mmcblk0p16 /etc/passwd emmcfs rw,relatime 0 0
UE46F6470 with T-MST12DEUC @ 2105.0
SamyGo working :D
User avatar
beatfreak
SamyGO Project Donor
Posts: 597
Joined: Tue Aug 23, 2011 9:03 am
Location: Hamburg
Contact:

Re: Record PVR to NAS (NFS)

Post by beatfreak »

looks quite good

Code: Select all

/dev/sdb /dtv/usb/sdb ext4 rw,noexec,relatime,user_xattr,barrier=0,data=ordered 0 0

192.168.0.100:/volume1/Samsung-Aufnahme/ /dtv/usb/sdb nfs rw,noexec,relatime,vers=3,rsize=131072,wsize=131072,namlen=1020,soft,nolock,proto=tcp,port=65535,timeo=70,retrans=3,sec=sys,local_lock=all,addr=192.168.0.100 0 0
ext4 image is mounted on sdb and nfs share ist mounted over it, so you should see your contents of volume1/Samsung-Aufnahme when you do
ls /dtv/usb/sdb

P.S. if necessary german support via pn
//UE40C6500 @ T-VALDEUC 3011 // rooted manual HotelMode style // PVR to NFS via 18MB on-the-fly sparse XFS // >> decommissioned due to tuner death
//UE46F8090 @ T-FXPDEUC 1136 // rooted by new Widget // root starting with empty usb drive
FYI: you can close your ssh session with SamyGO with

Code: Select all

~.
If you can't fix it using dvct tape, you are not using enough dvct tape.

Post Reply

Return to “[F] Support”