Page 2 of 10

Re: Problems mounting Samba shares UE32F5300!

Posted: Sat Apr 26, 2014 3:30 pm
by brunogts77
Ok i have news!! I have turned on "04_04_fusesmb.init" and the shares are successfully mounted!

FUSESMB fille:

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_fusesmb.init 1089 2010-11-05 18:55:01Z arris $
#

. /dtv/SGO.env
# sleep 9
##### CHANGE MEEEEE !!!!! ######
USER="sysadmin"
PASSWD="123456789"
##### 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/fusesmb

FR_NAME="NG Windows Server"

do_mount()
{
        mkdir -p $DEST_DIR
        mkdir $HOME/.smb
	if [ ! -f $HOME/.smb/smb.conf ] ; then
		[ -f $SMB_CONF_PATH ] && cp -a $SMB_CONF_PATH $HOME/.smb/smb.conf
	fi
                $(echo -e "[global]\nusername=$USER\npassword=$PASSWD\n;showhiddenshares=true\n\
timeout = 10\ninterval = 10" > $HOME/.smb/fusesmb.conf)
        chmod 600 $HOME/.smb/fusesmb.conf
        cd $HOME
        touch $HOME/fusesmb.cache
        fusesmb $DEST_DIR
        fusesmb.cache
        sleep 3
#                $(echo -e "[sdh]\nVendor : SmbFsMount\nProduct : $FR_NAME\n\
#Serial : Q80VQLFI\nDevpath : 9\nLun : 0\nMountDir : $DEST_DIR\nFileSystem : vfat\n" >> /dtv/usb/log)
        cd -
}

case $1 in
	start)
	# fuse has own script
	# insmod $SYSROOT/lib/modules/fuse.ko
	lsmod | grep fuse
	if [ "$?" -eq "0" ] ; then
		do_mount
	else
		echo "Fuse must 1st started, not me!" 1>&2
	fi
        ;;
        stop)
        # may can fail if device access the mount from content library
        # attention: djmount use fuse too, difference is vfat on or fuse on
        # in output of mount
        # for i in $(cat /proc/mounts | grep cifs | cut -d " " -f2) ; do
        for i in $(cat /proc/mounts | grep fuse | grep -v vfat | sed 's/^\(.*\) \(.*\) fuse .*/\2/') ; do
		i="$(echo -n $i | sed -r 's/\\040/ /g')"
                $SYSROOT/bin/busybox umount "$i"
        done
        ;;
        status)
        ;;
        *)
        echo "Usage: $0 {start|stop}" 1>&2
        exit 0
        ;;
esac

Re: Problems mounting Samba shares UE32F5300!

Posted: Sat Apr 26, 2014 3:55 pm
by zoelechat
Well done. Happy to see something different than "not work boo" ;)

Re: Problems mounting Samba shares UE32F5300!

Posted: Sat Apr 26, 2014 4:03 pm
by brunogts77
Still have problems!!! All are mounted but media player can?t play nothing!!

Re: Problems mounting Samba shares UE32F5300!

Posted: Sat Apr 26, 2014 4:04 pm
by zoelechat
:mrgreen:

Re: Problems mounting Samba shares UE32F5300!

Posted: Sat Apr 26, 2014 4:07 pm
by sectroyer
brunogts77 wrote:Still have problems!!! All are mounted but media player can?t play nothing!!
The most probable problem is wrong SMB permissions :) Maybe some winshit guru will be able to help ;)

Re: Problems mounting Samba shares UE32F5300!

Posted: Sat Apr 26, 2014 4:08 pm
by brunogts77
Anny ideas?

Re: Problems mounting Samba shares UE32F5300!

Posted: Sat Apr 26, 2014 4:40 pm
by sectroyer
brunogts77 wrote:Anny ideas?
Post the result of:

Code: Select all

ls -l /dtv/usb/sda/smb/192.168.1.5/Users

Re: Problems mounting Samba shares UE32F5300!

Posted: Sat Apr 26, 2014 4:55 pm
by brunogts77

Code: Select all

VDLinux#> VDLinux#> ls -l /dtv/usb/sda/smb/192.168.1.5/Users

VDLinux#> ls: /dtv/usb/sda/smb/192.168.1.5/Users: No such file or directory


Re: Problems mounting Samba shares UE32F5300!

Posted: Sat Apr 26, 2014 5:01 pm
by sectroyer
brunogts77 wrote:

Code: Select all

VDLinux#> VDLinux#> ls -l /dtv/usb/sda/smb/192.168.1.5/Users

VDLinux#> ls: /dtv/usb/sda/smb/192.168.1.5/Users: No such file or directory

Change sda to your virtual disk :)
This will give you the list:

Code: Select all

ls /dtv/usb/

Re: Problems mounting Samba shares UE32F5300!

Posted: Sat Apr 26, 2014 5:04 pm
by brunogts77
My virtualusb is :

Code: Select all

VDLinux#> ls /dtv/usb/
sda     usblog