No samba shares on virtual USB

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

User avatar
fluffi444
SamyGO Project Donor
Posts: 562
Joined: Fri Apr 05, 2013 9:55 pm
Location: Germany

Re: No samba shares on virtual USB

Post by fluffi444 » Mon Jun 24, 2013 5:27 pm

I would give zoelchat's samba.init a try... With fixed server...
04_04_samba.zoelchat.init.dis
Of course you have to rename this to 04_04_samba.init and put a dis behind the origional samba.init

And please be sure that all inits (in init.d folder) have the correct rights:

Code: Select all

chmod 777 /mnt/etc/init.d/*.*
And Edit

Code: Select all

/mnt/etc/samba/smb.conf
according to you setup.

and edit also

Code: Select all

/mtd_rwarea/smb_userdata
(if its not there - build it) according to your setup. Some user reported that it helped to build the smb_userdata

Code: Select all

USER="xxxx"
PASSWD="xxxx"
xxxx = your data
TV: UE40ES7000 @ UE40ES8090 - T-ECPDEUC-2022.0 // SamyGO
CI+: Unicam EVO 4 with HD+ (HD02) @ Pacific 4.60
NET: Samba: PC

niceguy0815
SamyGO Project Donor
Posts: 6
Joined: Wed Jan 13, 2016 12:03 pm

Re: No samba shares on virtual USB

Post by niceguy0815 » Sun Jan 17, 2016 6:39 pm

Hello i have nearly the same problem.
smb folder is not shown on virtual USB on the tv when i use "/mnt/etc/init.d/04_04_samba.init status"

Code: Select all

//192.168.0.10/Root on /dtv/usb/sdj/smb/192.168.0.10/Root type cifs (rw,mand,relatime,unc=\192.168.0.10\Root,username=root,uid=0,noforceuid,gid=0,noforcegid,addr=192.168.0.10,posixpaths,serverino,acl,rsize=16384,wsize=57344)
//192.168.0.10/Harddisk on /dtv/usb/sdj/smb/192.168.0.10/Harddisk type cifs (rw,mand,relatime,unc=\192.168.0.10\Harddisk,username=root,uid=0,noforceuid,gid=0,noforcegid,addr=192.168.0.10,posixpaths,serverino,acl,rsize=16384,wsize=57344)
it looks good and when i go on FTP to "/dtv/usb/sdj/smb/192.168.0.10/Harddisk" I see the files on my share.

But when I start on TV with pushing "Sorce Button" and select "Virtual USB 2 / Videos" it loads endless in the upper right corner and no shares com up?

TV is a Samsung UE40ES6300 FW 1036.0 rooted with donner root!

Has anybody an Idear what i have don wrong?

User avatar
juusso
SamyGO Moderator
Posts: 10125
Joined: Sun Mar 07, 2010 6:20 pm

Re: No samba shares on virtual USB

Post by juusso » Sun Jan 17, 2016 6:46 pm

sdj is not virtual usb. It`s just mount point just in case virtual usb failed to load. Show your samba.init and output to

Code: Select all

ls /dtv/usb/sd*
LE40B653T5W,UE40D6750,UE65Q8C
Have questions? Read SamyGO Wiki, Search on forum first!
FFB (v0.8), FFB for CI+ . Get root on: C series, D series, E series, F series, H series. rooting K series, exeDSP/exeTV patches[C/D/E/F/H]

DO NOT EVER INSTALL FIRMWARE UPGRADE

zoelechat
Official SamyGO Developer
Posts: 8372
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: No samba shares on virtual USB

Post by zoelechat » Sun Jan 17, 2016 6:50 pm

I'd bet on too many files on share :)
I do NOT receive any PM. Please use forum.

niceguy0815
SamyGO Project Donor
Posts: 6
Joined: Wed Jan 13, 2016 12:03 pm

Re: No samba shares on virtual USB

Post by niceguy0815 » Sun Jan 17, 2016 7:06 pm

I used is the standart samba.init:

Code: Select all

#!/bin/sh
#
# ? Copyright 1996-2010, ZsoltTech.Com
#       by Ser Lev Arris <arris@ZsoltTech.Com>
#
#       donated for the SamyGo Project
#       http://samygo.sourceforge.net/
#
#       Version: SamyGO svn $Id: 04_04_samba.init 1069 2011-01-03 16:47:24Z arris69 $
#

. /dtv/SGO.env
# sleep 9
##### CHANGE MEEEEE !!!!! ######
USER="rXXXX" # CHANGED to my User
PASSWD="EXXXXX" # CHANGED to my PW
PERM="rw" can be ro or rw
##### CHANGE MEEEEE END ######

[ -e /mtd_rwarea/smb_userdata ] && source /mtd_rwarea/smb_userdata

[ -z $USER ] && exit 1
[ -z $PASSWD ] && exit 1

DEST_DIR=$MOUNT_PATH/smb
SERVER="192.168.0.10"  # CHANGED to my FIX Server
# SERVER="10.0.0.1" # if you want a fixed server
SHARES=""
FR_NAME="Samba Server"
# M_OPTS="rw,user=${USER},password=${PASSWD}"
M_OPTS="$PERM,user=${USER},password=${PASSWD},codepage=cp1250,iocharset=utf8"

SERVERS="Don't set me!!"

do_mount()
{
#		$(echo -e "[sdh]\nVendor : CifsMount\nProduct : $FR_NAME\n\
#Serial : Q80VQLFH\nDevpath : 8\nLun : 0\nMountDir : $DEST_DIR\nFileSystem : vfat\n" >> /dtv/usb/log)

	for i in $S_MOUNTS ; do
		i="$(echo -n $i | sed -e 's/SGOspace/ /g')"
		M_POINT="$DEST_DIR/$1/$(echo -n $i | sed -e "s/\\\$/_/g")"
		mkdir -p "$M_POINT" 
		if [ `cat /proc/mounts | grep -c "$M_POINT"` -lt "1" ] ; then	
			/bin/busybox mount -o "${M_OPTS}" -t cifs "//$1/$i" "$M_POINT"
		else
			echo "$M_POINT is mounted!"
		fi

	done
}

get_shares()
{
	echo "Search Shares" 
	for i in $SERVERS ; do
	echo "on: $i" 
		S_MOUNTS=$(smbclient -s "$SYSROOT/etc/samba/smb.conf" -U ${USER}%${PASSWD} \
		-g -L $i | grep "Disk|" | grep -v "\\$" | grep -v " Service" | sed -r 's/.*\|(.*)\|.*/\1/' | sed -r 's/ /SGOspace/g')	
		# -g -L $i | grep "Disk|" | grep -v "\\$" | grep -v " Service" | cut -d "|" -f2)	
	[ -n "$S_MOUNTS" ] && do_mount $i
	done
}

