It is currently June 20th, 2013, 1:57 am Advanced search

How to: Bookmark Network Folder

Product usage Guides and Tips.. see what you are missing!

Re: How to: Bookmark Network Folder

Postby aasoror » October 16th, 2012, 4:32 pm

glitz521 » October 16th, 2012, 8:21 pm wrote:the drive is labeled: seagate
the Windows assigned drive letter is: F

so yes, under properties of the drive, it states the share name is: seagate (F)


OK, from your windows PC change the name to just "seagate" or change the AIOS script to "seagate (F)"
The AIOS wiki - The AIOS Semiofficial firmwares
Calling upon ALL AIOSers, your feedback is needed -- Calling upon ALL XIOSers, your feedback is needed
XIOS XBMC: Setup, Nightlies: M1 - M3 - Android - Keep the annoying XIOS developers happy, always attach a log with your bug report, here is how.
User avatar
aasoror
Pivos Employee
 
Posts: 8746
Joined: September 26th, 2011, 4:18 pm

Re: How to: Bookmark Network Folder

Postby glitz521 » October 17th, 2012, 2:57 pm

ok thanks. I changed it on the Windows machine. Now- i think i am making some progress but still getting:


Code: Select all
~ # chmod +x /usr/local/etc/share_favs/f02nas1.sh
~ # /usr/local/etc/share_favs/f02nas1.sh
192.168.1.10 is alive!
ln: /tmp/nfs/Movies/movies: Operation not supported
ln: /tmp/nfs/Movies 2/movies-kids: Operation not supported
ln: /tmp/nfs/TV Shows/tvshows: Operation not supported
ln: /tmp/nfs/Home Videos/homevideos: Operation not supported
glitz521
Dedicated
 
Posts: 56
Joined: March 14th, 2012, 5:12 am

Re: How to: Bookmark Network Folder

Postby glitz521 » October 17th, 2012, 3:04 pm

OK, even with the Operation not supported error as shown above, I checked the aios and the folders are now bookmarked under NFS!! it worked :) Thanks!!

when i had the external hooked up to my windows 7 machine, I believe the share name didnt include the drive letter by default. IDK. Working now though. Thanks again, aasoror
glitz521
Dedicated
 
Posts: 56
Joined: March 14th, 2012, 5:12 am

Re: How to: Bookmark Network Folder

Postby aasoror » October 17th, 2012, 3:52 pm

glitz521 » October 17th, 2012, 7:04 pm wrote:OK, even with the Operation not supported error as shown above, I checked the aios and the folders are now bookmarked under NFS!! it worked :) Thanks!!

when i had the external hooked up to my windows 7 machine, I believe the share name didnt include the drive letter by default. IDK. Working now though. Thanks again, aasoror


Thanks for the update glitz521, the trick was to look for the proper share names using the AIOS network browser, this would tell you which share names needs to be used in the script.

Enjoy your AIOS.
The AIOS wiki - The AIOS Semiofficial firmwares
Calling upon ALL AIOSers, your feedback is needed -- Calling upon ALL XIOSers, your feedback is needed
XIOS XBMC: Setup, Nightlies: M1 - M3 - Android - Keep the annoying XIOS developers happy, always attach a log with your bug report, here is how.
User avatar
aasoror
Pivos Employee
 
Posts: 8746
Joined: September 26th, 2011, 4:18 pm

Re: How to: Bookmark Network Folder

Postby efros » November 17th, 2012, 12:06 pm

Just piping up here to highlight an issue I've seen several times with NFS shares. Every now and then when I switch on my AIOS for some reason it will fail to mount my NFS shares with a "cannot allocate memory" error. When viewed from the telnet window and the fs0 file is executed the share is recognized as 'alive' and then it fails to mount due to this allocation error. The fix, which I have found to work 100% of the times it has happened, is to reboot everything on the network involved in the shares, i.e. the AIOS, the sharing computer and the router. It's irritating but easily remedied.
User avatar
efros
Dedicated
 
Posts: 82
Joined: August 3rd, 2012, 8:08 am

Re: How to: Bookmark Network Folder

Postby Dawood » January 21st, 2013, 4:27 pm

I am running version 3.4.3.0 and trying to connect to a Windows 7 share. I have no issues connective via Network->My_Shortcuts. When using the following fs02nas1.sh:

Code: Select all
#!/bin/sh
SAVEIFS=$IFS
IFS=$(echo -en "\n\b")

