Home

Ayuda con mountNFS

quecon

Usuario
Loco por OpenSPA
18 Ago 2009
484
5
0
47
Buenas tardes a todos haber si me podeis echar una mano me bajado este pluging nfsmnt que supuestamente es para montar por NFS en un pc con linux, bueno en una dream que tengo va de lujo ya que segui este manual Manual_illo: Dreambox500s monta un directorio del disco duro de una máquina Linux - Todo Dream ( Sino se puede poner enlaces lo quitais y ya ciopio aqui lo que pone ok ) y en la dream me va muy bien me lo detecta a la primera y veo lo que tengo en el pc linux sin problemas pero ene l azbox no me funciona e echo lo mismo que ne la dream pero me da esta error al inicar el script
AZBox[mountNFS]$ ./nfsmount.sh start
mount: RPC: Unable to receive; errno = Connection refused
mount: nfsmount failed: Bad file descriptor
mount: Mounting 192.168.1.4:/home/quecon/Peliculas on /DATA/movie failed: Inval
d argument
siendo home/quecon/Pleicula donde tengo las pelis y mis cosas pero nada no em va hos pongo la config aqui que tengo puesta
#!/bin/sh
#
# NFS MOUNTSCRIPT v 1.0.5 BY CTHT
# addr0 = Server 1
# addr1 = Server 2
#
# Have fun!!!
#
# Support:
# www.forum.azbox.to
#
# Hier die eigenen NFS-Server eintragen!
# addr0="IP SERVER 1
# NACHFOLGENDE ZEILE EDITIEREN!!
addr0="192.168.1.4" #ip del opdenador
#addr1="192.168.1.4"
#addr2="192.168.1.4"
#
# addr1="IP SERVER 2
# NACHFOLGENDE ZEILE NUR EDITIEREN WENN ZWEITER NFS SERVER VORHANDEN!!
# addr1=""
#
# Server 1 auf /DATA/movie mounten
# NFS SERVER AZBOX
#mount -t nfs $addr0:/peliculas /DATA/movie -o nolock,rsize=8192,wsize=8192
#mount -t nfs $addr1:/DATA/network/WORKGROUP/192/Peliculas/ /DATA/movie -o nolock,rsize=8192,wsize=8192
mount -t nfs $addr0:/home/quecon/Peliculas /DATA/movie -o nolock,rsize=8192,wsize=8192

# Server 1 auf /DATA/picture mounten
# mount -t nfs $addr0:/mnt/hq/main /DATA/picture -o nolock

# Server 2 auf /DATA/music mounten
# mount -t nfs $addr1:/mnt/MP3 /DATA/music -o nolock

haber si me podeis ayudar compañeros ya que en la dream va de lujo incluso con archivos que pesen mucho
:melt:
 

quecon

Usuario
Loco por OpenSPA
18 Ago 2009
484
5
0
47
Vale ya lo he solucionado haber si puedo currarme un manual y lo cuelgo
 

quecon

Usuario
Loco por OpenSPA
18 Ago 2009
484
5
0
47
Bueno ya tengo el manual es de un compañero del otro foro pero adaptado para azbox ok

1. Configurar la red del Azbox, por supuesto nada de DHCP, todo a pelo

2. En mi PC Linux instalar, en modo root, instalar los demonios NFS(hay que estar conectado a internet, porque los ficheros se los baja de la Red):

root@miLinux# apt-get install nfs-common
root@miLinux# apt-get install nfs-kernel-server


3- Editamos el fichero /etc/hosts.deny con: root@miLinux# gedit /etc/hosts.deny

y al final del archivo añadimos:

portmap:ALL
lockd:ALL
mountd:ALL
rquotad:ALL
statd:ALL

Guardamos y salimos

4.- Editamos el fichero /etc/hosts.allow con: root@miLinux# gedit /etc/hosts.allow

y al final del archivo ponemos:

portmap: 192.168.XXX.XXX
lockd: 192.168.XXX.XXX
rquotad: 192.168.XXX.XXX
mountd: 192.168.XXX.XXX
statd: 192.168.XXX.XXX

donde he 192.168.XXX.XXX es la ip de la Azbox (las X las tenéis que sustituir por vuestra verdadera IP)
Guardamos y cerramos

5.- Editamos el fichero /etc/exports con: root@miLinux# gedit /etc/exports

y añadimos la línea:

/var/compartir 192.168.XXX.XXX(rw,async)#con esto de damos al Azbox permiso de la carptea compartir de linux

donde "/var/compartir" es el subdirectorio del Pc Linux(podemos poner el que queramos) que va a poder ser accedido por el Azbox, luego lo montaremos en lugar correcto. y la Ip es la de la Azbox.

