PVR to network storage

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

Deus3X
SamyGO Project Donor
Posts: 168
Joined: Wed Feb 19, 2014 10:29 am

Re: PVR to network storage

Post by Deus3X »

sectroyer wrote:Did you run mkfs?
yes

Code: Select all

VDLinux#> mkfs.ext4 /dtv/usb/sdb/smb/192.168.2.33/REG_TV/rec.img
Proceed anyway? (y,n) y
Writing inode tables: done   
sectroyer
Official SamyGO Developer
Posts: 6305
Joined: Wed May 04, 2011 5:10 pm

Re: PVR to network storage

Post by sectroyer »

Than you need to modify the script and mount this image as some new virtual usb. Same as samba is mounted as sdj just name for instance sdv;)
I do NOT support "latest fw" at ALL. If you have one you should block updates on router and wait for it to STOP being "latest":)
If you want me to help you please paste FULL log(s) to "spoiler"/"code" bbcodes or provide link(s) to pasted file(s) on https://pastebin.com Otherwise "NO HELP"!!!
If you want root DISABLE internet access to your device!!!!
DO NOT EVER INSTALL FIRMWARE UPGRADE !!!!
Deus3X
SamyGO Project Donor
Posts: 168
Joined: Wed Feb 19, 2014 10:29 am

Re: PVR to network storage

Post by Deus3X »

sectroyer wrote:Than you need to modify the script and mount this image as some new virtual usb. Same as samba is mounted as sdj just name for instance sdv;)
in your mind i'm sure that is so easy :P
i have no idea how to create a second vusb with this img :P
i suppose that now is not the time to explain me how to edit the script (suppose vusb script) but i will be happy if you can tell me how to do it :P when you want and if you want :P
sectroyer
Official SamyGO Developer
Posts: 6305
Joined: Wed May 04, 2011 5:10 pm

Re: PVR to network storage

Post by sectroyer »

run on TV:

Code: Select all

mkfs.vfat /dtv/usb/sdb/smb/192.168.2.33/REG_TV/rec.img
Make a copy of ONLY .PVR.... (the only file starting with . in CONTENTS)
unplug real pvr usb. Than run:
in vusb script find this:

Code: Select all

    if [ "$dev" == "sdj" ] ; then
        # make [usb]log
         $(echo -e "[${dev}]\nVendor : SamyGO Virt.\nProduct : SamyGO Virt.\n\
Serial : Q80VQLFK\nDevpath : 11\nLun : 0\nScsiDevicePath : /dev/${dev}\nMountDir : /dtv/usb/${dev}\nFileSystem : vfat\n" >> /dtv/usb/usblog)
    mkdir -p /dtv/usb/${dev}
    fi
<<<<<<<< HERE
and where I put HERE paste this:

Code: Select all

dev="sdk1"  
  if [ "$dev" == "sdk1" ] ; then
        # make [usb]log
         $(echo -e "[${dev}]\nVendor : Samba Recording\nProduct : Samba Recording\n\
Serial : Q80VQLFK\nDevpath : 11\nLun : 0\nScsiDevicePath : /dev/${dev}\nMountDir : /dtv/usb/${dev}\nFileSystem : vfat\n" >> /dtv/usb/usblog)
    mkdir -p /dtv/usb/${dev}
    fi
and in samba script add the line that mounts this:

Code: Select all

mount -o loop /dtv/usb/sdb/smb/192.168.2.33/REG_TV/rec.img /dtv/usb/sdk1
Than new reboot TV and new usb will appear hit rec. TV will say no good usb and will want to format something. Let it format "Samba Recording" and perform tests. It will says tests DID fail. Than wait a minute and copy .PVR... file to CONTENTS directory in /dtv/usb/sdk1
I do NOT support "latest fw" at ALL. If you have one you should block updates on router and wait for it to STOP being "latest":)
If you want me to help you please paste FULL log(s) to "spoiler"/"code" bbcodes or provide link(s) to pasted file(s) on https://pastebin.com Otherwise "NO HELP"!!!
If you want root DISABLE internet access to your device!!!!
DO NOT EVER INSTALL FIRMWARE UPGRADE !!!!
Deus3X
SamyGO Project Donor
Posts: 168
Joined: Wed Feb 19, 2014 10:29 am

Re: PVR to network storage

Post by Deus3X »

sectroyer wrote:run on TV:

Code: Select all

