samba share mount.
samba share mount.
Hi all,
does enybody know why the samba share takes so long to mount ?
On my ES8000 it takes minutes to mount and to see the smb folder in the Virtual USB.
All the scripts after the samba one are delayed accordingly in this is quite annoying.
does enybody know why the samba share takes so long to mount ?
On my ES8000 it takes minutes to mount and to see the smb folder in the Virtual USB.
All the scripts after the samba one are delayed accordingly in this is quite annoying.
AVOID TO PUBLISH AND DISCLOSE SAMYGO PROJECTS ON OTHER FORUM.
Re: samba share mount.
if your nfs script is enabled and you dont have any nfs server on the network, then you have to disable it first.
Second - write server`s IP and shares in to the script manually instead of automatic scan and mount...
Second - write server`s IP and shares in to the script manually instead of automatic scan and mount...
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
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
Re: samba share mount.
Thanks. The NFS disable made the job. The smb mount is already at fixed ip.
Now it is quite fast.
Now it is quite fast.
AVOID TO PUBLISH AND DISCLOSE SAMYGO PROJECTS ON OTHER FORUM.
-
- Posts: 10
- Joined: Fri Feb 03, 2017 6:32 pm
Re: samba share mount.
Hi,
sorry to reopen this, but my ES6500 is taking a long time to mount smb folder, around 5 minutes.
I already disable NFS script because I´m not using and set IP in server and my TV. I´m using one router with two HDs( 1TB each one). In server root folder I can see four folders (two folders for each HD), but I need to see only one folder "//server/torrent/movies", (torrent is in root folder).
my samba.init
what can I do to solve this? Other question, is possible set my TV to see only my necessary folder in the last destination? How to do this?
sorry to reopen this, but my ES6500 is taking a long time to mount smb folder, around 5 minutes.
I already disable NFS script because I´m not using and set IP in server and my TV. I´m using one router with two HDs( 1TB each one). In server root folder I can see four folders (two folders for each HD), but I need to see only one folder "//server/torrent/movies", (torrent is in root folder).
my samba.init
Code: Select all
# sleep 9
##### CHANGE MEEEEE !!!!! ######
USER="guest"
PASSWD="none"
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/server
SERVER="192.168.1.2"
# SERVER="10.0.0.1" # if you want a fixed server
SHARES="torrent"
FR_NAME="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()
Re: samba share mount.
What`s exact network (samba) patch to your movies directory on router?
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
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
-
- Posts: 10
- Joined: Fri Feb 03, 2017 6:32 pm
Re: samba share mount.
I understand what was going on. The problem was happening because a HD has many files (ps3 games), I removed this folder and now it is much faster. But I want the script to just mount the folder with movies and ignore the others, is that possible?
I only want to see this directory /torrent/movies or torrent, when I set it in my script it not work and show me all folders.
I tried SHARES="torrent" and SHARES="torrent/movies", but not worked.
SMB:
192.168.1.2/torrent/movies
SpoilerShow
#!/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="guest"
PASSWD="none"
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/midias
SERVER="192.168.1.2"
# SERVER="10.0.0.1" # if you want a fixed server
SHARES="torrent"
FR_NAME="Leandro"
# 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
#
# © 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="guest"
PASSWD="none"
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/midias
SERVER="192.168.1.2"
# SERVER="10.0.0.1" # if you want a fixed server
SHARES="torrent"
FR_NAME="Leandro"
# 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
Re: samba share mount.
do you have access to TV`s console? try mount manually and check if it works.
Something like this
then check if there is something inside /dtv/sda1/movies
Something like this
Code: Select all
. /dtv/SGO.env
mkdir /dtv/sda1/movies
/bin/busybox mount -t cifs //192.168.1.2/torrent/movies /dtv/sda1/movies
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
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
-
- Posts: 10
- Joined: Fri Feb 03, 2017 6:32 pm
Re: samba share mount.
juusso wrote: ↑Sat Feb 18, 2017 6:17 pm do you have access to TV`s console? try mount manually and check if it works.
Something like thisthen check if there is something inside /dtv/sda1/moviesCode: Select all
. /dtv/SGO.env mkdir /dtv/sda1/movies /bin/busybox mount -t cifs //192.168.1.2/torrent/movies /dtv/sda1/movies
Code: Select all
mount: mounting //192.168.1.2/torrent/movies /dtv/sda1/movies failed: Invalid argument
Re: samba share mount.
You can only mount a share, not a subfolder of a share 

I do NOT receive any PM. Please use forum.
Re: samba share mount.
Then change samba settings on your router and add one more share named movies, where you expose /torrent/movies. Something like that 

Code: Select all
[movies]
writeable = no
public = yes
path = /mnt/disk1/torrent/movies
guest ok = yes
read only = no
create mask = 0777
directory mask = 0777
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
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