Re: B679 SAMBA/CIFS automount - newbie can't get it to work
Posted: Mon Dec 06, 2010 8:13 am
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:
That means, that i have two exports for my TV only (IP 192.168.1.102). I mount it on TV with mount.sh:
1. Post here what do you get with command on TV
2. Post here your exports file of your NAS
3. Post here what you get with command on NAS:
4. Do not forget - after you change export file, execute command on NAS:
Did you follow instructions on wiki? What didn`t you understand?
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 .
#
Code: Select all
mount
Code: Select all
cat <path to exportfile>/exports
Code: Select all
exportfs
Code: Select all
exportfs -ra