Re: Guide to record to a network share for H series?
Posted: Fri Mar 18, 2016 10:34 am
Will do, thanks!
Samsung TV Firmware on the GO
https://forum.samygo.tv/
Code: Select all
[ 262.928685] usb 1-2: new high-speed USB device number 4 using xhci_hcd
[ 263.059127] usb 1-2: New USB device found, idVendor=058f, idProduct=6335
[ 263.059133] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 263.059136] usb 1-2: Product: Mass Storage Device
[ 263.059139] usb 1-2: Manufacturer: Generic
[ 263.059142] usb 1-2: SerialNumber: 058F011111B1
[ 263.059798] usb-storage 1-2:1.0: USB Mass Storage device detected
[ 263.060058] scsi host6: usb-storage 1-2:1.0
[ 264.058182] scsi 6:0:0:0: Direct-Access SD/MMC Card Reader 1.00 PQ: 0 ANSI: 0
[ 264.058737] sd 6:0:0:0: Attached scsi generic sg2 type 0
[ 264.397827] usb 1-2: reset high-speed USB device number 4 using xhci_hcd
[ 264.864165] sd 6:0:0:0: [sdb] 60800 512-byte logical blocks: (31.1 MB/29.6 MiB)
[ 264.865874] sd 6:0:0:0: [sdb] Write Protect is off
[ 264.865886] sd 6:0:0:0: [sdb] Mode Sense: 03 00 00 00
[ 264.867527] sd 6:0:0:0: [sdb] No Caching mode page found
[ 264.867536] sd 6:0:0:0: [sdb] Assuming drive cache: write through
[ 264.878957] sdb: sdb1
[ 264.878970] sdb: p1 size 15804416 extends beyond EOD, enabling native capacity
[ 264.888495] sdb: sdb1
[ 264.888506] sdb: p1 size 15804416 extends beyond EOD, truncated
[ 264.897676] sd 6:0:0:0: [sdb] Attached SCSI removable disk
[ 270.577939] EXT4-fs (sdb1): bad geometry: block count 1975552 exceeds size of device (7344 blocks)
Code: Select all
# blkid | grep sdb1
/dev/sdb1: UUID="605c25c3-6dbc-46d8-852a-c8a7bdf5b65c" TYPE="ext4"
Code: Select all
root@stingray:/media/adrianp# mount -t ext4 /dev/sdc1 /media/frost/
mount: wrong fs type, bad option, bad superblock on /dev/sdc1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so.
root@stingray:/media/adrianp# dmesg | tail -20
[ 2682.711325] usb 3-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2682.711328] usb 3-1.2: Product: CBM
[ 2682.711331] usb 3-1.2: Manufacturer:
[ 2682.711334] usb 3-1.2: SerialNumber: 0115070058513103
[ 2682.711804] usb-storage 3-1.2:1.0: USB Mass Storage device detected
[ 2682.711967] scsi host20: usb-storage 3-1.2:1.0
[ 2683.711843] scsi 20:0:0:0: Direct-Access CBM 5.00 PQ: 0 ANSI: 2
[ 2683.712568] sd 20:0:0:0: Attached scsi generic sg2 type 0
[ 2683.713048] sd 20:0:0:0: [sdc] 4125696 512-byte logical blocks: (2.11 GB/1.96 GiB)
[ 2683.713756] sd 20:0:0:0: [sdc] Write Protect is off
[ 2683.713760] sd 20:0:0:0: [sdc] Mode Sense: 0b 00 00 08
[ 2683.714505] sd 20:0:0:0: [sdc] No Caching mode page found
[ 2683.714509] sd 20:0:0:0: [sdc] Assuming drive cache: write through
[ 2683.719897] sdc: sdc1
[ 2683.719906] sdc: p1 size 15804416 extends beyond EOD, enabling native capacity
[ 2683.723930] sdc: sdc1
[ 2683.723937] sdc: p1 size 15804416 extends beyond EOD, truncated
[ 2683.726881] sd 20:0:0:0: [sdc] Attached SCSI removable disk
[ 2687.319463] EXT4-fs (sdc1): bad geometry: block count 1975552 exceeds size of device (515456 blocks)
[ 2730.193919] EXT4-fs (sdc1): bad geometry: block count 1975552 exceeds size of device (515456 blocks)
I'm trying to set this for ages.mad_ady wrote:Update: I've ran a couple more tests with USB drives:
1. A 32MB SD card formatted ext4 and having an identical filesystem to a working stick (the same files, the same permissions, the same UUID) - is not seen as a PVR device. When I try to record anything it says it needs to format a PVR device and displays only the root device. The SD card is not seen in the OSD, but it's mounted correctly and I can see it via ssh. Most likely PVR devices need to have a minimum size.
2. I took a 2GB stick and formatted it in the TV as a PVR device. I did a small recording. Used SSH, deleted the CONTENTS folder and created a symlink to my NFS share. (Before I copied CONTENTS/NewBoard.ss to my CONTENTS folder on the NFS share). Recording to network share worked correctly.
3. I tried to use the 2GB stick with the dd'ed filesystem from my 8GB PVR device. The TV complained that the filesystem was corrupt and offered to fix it. However it showed disk capacity as 0kb, and it didn't manage to fix anything.
I will try with a 1GB stick, but I expect it to work...
Code: Select all
find /dtv/usb -maxdepth 2 -name CONTENTS
Code: Select all
mv /dtv/usb/sdb1/CONTENTS /dtv/usb/sdb1/CONTENTS.old
Code: Select all
ln -s /dtv/usb/sdc/nfs/192.168.1.5/TVRecordings/CONTENTS/ /dtv/usb/sdb1/CONTENTS
Code: Select all
mv /dtv/usb/sdb1/CONTENTS.old/* /dtv/usb/sdb1/CONTENTS/
Code: Select all
NETWORKSHARE=/dtv/usb/sdc/nfs/192.168.1.5/TVRecordings/CONTENTS/
Code: Select all
curl -k https://raw.githubusercontent.com/mad-ady/samygo-network-recording/master/99_99_NetworkRecording.init > /mnt/etc/init.d/99_99_NetworkRecording.init
chmod a+x /mnt/etc/init.d/99_99_NetworkRecording.init
Code: Select all
/mnt/etc/init.d/99_99_NetworkRecording.init start