It is currently May 21st, 2013, 9:09 am Advanced search
jsmiddleton4 » July 30th, 2012, 12:10 am wrote:Tried this tonight. Links the movie list/info to the hard drive.
ln -s /tmp/ramfs/volumes/NAS2 /tmp/usbmounts/sda1/NASMovies
Point SRJG to sda1. Read movies on the hard drive, did not see the movies from the link. Point to the link, NASMovies, SRJG build juke box with full list of NAS movies.
rkashyap » July 10th, 2012, 4:48 pm wrote:(4) I have symbolic links created on sda1 with structure as All_Drives\NFSDrive1\Movie folders and All_Drives\NFSDrive2\Movie folders. I did not use tmp/nfs for the simlinks as suggested in network shortcuts. I see that when I use the simlinks root folder ALL_Drives as movie path then SRJG does not create any jukebox. If I do individually and specify for example NFSDrive1 then it works. Also, it works with the hard mounted folder /tmp/ramfs. Not sure what is going on. Is there a requirement that simlinks cannot be on sda1? I am going to try to change and put it somewhere in tmp/nfs or use/etc folder to see what happens.
.
mkdir -p /tmp/ramfs/volumes/NAS1
while [ $TIMEOUT -gt 0 ]; do
if ping 192.168.2.21; then
mount -t cifs //192.168.2.21/Television_Shows -o ro,username= /tmp/ramfs/volumes/NAS1
ln -s /tmp/ramfs/volumes/NAS1 /tmp/nfs/Television_Shows
mkdir -p /tmp/usbmounts/sda1/Television_Shows
while [ $TIMEOUT -gt 0 ]; do
if ping 192.168.2.21; then
mount -t cifs //192.168.2.21/Television_Shows -o ro,username= /tmp/usbmounts/sda1/Television_Shows
#!/bin/sh
SAVEIFS=$IFS
IFS=$(echo -en "\n\b")
# Create nfs mount folder if not present
mkdir -p /tmp/nfs
######################################################
TIMEOUT=20
mkdir -p /tmp/ramfs/volumes/NAS1
while [ $TIMEOUT -gt 0 ]; do
if ping 192.168.2.21; then
mount -t cifs //192.168.2.21/Television_Shows -o ro,username= /tmp/ramfs/volumes/NAS1
ln -s /tmp/ramfs/volumes/NAS1 /tmp/nfs/Television_Shows
TIMEOUT=0
else
TIMEOUT=$((TIMEOUT - 1))
fi
done
##########################################################
##########################################################
TIMEOUT=20
mkdir -p /tmp/usbmounts/sda1/NASMovies
while [ $TIMEOUT -gt 0 ]; do
if ping 192.168.2.20; then
mount -t cifs //192.168.2.20/Movies -o ro,username= /tmp/usbmounts/sda1/NASMovies
ln -s /tmp/usbmounts/sda1/NASMovies /tmp/nfs/NASMovies
TIMEOUT=0
else
TIMEOUT=$((TIMEOUT - 1))
fi
done
##########################################################
ln -s /tmp/usbmounts/sda1/AIOSMovies /tmp/nfs/AIOSMovies
IFS=$SAVEIFSUsers browsing this forum: No registered users and 1 guest