PDA

View Full Version : Easy way to use network drives?



joopajaa
28-10-2009, 10:37 PM
What file I need to edit to get my PC's (or other network drive) to show up every time I boot / restart my Premium?

The command I use is in telnet (and working):

mount.cifs //192.168.1.2/Dee$ /DATA/movie/Dee -o password=pass,username=user

I have tried to modify staruo.sh but with no luck.

Smudger
28-10-2009, 10:56 PM
I use the NAS plugin todo this.

slegs
28-10-2009, 10:59 PM
Create a file beginning with S50xxxx where 50 is any 2 digit number greater than 1 and replace xxxx with the name of the file. The S has to be capital S

Save this file with your command in /DISK2/etc/start.d/ folder on AZBox

it will get run every time the box starts up

joe_b
28-10-2009, 11:06 PM
I just use the ip addys of each comp to access all files.

pegaman
28-10-2009, 11:22 PM
I use the NAS plugin todo this.

Can you please give us some more details about this plugin?

Thanks

joopajaa
29-10-2009, 08:06 AM
Create a file beginning with S50xxxx where 50 is any 2 digit number greater than 1 and replace xxxx with the name of the file. The S has to be capital S

Save this file with your command in /DISK2/etc/start.d/ folder on AZBox

it will get run every time the box starts up


thanks, I will try this and maybe the NAS-plugin if I find it

Smudger
29-10-2009, 08:39 AM
look in this link and you wil find how to get the NAS plugin

https://www.satpimps.co.uk/showthread.php?t=110978&page=3


but heres something which is very much the same.

don't forget to chmod 755 the .sh file if you use it.

joopajaa
29-10-2009, 08:56 PM
No no no!


I cant get it to work. I edited the cifsmount.sh. I put 755 with ftp to it. I put it to start.s and ETC folder.

Still it wont work?

Smudger
29-10-2009, 09:23 PM
it goes in the plugins folder and appears like any other plugin and starts the same way when box starts work you restart the plugin.



create folder under plugins NAS and put it in there with the conf file.

Sorry under plugins openxcas folder

Heres mine.

Smudger
29-10-2009, 09:39 PM
I Noticed it has to be at the higher level share folder. Nested folders don't appear to work.

joopajaa
31-10-2009, 11:47 AM
So is there now a easy way? I have tried all these methods with no luck.

can someone write:

1. edit this file here
2. add 755
3..??
4??
5. reboot?

I have few drives I would like to use easily:

mount.cifs //192.168.1.2/Dee$ /DATA/movie/Dee@HP -o password=pass,username=user

mount.cifs //192.168.1.2/Dee$ /DATA/music/Dee@HP -o password=pass,username=user

mount.cifs //192.168.1.2/Gee$/Digikuvat /DATA/picture/Digikuvat@HP -o password=pass,username=user

mount.cifs //192.168.1.2/Jii /DATA/movie/400GB@HP -o password=pass,username=user

thanks for your help.

scandinav33
22-11-2009, 03:19 PM
Hi,

Did you find a solution to your problem? Because I'm struggling with exactly the same problem. I can mount a folder on my NAS server via telnet but not via a "S11name" file (chmod 755) in /DISK2/etc/start.d/.

rocktheroad
22-11-2009, 06:36 PM
Here is my S file...


#!/bin/sh
sleep 10
echo "Mounting ReadyNAS Movies"
mount -t nfs 10.10.10.20:/media/Videos /DATA/movie/ReadyNAS -o nolock,soft,rsize=8192,wsize=8192

Work like a charm

joopajaa
24-11-2009, 04:13 PM
Nope, I have for example now 2 files on /DISK2/etc/start.d
- S10UserDefinedShell
- S11mountit

S11mountit:

#!/bin/sh
sleep 10
mount -t nfs 192.168.1.2/Dee$ /DATA/movie/Dee@HP -o password=pass,username=user nolock,soft,rsize=8192,wsize=8192


also tried
#!/bin/sh
sleep 10
mount.cifs //192.168.1.2/Dee$ /DATA/movie/Dee@HP -o password=pass,username=user



with no luck. how hard could it be??

scandinav33
03-04-2010, 03:34 PM
Nope, I have for example now 2 files on /DISK2/etc/start.d
- S10UserDefinedShell
- S11mountit

S11mountit:

#!/bin/sh
sleep 10
mount -t nfs 192.168.1.2/Dee$ /DATA/movie/Dee@HP -o password=pass,username=user nolock,soft,rsize=8192,wsize=8192


also tried
#!/bin/sh
sleep 10
mount.cifs //192.168.1.2/Dee$ /DATA/movie/Dee@HP -o password=pass,username=user



with no luck. how hard could it be??

Hi. Did you find a solution? I have just tried to test it again with a newer firmware, but I'm still having the same problem. I can mount my NAS server folder via telnet but not via the "S11name" file (chmod 755) in /DISK2/etc/start.d/.

scandinav33
07-05-2010, 09:13 AM
Any ideas?

valkhyr
07-05-2010, 10:20 AM
Does the script S11mountit works when manual executed from telnet?

scandinav33
07-05-2010, 12:57 PM
Previously, I had only tried to execute the mount.cifs line directly in telnet and it did work without any problems, but I just now tried to execute the script and I got a error 13 code. Thus, I googled the error code and found this page: http://vijayk.blogspot.com/2008/09/cifs-mount-error-13-permission-denied.html

I just had to add a ",domain=XYZ" to the mount.cifs line and now it works. Super, thanks!

bpmurray
09-05-2010, 11:33 PM
Why not use /etc/fstab? That should work OK. Add the line below to the end of the file, although you have to create the mountpoint first:


//192.168.1.2/Dee$ /DATA/mountpoint cifs ro,username=UserName,password=Sec ret