mkfs.vfat /dtv/usb/sdb/smb/192.168.2.33/REG_TV/rec.img
Make a copy of ONLY .PVR.... (the only file starting with . in CONTENTS)
unplug real pvr usb. Than run:
in vusb script find this:

Code: Select all

    if [ "$dev" == "sdj" ] ; then
        # make [usb]log
         $(echo -e "[${dev}]\nVendor : SamyGO Virt.\nProduct : SamyGO Virt.\n\
Serial : Q80VQLFK\nDevpath : 11\nLun : 0\nScsiDevicePath : /dev/${dev}\nMountDir : /dtv/usb/${dev}\nFileSystem : vfat\n" >> /dtv/usb/usblog)
    mkdir -p /dtv/usb/${dev}
    fi
<<<<<<<< HERE
and where I put HERE paste this:

Code: Select all

dev="sdk1"  
  if [ "$dev" == "sdk1" ] ; then
        # make [usb]log
         $(echo -e "[${dev}]\nVendor : Samba Recording\nProduct : Samba Recording\n\
Serial : Q80VQLFK\nDevpath : 11\nLun : 0\nScsiDevicePath : /dev/${dev}\nMountDir : /dtv/usb/${dev}\nFileSystem : vfat\n" >> /dtv/usb/usblog)
    mkdir -p /dtv/usb/${dev}
    fi
and in samba script add the line that mounts this:

Code: Select all

mount -o loop /dtv/usb/sdb/smb/192.168.2.33/REG_TV/rec.img /dtv/usb/sdk1
Than new reboot TV and new usb will appear hit rec. TV will say no good usb and will want to format something. Let it format "Samba Recording" and perform tests. It will says tests DID fail. Than wait a minute and copy .PVR... file to CONTENTS directory in /dtv/usb/sdk1
Hi mate :)
ty for your answer.
i made what you wrote.
Now i have 2 vusb but when i hit on record the tv tell me that memory is less of 1gb or reed only...
If i browse the second vusb (samba recording) i can see my samba share.
what i made wrong?
i added the mount command on my samba script but seams that it not worked.
so i tryed to send it using telnet and i found a problem:
unplugging the real usb i have 2 usb sda and sdk1
on sdk1 i can see smb
on sda i have lost+found.
so i tryed to edit the most command in

Code: Select all

mount -o loop /dtv/usb/sdk1/smb/192.168.2.33/REG_TV/rec.img /dtv/usb/sda
adding this command on samba script i have no more 2 vusb on the tv but i can see 2 usb browsing the ftp.
Anyway if i hit on record i have the same error, less then 1gb etc..
Deus3X
SamyGO Project Donor
Posts: 168
Joined: Wed Feb 19, 2014 10:29 am

Re: PVR to network storage

Post by Deus3X »

sectroyer wrote:Did you run mkfs?
yes, before unplugging the real usb.
i can retry all the procedure

Code: Select all

VDLinux#> mkfs.vfat /dtv/usb/sda/smb/192.168.2.33/REG_TV/rec.img
VDLinux#> 
(now is sda because i unplugged the real usb and i temporary removed your editing from vusb script)
sectroyer
Official SamyGO Developer
Posts: 6305
Joined: Wed May 04, 2011 5:10 pm

Re: PVR to network storage

Post by sectroyer »

Deus3X wrote: so i tryed to edit the most command in

Code: Select all

mount -o loop /dtv/usb/sdk1/smb/192.168.2.33/REG_TV/rec.img /dtv/usb/sda
Who let you run that? It was very, bad, bad command :P
Run these two:

Code: Select all

modprobe -l | grep g_mass
and then:

Code: Select all

fdisk -l
I do NOT support "latest fw" at ALL. If you have one you should block updates on router and wait for it to STOP being "latest":)
If you want me to help you please paste FULL log(s) to "spoiler"/"code" bbcodes or provide link(s) to pasted file(s) on https://pastebin.com Otherwise "NO HELP"!!!
If you want root DISABLE internet access to your device!!!!
DO NOT EVER INSTALL FIRMWARE UPGRADE !!!!
Deus3X
SamyGO Project Donor
Posts: 168
Joined: Wed Feb 19, 2014 10:29 am

Re: PVR to network storage

Post by Deus3X »

Code: Select all

VDLinux#> modprobe -l | grep g_mass
modprobe: invalid option -- 'l'
BusyBox v1.20.2 (2012-11-15 22:46:44 PST) multi-call binary.