NAS1_IP="192.168.1.70"
NAS1_SHARE="iso"
NAS1_MEDIA_FOLDER1="MKVs"
MOUNT_NAS1_SHARE="NAS1"
MOUNT_NAS1_MEDIA_FOLDER1="Movies1"

# Create nfs mount folder if not present
mkdir -p /tmp/nfs

# COPY THIS BLOCK FOR EVERY SERVER YOU WANT TO LINK TO
######################################################
TIMEOUT=20
mkdir -p /tmp/ramfs/volumes/$MOUNT_NAS1_SHARE
while [ $TIMEOUT -gt 0 ]; do
    if ping $NAS1_IP; then   
        mount -t cifs //$NAS1_IP/$NAS1_SHARE -o rw,iocharset=utf8,username=(user), password=(password) /tmp/ramfs/volumes/$MOUNT_NAS1_SHARE
        ln -s /tmp/ramfs/volumes/$MOUNT_NAS1_SHARE/$NAS1_MEDIA_FOLDER1 /tmp/nfs/$MOUNT_NAS1_MEDIA_FOLDER1
        TIMEOUT=0
    else
        TIMEOUT=$((TIMEOUT - 1))
    fi
done
##########################################################

IFS=$SAVEIFS

I get the the following error:
Code: Select all
/usr/local/etc/share_favs # /usr/local/etc/share_favs/fs02nas1.sh
192.168.1.70 is alive!
mount: Can't find //192.168.1.70/iso in /etc/fstab


What am I doing wrong?
Dawood
 
Posts: 8
Joined: January 21st, 2013, 3:26 pm

Re: How to: Bookmark Network Folder

Postby aasoror » January 21st, 2013, 11:10 pm

Dawood » January 21st, 2013, 7:27 pm wrote:What am I doing wrong?

There is no space between username and password here
Code: Select all
username=(user), password=(password)

should be
Code: Select all
username=(user),password=(password)


a side note, since you are on official firmware the script wont get auto executed at startup, you will need to either switch to the latest semiofficial firmware or add the following line in your /usr/local/etc/rcS

Code: Select all
/usr/local/etc/share_favs/fs02nas1.sh &


Best of luck,
The AIOS wiki - The AIOS Semiofficial firmwares
Calling upon ALL AIOSers, your feedback is needed -- Calling upon ALL XIOSers, your feedback is needed
XIOS XBMC: Setup, Nightlies: M1 - M3 - Android - Keep the annoying XIOS developers happy, always attach a log with your bug report, here is how.
User avatar
aasoror
Pivos Employee
 
Posts: 8746
Joined: September 26th, 2011, 4:18 pm

Re: How to: Bookmark Network Folder

Postby J.Waltrip » February 14th, 2013, 4:14 pm

I am running R21, and do not see /usr/local/etc/share_favs/f02nas1.sh

1. Is this instruction valid for that version of firmware?
2. Will this instruction let me index my NFS mounts like local drives?
J.Waltrip
Hardcore
 
Posts: 136
Joined: February 14th, 2013, 6:20 am

Re: How to: Bookmark Network Folder

Postby aasoror » February 14th, 2013, 4:23 pm

J.Waltrip » February 14th, 2013, 7:14 pm wrote:I am running R21, and do not see /usr/local/etc/share_favs/f02nas1.sh

1. Is this instruction valid for that version of firmware?
2. Will this instruction let me index my NFS mounts like local drives?


1. yes, f02nas1.sh is not there, the "vi" command creates it.
2. nope, if you want to index NFS shares you need to have ext3 storage on the AIOS and mount the NFS shares there (instead of /tmp/nfs)
The AIOS wiki - The AIOS Semiofficial firmwares
Calling upon ALL AIOSers, your feedback is needed -- Calling upon ALL XIOSers, your feedback is needed
XIOS XBMC: Setup, Nightlies: M1 - M3 - Android - Keep the annoying XIOS developers happy, always attach a log with your bug report, here is how.
User avatar
aasoror
Pivos Employee
 
Posts: 8746
Joined: September 26th, 2011, 4:18 pm

Re: How to: Bookmark Network Folder

Postby J.Waltrip » February 14th, 2013, 6:22 pm

OK.... So I can install a small SATA, and format it as EXT3, then mount the stuff there?
J.Waltrip
Hardcore
 
Posts: 136
Joined: February 14th, 2013, 6:20 am

PreviousNext

Return to AIOS Guides & Tips

Who is online

Users browsing this forum: No registered users and 1 guest