get_servers()
{
	if [ -z "$SERVER" ] ; then
		# SERVERS=$(cat /proc/net/arp | grep -v "IP address" | cut -d " " -f1)
		SERVERS=$(cat /proc/net/arp | grep -v "IP address" | sed 's/^\(\w*.\w*.\w*.\w*\) *.*/\1/')
	else
		SERVERS=$SERVER
	fi
}

case $1 in 
	start)
	insmod $MOD_DIR/kernel/fs/cifs/cifs.ko
	mkdir -p "$DEST_DIR"
	get_servers
	get_shares
	;;
	stop)
	# may can fail if device access the mount from content library
	# for i in $(cat /proc/mounts | grep cifs | cut -d " " -f2) ; do
	for i in $(cat /proc/mounts | grep cifs | grep "$DEST_DIR" | sed 's/^\(.*\) \(.*\) cifs .*/\2/') ; do
		i="$(echo -n $i | sed -r 's/\\040/ /g')"
		/bin/busybox umount "$i"
	done
	;;
	status)
	/bin/mount | grep "$DEST_DIR"
	;;
	*)
	echo "Usage: $0 {start|stop}" 1>&2
	exit 0
	;;
esac
Output: ls /dtv/usb/sd*

Code: Select all

root@tv:/mnt # ls /dtv/usb/sd*
/dtv/usb/sda1:
3E0789E3-8B8F-4A58-849D-A60F73304172.BEK
InstallSamygo
SamyGO-F-SM-MST-Fix
SamyGO1.txt
SamyGO2.txt
SamyGO_data
System Volume Information

/dtv/usb/sdj:
smb
So what is to do to mount it to V-USB?


V-USB is present on TV.

zoelechat
Official SamyGO Developer
Posts: 8372
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: No samba shares on virtual USB

Post by zoelechat » Sun Jan 17, 2016 7:14 pm

Try to share a folder with only a few files, instead of HDD "root" :)
I do NOT receive any PM. Please use forum.

User avatar
juusso
SamyGO Moderator
Posts: 10125
Joined: Sun Mar 07, 2010 6:20 pm

Re: No samba shares on virtual USB

Post by juusso » Sun Jan 17, 2016 7:22 pm

show your vusb.init :) and sure do what zoelechat says :)
Give output to

Code: Select all