Bueno hecho esto solo tenemos que hacer que el demonio nfsd funcione en nuestro PC poniendo(En realidad vamos a reiniciarlos, esto no hará falta volver hacerlo , excepto si cambiamos la configuración del demonio):

root@miLinux# sudo /etc/init.d/nfs-common restart
root@miLinux# sudo /etc/init.d/nfs-kernel-server restart
root@miLinux# sudo /etc/init.d/portmap restart

Si tenéis algún firewall, tendréis que abrir los puertos(yo tengo el firestarter instalado). La de intentos de entrar raros que encuentro de vez en cuando en mi equipo me sorprende y por eso no uso windows).God bless America y al Firestarter!. Si a alguien le interesa lo puedo postear como se hace
Como es red local no tenéis que abrir ningún puerto en el router, ni en el bridge

Bueno ya está, ahora os bajais el pluging nfsmnt y lo configurais asi

addr0="192.168.1.x"#Donde X serian las ip del Pc linux


#
# addr1="IP SERVER 2
# NACHFOLGENDE ZEILE NUR EDITIEREN WENN ZWEITER NFS SERVER VORHANDEN!!
# addr1=""
#
# Server 1 auf /DATA/movie mounten
# NFS SERVER AZBOX
mount -t nfs $addr0:/var/compartir/ /DATA/movie -o nolock,rsize=8192,wsize=8192


Una vez termina de configurar lo meteis en PLUGING/OpensXCAS/ y le das atributos 755 a todo y luego o bien lo arrancais por consolo que seria entrar en root en el azbox y poner

cd /PLUGING/OpenXCAS/mountNFS

addr0="192.168.1.x"donde X serian las ip del Pc linux

mount -t nfs $addr0:/var/compartir/ /DATA/movie -o nolock,rsize=8192,wsize=8192

O bien como si arrancais una camd por ejemplo yo tengo el Mbox arriba y activado y bajo el mountNFS

Mirar mi module.seq

MboxCAS
mountNFS
#CheopsCAS
#mgcamd
#SboxCAS
#gCam
#MultiCAS


Bueno ya tenéis disco duro del linux compartiendo con en la Azbox

He de decir una cosa hice lo mismo con la dream 500 y me ha ido tambien bien pero con la dream me deja grabar y todo pero en el azbox no me deja y no se porque no me detecta el disco duro del linux, cuando apreto al boton de grabar del azbox me sale ( Ningun dispositivo valido para la grabacion ) haber si entre todos lo solucionamos un saludo
Pd. enlace de mountNFS

http://rapidshare.com/files/299577040/mountNFS.rar.html
 

Guber1

Usuario
Amigo OpenSPA
15 May 2009
83
0
0
muy buena info ya que yo al igual que tu tenia mi disco conectado por nfs a mi itgate tgs200 pero con el azbox no sabia como hacerlo, pero claro pera mi el punto mas interesante seria poder grabar en el, es mas, no entiendo como un receptor hoy en dia no es capaz de grabar directamente en cualquier unidad de red y encima hay que hacerlo con un script cuando deberia ser tan simple como modificar una opcion del menu pero bueno....

Muchas Gracias
 

PaPiTo

AZvip
Fan de OpenSPA
4 Dic 2007
145
0
0
quecon dijo:
....... He de decir una cosa hice lo mismo con la dream 500 y me ha ido tambien bien pero con la dream me deja grabar y todo pero en el azbox no me deja y no se porque no me detecta el disco duro del linux, cuando apreto al boton de grabar del azbox me sale ( Ningun dispositivo valido para la grabacion ) haber si entre todos lo solucionamos un saludo

Enhorabuena Quecon, me alegro que finalmente lo solucionaras.

Referente al tema de la grabación, el Azbox cuando le pides grabar solo ira a buscar o el HDD interno (en el caso del Premium) o un dispositivo externo USB.

Para poder grabar, deberas hacer el punto de montaje del dispositivo USB sobre la carpeta de red.

Saludos
PaPiTo
 

quecon

Usuario
Loco por OpenSPA
18 Ago 2009
484
5
0
47
Como me dice papito le he puesto al azbox un pendrivers en el usb trasero y lo he intentado mandar con el comando para el montaje que en mi caso es este
mount.cifs //192.168.x.x/home/quecon/Peliculas /DATA/usb1/sda1 -o guest y me responde esto
mount error 13 = Permission denied
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)

Alguna solucion gracias
 

PaPiTo

AZvip
Fan de OpenSPA
4 Dic 2007
145
0
0
mount -t nfs 192.168.x.x:/home/quecon/Peliculas /DATA/usb1/sda1 -o guest

prueba asi a ver....
 

quecon

Usuario
Loco por OpenSPA
18 Ago 2009
484
5
0
47
me dice esto papito

unknown nfs mount option: guest
mount: nfsmount failed: No such file or directory
mount: Mounting 192.168.1.4:/home/quecon/Peliculas on /DATA/usb1/sda1 failed: I
valid argument
AZBox[~]$
 

