NFS Shares - more different Folders needed - HowTO?

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

User avatar
erdem_ua
SamyGO Admin
Posts: 3126
Joined: Thu Oct 01, 2009 6:02 am
Location: Istanbul, Turkey
Contact:

Re: NFS Shares - more different Folders needed - HowTO?

Post by erdem_ua »

I think this will work. Just adding second path as a different USB device...

Code: Select all

#!/bin/sh
# Enable Telnetd
mount -t devpts devpts /dev/pts
telnetd

sleep 30

mkdir -p /dtv/usb/sda4
mkdir -p /dtv/usb/sda5

# mount NFS share:

mount -o nolock 192.168.178.24:/volume1/video /dtv/usb/sda4 -t nfs
mount -o nolock 192.168.178.24:/volume2/Serial /dtv/usb/sda5 -t nfs

# append sda4 notification to log file:
echo "[sdd]
Vendor : Linux
Product : DS211 Mount
Serial : Q80VQLFL
Devpath : 4
Lun : 0
MountDir : /dtv/usb/sda4
FileSystem : vfat

" >> /dtv/usb/log

# append sda5 notification to log file:
echo "[sdd]
Vendor : Linux
Product : DS211 Mount
Serial : Q80VQLFZ
Devpath : 5
Lun : 0
MountDir : /dtv/usb/sda5
FileSystem : vfat

" >> /dtv/usb/log
Or you can put second path inside of first one too like:

Code: Select all

#!/bin/sh
# Enable Telnetd
mount -t devpts devpts /dev/pts
telnetd

sleep 30

mkdir -p /dtv/usb/sda4/video
mkdir -p /dtv/usb/sda4/Serial

# mount NFS share:

mount -o nolock 192.168.178.24:/volume1/video /dtv/usb/sda4/video -t nfs
mount -o nolock 192.168.178.24:/volume2/Serial /dtv/usb/sda4/Serial -t nfs

# append sda4 notification to log file:
echo "[sdd]
Vendor : Linux
Product : DS211 Mount
Serial : Q80VQLFL
Devpath : 4
Lun : 0
MountDir : /dtv/usb/sda4
FileSystem : vfat

" >> /dtv/usb/log
Both way will work...

Post Reply

Return to “[B] Support”