B679 SAMBA/CIFS automount - newbie can't get it to work

Here for general support for B series TVs, request and problem solve area.
Post Reply

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

Re: B679 SAMBA/CIFS automount - newbie can't get it to work

Post by juusso »

FreeNAS works well with samygo. I have it currently running on my Buffalo NAS. All what you should do - write correct exports file. My /etc/exports is:

Code: Select all

root@LS-GL984:~# cat /etc/exports
/mnt/disk1 192.168.1.102/255.255.255.0(rw,async,all_squash,anonuid=99,anongid=99,no_subtree_check)
/mnt/usbdisk1 192.168.1.102/255.255.255.0(rw,async,all_squash,anonuid=99,anongid=99,no_subtree_check)
root@LS-GL984:~#

That means, that i have two exports for my TV only (IP 192.168.1.102). I mount it on TV with mount.sh:

Code: Select all

# cat /mtd_rwarea/mount.sh
#!/bin/sh

NFS="/dtv/usb/sda1"
SHARE1="Filmukai"
SHARE2="Downloads"
SHARE3="Muzika"
SHARE4="Records"
#Module="/mtd_rwarea/modules"
IP="192.168.1.200:/mnt"
#User="YOUR WINDOWS USERNAME"
#Password="YOUR WINDOWS PASSOWRD"



#====================================================================
# append sdg notification to log file:
#====================================================================
#rm /dtv/usb/log
echo "[sda1]
Vendor : NfsMount
Product : File-Stor Gadget
Serial : Q80VQLFH
Devpath : 8
Lun : 0
MountDir : /dtv/usb/sda1
FileSystem : vfat
" >> /dtv/usb/log

#====================================================================
#Create Folder for VUSB-Mountpoints
#====================================================================
  if [ `mount | grep -c $NFS` == 0 ]; then
    mkdir -p $NFS
  fi

echo .!!!!!!!!!!!!!! start mount !!!!!!!!!!!!!!.
echo .
#====================================================================
# Mounting the shares
#====================================================================
  if [ `mount | grep -c $NFS/$SHARE1` == 0 ]; then
    echo "Mounting: $SHARE1"
        mkdir -p $NFS/$SHARE1
    mount -o nolock $IP/usbdisk1/$SHARE1 $NFS/$SHARE1 -t nfs
        else
        echo "$SHARE1: already Mounted"
  fi

  if [ `mount | grep -c $NFS/$SHARE2` == 0 ]; then
        echo "Mounting: $SHARE2"
        mkdir -p $NFS/$SHARE2
    mount -o nolock $IP/usbdisk1/$SHARE2 $NFS/$SHARE2 -t nfs
        else
        echo "$SHARE2: already Mounted"
  fi

  if [ `mount | grep -c $NFS/$SHARE3` == 0 ]; then
        echo "Mounting: $SHARE3"
        mkdir -p $NFS/$SHARE3
    mount -o nolock $IP/usbdisk1/$SHARE3 $NFS/$SHARE3 -t nfs
        else
        echo "$SHARE3: already Mounted"
  fi

  if [ `mount | grep -c $NFS/$SHARE4` == 0 ]; then
        echo "Mounting: $SHARE4"
    mkdir -p $NFS/$SHARE4
    mount -o nolock $IP/disk1/$SHARE4 $NFS/$SHARE4 -t nfs
        else
        echo "$SHARE4: already Mounted"
  fi
echo .
#
1. Post here what do you get with command on TV

Code: Select all

mount
2. Post here your exports file of your NAS

Code: Select all

cat <path to exportfile>/exports
3. Post here what you get with command on NAS:

Code: Select all

exportfs
4. Do not forget - after you change export file, execute command on NAS:

Code: Select all

exportfs -ra
Did you follow instructions on wiki? What didn`t you understand?
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
User avatar
juusso
SamyGO Moderator
Posts: 10129
Joined: Sun Mar 07, 2010 6:20 pm

Re: B679 SAMBA/CIFS automount - newbie can't get it to work

Post by juusso »

If you have NFS running, you should have exports file to modify. I do not know where is it on your NAS, you do not get it working by creating in /etc as in my example. You need to study your NAS, search answers on NAS forums, not here. After you get NFS working, you can ask with TV related questions here.

You can set static IP via Settings-Network menu.
Yes, your samygo.sh is running in background.
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
edelfalke
Posts: 81
Joined: Sun Jan 10, 2010 12:29 pm

Re: B679 SAMBA/CIFS automount - newbie can't get it to work

Post by edelfalke »

i have changed the Name of the VUSB by changing this line:

Code: Select all

Product : File-Stor Gadget
to

Code: Select all

Product : Virtual USB

Post Reply

Return to “[B] Support”