migueldebadia

Usuario
Amigo OpenSPA
1 Jun 2009
27
0
0
Buenas, yo quisiera solamente montar la carpeta de movie de mi AZBOXHD como nfs y así poder intercambiar archivos desde mi popcornhour, como lo monto automáticamente.

Saludos
 

milix

AZvip
Loco por OpenSPA
22 Ago 2009
1.679
2
0
Yo para montar el HDD del palomo en el azbox y este poder ver todo del palomo lo monto por nfs que va mejor:

mount -t nfs 192.168.1.99:/share /DATA/movie -o nolock,soft,rsize=8192,wsize=8192

Donde 192.168.1.99 es la ip del palomo.

Luego si quieres que este comando se ejecute cuando inicie el azbox solo tienes que crear un script llamado por ejemplo S80nfs y meterlo en /DISK2/etc/star.d/ y darle atributos 755:

#!/bin/sh
mount -t nfs 192.168.1.99:/share /DATA/movie -o nolock,soft,rsize=8192,wsize=8192

Es importante que tengas activa en el palomo el servidor NFS sino no te funcionara.

Salu2.
 

migueldebadia

Usuario
Amigo OpenSPA
1 Jun 2009
27
0
0
milix dijo:
Yo para montar el HDD del palomo en el azbox y este poder ver todo del palomo lo monto por nfs que va mejor:

mount -t nfs 192.168.1.99:/share /DATA/movie -o nolock,soft,rsize=8192,wsize=8192

Donde 192.168.1.99 es la ip del palomo.

Luego si quieres que este comando se ejecute cuando inicie el azbox solo tienes que crear un script llamado por ejemplo S80nfs y meterlo en /DISK2/etc/star.d/ y darle atributos 755:



Es importante que tengas activa en el palomo el servidor NFS sino no te funcionara.

Salu2.
Gracias milix, pero lo que yo quisiera hacer es lo contrario,acceder al AZBOX desde el palomo en NFS. Y esta opción no se porque motivo no me lo permite, igual es que no tengo activada esa opción,¡ pero no se donde activarla !.

Saludos
 

polaina

Usuario
Amigo OpenSPA
3 Jun 2009
77
0
0
Buenas, sabeis si esto me puede servir para conectar una azbox al disco duro interno de otra azbox que tengo en la misma red.
De ser así, ¿¿qué linea tendria que poner??
Un saludo, gracias​
 
C

caley13

Invitado
quecon dijo:
Como me dice papito le he puesto al azbox un pendrivers en el usb trasero y lo he intentado mandar con el comando para el montaje que en mi caso es este
mount.cifs //192.168.x.x/home/quecon/Peliculas /DATA/usb1/sda1 -o guest y me responde esto
mount error 13 = Permission denied
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)

Alguna solucion gracias


Suponiendo que tu usuario en el PC sea "pepe", y tengas el directorio /home/pepe, pues:

mount.cifs //192.168.xxx.xxx/pepe /mnt -o username=pepe


copy.png
trans.png
 

gorski

Usuario Destacado
Loco por OpenSPA
10 Abr 2009
1.334
9
0
Synology DS210j NAS problems with AZbox HD...