lsmod
LE40B653T5W,UE40D6750,UE65Q8C
Have questions? Read SamyGO Wiki, Search on forum first!
FFB (v0.8), FFB for CI+ . Get root on: C series, D series, E series, F series, H series. rooting K series, exeDSP/exeTV patches[C/D/E/F/H]

DO NOT EVER INSTALL FIRMWARE UPGRADE

niceguy0815
SamyGO Project Donor
Posts: 6
Joined: Wed Jan 13, 2016 12:03 pm

Re: No samba shares on virtual USB

Post by niceguy0815 » Sun Jan 17, 2016 8:07 pm

zoelechat wrote:Try to share a folder with only a few files, instead of HDD "root" :)
on FTP I can see all Files in the share "/dtv/usb/sdj/smb/192.168.0.10/Harddisk" (Its a Linux Sat reciver not so mutch files on HDD)

output lsmod:

Code: Select all

root@tv:/mnt # lsmod
nfs 120484 0 - Live 0xbf3c7000
lockd 48936 1 nfs, Live 0xbf3b6000
sunrpc 139160 3 nfs,lockd, Live 0xbf38f000
cifs 195276 3 - Live 0xbf35a000
fuse 46364 0 - Live 0xbf349000
pty 4572 3 [permanent], Live 0xbf335000
devpts 3440 1 pty, Live 0xbf32f000
mount 3948 0 - Live 0xbf329000
bthid 2520 0 - Live 0xbf323000
hid_microsoft 2032 0 - Live 0xbf31d000
mousedev 7248 0 - Live 0xbf316000
evdev 5576 0 - Live 0xbf30f000
usbhid 12872 0 - Live 0xbf306000
hid 31240 3 bthid,hid_microsoft,usbhid, Live 0xbf2f9000
rtnet5572sta 31400 2 - Live 0xbf2ec000
rt5572sta 1296100 1 rtnet5572sta, Live 0xbf1ad000 (P)
rtutil5572sta 30436 2 rtnet5572sta,rt5572sta, Live 0xbf1a3000
btusb 31128 1 - Live 0xbf196000
usb_storage 30272 1 - Live 0xbf189000
ehci_hcd 47852 0 - Live 0xbf178000
usbcore 108904 8 usbhid,rtnet5572sta,rtutil5572sta,btusb,usb_storage,ehci_hcd, Live 0xbf158000
tntfs 363728 0 - Live 0xbf0fa000 (P)
mdrv_emac 12684 0 - Live 0xbf0f1000 (P)
samsung_mstar 494248 0 - Live 0xbf066000
samsung_mali 83468 13 samsung_mstar, Live 0xbf04c000
rfs_fat 202648 7 - Live 0xbf015000 (P)
rfs_glue 61548 1 rfs_fat, Live 0xbf000000 (P)
vusb.init:

Code: Select all

#!/bin/sh
#
# ? Copyright 1996-2010, ZsoltTech.Com
#       by Ser Lev Arris <arris@ZsoltTech.Com>
#
#       donated for the SamyGo Project
#       http://samygo.sourceforge.net/
#
#       Version: SamyGO svn $Id: 02_04_vusb.init 1221 2012-06-25 18:59:29Z arris69 $
#
# TODO: more sysv style, more error handling
#
. /dtv/SGO.env

case $1 in 
	start)
	# on C series: can't open '/proc/scsi/scsi': No such file or directory?
#	if [ `cat /proc/scsi/scsi | grep -c "Type:"` -lt "1" ] ; then
		
		# create unsusable dummy device
		# dd if=/dev/zero of=/dtv/vusb bs=512 count=4

		# create usable vfat image
		# we don't need to mess around with log and usblog
		# also no limits to usb mounts
		# we need to find mount point, on most devices it's sda
		# but it will differ in some situations
		mkfs.vfat -C /dtv/vusb 500
		# mkfs.vfat -C /dtv/vusb $(($(df -k /dtv | grep dtv | sed -e 's,^\(.*\) \(.*\) \( .*% /dtv\),\2,') / 3 ))
		
		# TODO: for recording on c series xfs stuff.
		# /dev/stl0/21            392.3M    142.9M    249.4M  36% /mtd_rwcommon
		# needs to be adapted:
		# http://sourceforge.net/apps/phpbb/samygo/viewtopic.php?f=12&p=10567#p10567
		#
		# dd if=/dev/zero of=/mtd_rwcommon/vusb bs=1M count=16
		# /sbin/mkfs.xfs -f -d name=/mtd_rwcommon/vusb
		# ln -s /mtd_rwcommon/vusb /dtv/
		# OBSOLETE: gone to 80_80_record_to_nwshare.init 

		# create usable virtual device (don't store data on it what you need tomorrow too!!)
		# dd if=/dev/zero of=/dtv/vusb bs=1M count=2
		# mkfs.ext3 -q -F -m 0 -b 1024 /dtv/vusb

		# insmod $SYSROOT/lib/modules/treasure/dummy_hcd.ko
		insmod $MOD_DIR/kernel/drivers/usb/gadget/dummy_hcd.ko || \
		insmod $MOD_DIR/kernel/drivers/mstar/usb/gadget/dummy_hcd.ko
		sleep 2
	
		# insmod $SYSROOT/lib/modules/treasure/g_file_storage.ko
		insmod $MOD_DIR/kernel/drivers/usb/gadget/g_file_storage.ko || \
		insmod $MOD_DIR/kernel/drivers/mstar/usb/gadget/g_file_storage.ko
		sleep 3
		
		# find vusb in /sys
		# and set a variable for mount point
		rdev="sdj" # init state
		dev="sdj" # set fallback if someting wrong with modules
		for i in /sys/block/sd?/device/model ; do
			if [ `cat $i | grep -c "Virt"` -gt "0" ] ; then
				echo "found gadget at: $i"
				dev=`echo $i | sed 's/^\/.*\(sd.\)\/.*/\1/g'`
				echo "scsidev: $dev"
			else
				# catch last one. hm, really required? 
				rdev=`echo $i | sed 's/^\/.*\(sd.\)\/.*/\1/g'`
				echo "real storage device at: $i ($rdev)"
			fi
		done
#	else
#		echo "Storage Device is present"
#	fi
	# if rdev == dev -> no vusb and no real usb
	# if rdev != dev -> vusb or real usb or both
	# if rdev != dev + check where "sdj" -> vusb or real and "sdj" tels what's not present
	# how to detect that we need to write to log or usblog?
	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
	
	sed -i -e "s,MountPlaceholder,/dtv/usb/$dev," /dtv/SGO.env
	;;
	stop)
	# what's about umount?
	rmmod g_file_storage
	# some troubles if we mess around with dummy_hcd, so not remove on stop
	# rmmod dummy_hcd
	;;
	status)
	cat /sys/block/sd?/device/model
	;;
	*)
	echo "Usage: $0 {start|stop|status}" 1>&2
	exit 0
	;;
esac
Think Problem is here:

Code: Select all

root@tv:/mnt # /mnt/etc/init.d/02_04_vusb.init start
mkfs.vfat 2.11 (12 Mar 2005)
insmod: can't read '/mnt/lib/modules/2.6.35.13/kernel/drivers/usb/gadget/dummy_h               cd.ko': No such file or directory
insmod: can't read '/mnt/lib/modules/2.6.35.13/kernel/drivers/mstar/usb/gadget/d               ummy_hcd.ko': No such file or directory
insmod: can't read '/mnt/lib/modules/2.6.35.13/kernel/drivers/usb/gadget/g_file_               storage.ko': No such file or directory
insmod: can't read '/mnt/lib/modules/2.6.35.13/kernel/drivers/mstar/usb/gadget/g               _file_storage.ko': No such file or directory
real storage device at: /sys/block/sda/device/model (sda)

User avatar
juusso
SamyGO Moderator
Posts: 10125
Joined: Sun Mar 07, 2010 6:20 pm

Re: No samba shares on virtual USB

Post by juusso » Sun Jan 17, 2016 8:18 pm

Your vusb is not working properly - here is no modules. And everything is mounted to sdj as expected in such case
from vusb.init script code wrote: dev="sdj" # set fallback if someting wrong with modules
edit: lol, just saw your edit :)
LE40B653T5W,UE40D6750,UE65Q8C
Have questions? Read SamyGO Wiki, Search on forum first!
FFB (v0.8), FFB for CI+ . Get root on: C series, D series, E series, F series, H series. rooting K series, exeDSP/exeTV patches[C/D/E/F/H]

DO NOT EVER INSTALL FIRMWARE UPGRADE

zoelechat
Official SamyGO Developer
Posts: 8372
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: No samba shares on virtual USB

Post by zoelechat » Sun Jan 17, 2016 8:21 pm

Expected. No USB gadget on E-MST. Anyway if you can see virtual device and shares inside /dtv/usb, I already told you what to do.
TV is extremely slow to reference all files, and too much of them result in (not really) "endless" loading. Just wait 1hour or 2 and you'll see it's not endless :)
I do NOT receive any PM. Please use forum.

Post Reply

Return to “[E] Support”