Usage: modprobe [-qfwrsv] MODULE [symbol=value]...

        -r      Remove MODULE (stacks) or do autoclean
        -q      Quiet
        -v      Verbose
        -f      Force
        -w      Wait for unload
        -s      Report via syslog instead of stderr

VDLinux#> fdisk -l

Disk /dev/mmcblk0: 3909 MB, 3909091328 bytes
1 heads, 16 sectors/track, 477184 cylinders
Units = cylinders of 16 * 512 = 8192 bytes

        Device Boot      Start         End      Blocks  Id System
/dev/mmcblk0p1               2          65         512  83 Linux
Partition 1 does not end on cylinder boundary
/dev/mmcblk0p2              66         129         512  83 Linux
Partition 2 does not end on cylinder boundary
/dev/mmcblk0p3             130         193         512  83 Linux
Partition 3 does not end on cylinder boundary
/dev/mmcblk0p4             194      477183     3815920   5 Extended
Partition 4 does not end on cylinder boundary
/dev/mmcblk0p5             195         258         512  83 Linux
/dev/mmcblk0p6             260         323         512  83 Linux
/dev/mmcblk0p7             325        1220        7168  83 Linux
/dev/mmcblk0p8            1222        1925        5632  83 Linux
/dev/mmcblk0p9            1927        2822        7168  83 Linux
/dev/mmcblk0p10           2824        3527        5632  83 Linux
/dev/mmcblk0p11           3529        3529           8  83 Linux
/dev/mmcblk0p12           3531        3531           8  83 Linux
/dev/mmcblk0p13           3533        3533           8  83 Linux
/dev/mmcblk0p14           3535        3918        3072  83 Linux
/dev/mmcblk0p15           3920        4303        3072  83 Linux
/dev/mmcblk0p16           4305       23504      153600  83 Linux
/dev/mmcblk0p17          23506       68305      358400  83 Linux
/dev/mmcblk0p18          68307      113106      358400  83 Linux
/dev/mmcblk0p19         113108      164307      409600  83 Linux
/dev/mmcblk0p20         164309      215508      409600  83 Linux
/dev/mmcblk0p21         215510      228309      102400  83 Linux
/dev/mmcblk0p22         228311      247510      153600  83 Linux
/dev/mmcblk0p23         247512      248791       10240  83 Linux
/dev/mmcblk0p24         248793      477183     1827128  83 Linux

Disk /dev/sda: 0 MB, 512000 bytes
1 heads, 1 sectors/track, 1000 cylinders, total 1000 sectors
Units = cylinders of 1 * 512 = 512 bytes

   Device Boot      Start         End      Blocks  Id System
VDLinux#> 
p.s. remember that atm i have removed the edited part from vusb.init and the mout command from samba.init.
if you what that i reenable it and then send this command, tell me and i will do it asap :P
sectroyer
Official SamyGO Developer
Posts: 6305
Joined: Wed May 04, 2011 5:10 pm

Re: PVR to network storage

Post by sectroyer »

Deus3X wrote: p.s. remember that atm i have removed the edited part from vusb.init and the mout command from samba.init.
if you what that i reenable it and then send this command, tell me and i will do it asap :P
I assumed that :P

Code: Select all

lsmod | grep g_mass
I do NOT support "latest fw" at ALL. If you have one you should block updates on router and wait for it to STOP being "latest":)
If you want me to help you please paste FULL log(s) to "spoiler"/"code" bbcodes or provide link(s) to pasted file(s) on https://pastebin.com Otherwise "NO HELP"!!!
If you want root DISABLE internet access to your device!!!!
DO NOT EVER INSTALL FIRMWARE UPGRADE !!!!
sectroyer
Official SamyGO Developer
Posts: 6305
Joined: Wed May 04, 2011 5:10 pm

Re: PVR to network storage

Post by sectroyer »

Post fixed. Please check before posting:P
I do NOT support "latest fw" at ALL. If you have one you should block updates on router and wait for it to STOP being "latest":)
If you want me to help you please paste FULL log(s) to "spoiler"/"code" bbcodes or provide link(s) to pasted file(s) on https://pastebin.com Otherwise "NO HELP"!!!
If you want root DISABLE internet access to your device!!!!
DO NOT EVER INSTALL FIRMWARE UPGRADE !!!!

Post Reply

Return to “[D] Support”