Errrmmmm.... no go.... :(

I set up the Synology DS210j properly, it is working GENERALLY but - not with AZbox HD specifically... Namely, I can access it from my PC but not from AZbox HD, Mounting Wizard [v. 1.3 by Daniel] or not [actually, it got confused at some point and the stuff I put into it got changed...]!

Interestingly, I can get in with AZbox HD's FTP Client! But I can not play anything from it, just move files [to the DOM, I think, because it froze quickly] etc.

But that won't do... When I try via Movies -> Network, for instance, it doesn't ask me for username/password and when it gets in the NAS - it can't see anything...

I activated the NFS server, as well as Windows one, created shared folders, given permissions [NFS one specifically, too!], added exceptions in the firewall, in the router and so on and so forth...

Nada! I am lost for words...

Does anyone know EXACTLY how to mount NFS server's shared folders, put in the obviously necessary username/password and be able to stream to AZ HD from it, please?

But wait: my Windows7 has username and password but AZbox HD isn't asking for them in order to get in, and it still is able to go into Win7 shared folders and play from them! Weird or what?

If it is possible, after all, to get into the NAS and play from it onto AZ HD: would it be possible to record onto a dedicated TV Record folder in the NAS, as opposed to a built-in HDD or a USB attached HDD???

Attached the Mounting Wizard for reference...

Thanx in advance!
 

Adjuntos

  • MW.zip
    408,9 KB · Visitas: 10

gorski

Usuario Destacado
Loco por OpenSPA
10 Abr 2009
1.334
9
0
Thanx, guys!!!

I was messing and messing with it until...

Heh, just discovered that in Win Server I haven't put the IP address and now CIFS works... [it seems...??]

But I can't tell which one actually works... I deleted the Mounting Wizard having tried it, as I stated earlier, which meddling left a few files behind and maybe they are working? Here is StartUpNFS from DISK2/etc:

Código:
192.168.x.x:/volume1/video /DATA/movie 1 0 1
192.168.x.x:/volume1//music /DATA/music 1 0 1
192.168.x.x:/volume1/photo /DATA/picture 1 0 1
192.168.x.x:/volume1/TV Record 1 0 1
/DATA/recordfile 0 0 0 0
These folders can't be seen via "Network" but by going directly into Movies, as it's being mounted right there!

It doesn't ask for username/password, even though I have them for the NAS.

Still, VOB is going great, MKV, too. Must test more...

Generally: IT'S WORKING!!!! :D

From my laptop [WLAN to the router and then LAN/cable] it wasn't as good. I had many more problems, then going straight via the LAN cables from the NAS! On top of that, lately I have mostly streamed from the USB HDD attached to my laptop. That made it even more difficult!

Anyways, as Zeini and co. said in their Wiki article: I can't record over the net to NAS, though, it seems... Here is a little online translation from German to English of the article:

The Network File System - NFS abbreviated (also Network File Service) - a system developed by Sun Microsystems protocol that allows access to files over a network. Process, the files are not transferred as in FTP, but the user can access files that reside on a remote computer, access, as if they were stored on their local hard drive. If NFS is UNIX network protocol.

The equivalent to NFS on Windows and OS / 2 environment is Server Message Block (SMB). While authenticated at the SMB user, authenticates the more popular the NFS V3 client machine, only NFS V4 allows user authentication.

NFS services are also available on Microsoft Windows servers, UNIX workstations, which may have access to their files. On Windows, a maximum possible NFS V3. However, it is mostly used in mixed environments with SMB Samba on Unixseite.

These instructions cover manual integration of network drives using NFS mounts.

Requirements:
- Telnet connection to your AZ-Box. How does this read here.
- NFS sharing a folder was created on a PC or NAS. On Windows, NFS shares can be realized only after installation of an NFS server. is used when a Windows PC without a NFS server, only the application of SMB mounts possible.

An NFS mount command is as follows.

Código:
mount -t nfs -o nolock,rsize=8192,wsize=8192 "IP-Adresse des  PC":/Freigabename Mountziel
{Btw, Zeini explained: "NFS-Freigabe means NFS-Sharingname of the PC or NAS - in this example from the device with IP 192.168.0.2"}

In our example, the mount command looks like this:

Código:
mount -t nfs -o nolock,rsize=8192,wsize=8192 192.168.0.2:/Movies  /DATA/movie
By entering this command via Telnet, the NFS share with the Movies folder / DATA movie / connected to the AZ box. The NFS share movies has been set up on the PC or the NAS with the IP address 192.168.0.2 before.

After successfully entering the Mount command via Telnet, are in the file manager on the AZ box mounted the files in the folder in the film, visible.

Código:
192.168.0.2:/Movies = NFS-Freigabe
, which you have established, for example, on your PC or NAS. 192.168.0.2 with the IP of the PC or NAS is in the network and Movies is the name of the share. The two information must be adapted to each of these events.

/DATA/movie = the destination on the AZBOX. In the case of "film".

Any number of NFS mounts are performed. Each mount command must however have a different target on the AZ-BOX. Multiple NFS mounts the directory / DATA / movie are not allowed. When multiple folders to be mounted with movies, there is the possibility subfolder in the / DATA / movie to create and to mount it.

You can create a subfolder, with, for example the name of movies in which you type the following commands:

Código:
mkdir /DATA/movie/Movies
This folder must be only once did he create will be retained after a restart of the Az-Box.

The mount command would look like this:

Código:
mount -t nfs -o nolock,rsize=8192,wsize=8192 192.168.0.2:/Movies  /DATA/movie/Movies
Apart from "film" there's "music" and "Photos".
These folders can be mounted as follows:
Código:
Film = /DATA/movie 
Musik = /DATA/music 
Foto = /DATA/picture
It is not possible to mount a recording of the folder directly record to a network drive. How you can still take up to a network drive in post recording will be introduced to network drive.

However, the so prepared NFS mounts you can now set up permanent NFS-mounts via a startup script.
So, simply substitute, as to whatever you have named your folders, plus your correct NAS IP address and...

One more thing: I was trying the described manner of getting it started, so I was also using the PuTTy [Telnet] set of commands, as described.... Maybe that did it?

Dunno :( - must investigate to be able to do it again, when necessary... :p

Thanx a bunch!!!!!!!!!!!!!:regalo: