Tema: nfs
Ver Mensaje Individual
Antiguo 13/09/2004, 18:31   #8
basilia
Usuario Activo
 
Avatar de basilia
 
Fecha de ingreso: 06/may/2004
Mensajes: 466
basilia está en el buen camino
A mi me ha funcionado siguiendo estos pasos, ya no recuerdoi de donde lo baje:


This tutorial is a step by step guide for the DreamBox 5620 user on how to setup nfs mounting and move plugins to the NFS mounted directory. Moving plugins to a NFS share frees up the limited available space on your dreambox.


You need to download TrueGridNFS which is found on dreambox download page.
tgpnfs10.zip (218 KB)

Setup NFS
1. Download the TrueGrid NFS server.
2. Create an etc directory on your pc.

C:\WINDOWS\etc
3. Create a directory on your pc for the nfs share.

C:\dreambox
Also create the following sub directories:
C:\dreambox\hdd
C:\dreambox\hdd\movies
4. Create a directory and extract NFS server (tgpnfs.zip) files on your pc. Eg:

C:\TrueGridNFS
5. Copy two files, rpc and exports, to the etc directory that you created in step 2.
6. Edit the exports file. Add a line at the end of the file to point to the nfs directory you created in step 3. It should look like this:

/dreambox -path=c:\dreambox
7. Save the file. (Make sure the last line of the exports file is a blank line.)
8. Open a command line prompt and go to the directory containing the extracted NFS files.

cd c:\TrueGridNFS
9. The following commands register and setup the portmap and nfs services:

portmap add
nfs add
10. Start the services.

nfs start
11. Check that the services are setup correctly.
a. To show what is available to share:

Showmount -e

TrueGrid SHOWMOUNT UTILITY.

COPYRIGHT (C) BY XYZ SCIENTIFIC APPLICATIONS, INC., 1998
ALL RIGHTS RESERVED. TrueGrid IS A TRADEMARK OF
XYZ SCIENTIFIC APPLICATIONS, INC.

/dreambox (everyone)

b. To show port mapping:

rpcinfo -p

COPYRIGHT BY XYZ SCIENTIFIC APPLICATIONS, INC., 1998
ALL RIGHTS RESERVED. TrueGrid IS A TRADEMARK OF
XYZ SCIENTIFIC APPLICATIONS, INC.

program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100005 1 udp 714 mountd
100005 1 tcp 717 mountd
100003 2 udp 2049 nfs
Mount NFS


----- metodo para hacerlo a mano con telnet--------

A. Command Line Method
1. Open a telnet session and connect to the dreambox
2. Mount command:

mount –t nfs –o rw,nolock 192.168.0.2:/dreambox /mnt

dreambox = nfs share on pc
mnt = db mount directory
192.168.0.2 = pc ip address

---------- esto otro para que te lo cargue de nuevo al arrancar si lo has echo a mano, si lo haces por menu y marcas automount ya lo tienes: -------------------------------------------------------------------

En el fichero /var/etc/init pega esto:

#!/bin/sh

# lo primero iniciar el interfaz ethernet
# (de otra forma enigma lo inicializará, pero demasiado tarde)
ifconfig eth0 192.168.0.200 netmask 255.255.255.0 mtu 1400 up
sleep 5

# montar NFS sobre /hdd
mount -t nfs -o wsize=4096,rsize=4096,nolock 192.168.0.2:/dreambox /hdd
sleep 5

# ** asegurarse que el directorio movie existe
mkdir /hdd/movie



# 192.168.0.200 ==> Dirección IP de la DreamBox
# 192.168.0.2 ==> Dirección IP del PC donde esté ejecutandose el servidor NFS

Saludos,


Necesitas tener corriendo en el pc un software de servidor NFS que te permita exportar un directorio que luego montarás en la dreambox tal y como te explicó paco50.

Prueba con el TrueGrid NFS que lo puedes descargar de cualquier página de software y utilidades para dreambox.



-------metodo para hacerlo con los menus de la imagen------


B. Mount Plugin with Automount Option
1. On the dreambox navigate to communications setup.

Setup>Expert Setup>Communications Setup
2. If you have the latest Hydra image (eg hydra56xx_sateez_2304) you can press the blue button to open mounts setup. Not all images provide this option.
3. Enter your mount info:

IP: 192.168.0.2 ......................: your pc ip
Dir: dreambox .......................: your nfs share directory
LocalDir: /mnt ........................: your db directory
Options: rw
Extra: nolock,rsize=8192,wsize=8192
4. Put an X in the Automount box. Your mount will be automatically re-established each time you restart the dreambox.
5. Select Mount.

6. If your mount was successful be sure to SAVE your mount settings.
Troubleshooting.
• Check that your nfs services are running properly and the mount is available to share.
• Attempt a mount via a telnet session using the command line method

Mount Plugins

Once the NFS mount is established by following the steps above you can move your plugins to the pc freeing up space on the db. To do this:
1. Telnet into the dreambox
2. Go to your mount directory.

cd /mnt
3. If you have created the mount successfully you should see the contents of the mounted pc directory. Here I see the hdd directory that I created when I setup my nfs server. (Setup NFS-step 3: see above).
4. Create a new plugins directory.

mkdir /mnt/hdd/plugins
5. Copy the contents of the plugins directory to the new mounted plugins directory

cp /var/tuxbox/plugins/* /mnt/hdd/plugins
6. Verify the contents have copied correctly
7. Delete the old plugins diectory

rm -r /var/tuxbox/plugins
8. Navigate to the directory from where the old plugins directory was removed

cd /var/tuxbox
9. Create a symlink to the new plugins directory

ln -sf /mnt/hdd/plugins
10. Test a plugin.

Have Fun!
sateez

Última edición por basilia; 13/09/2004 a las 19:21.
basilia está desconectado
Respuesta rápida a este mensaje
Responder Citando Subir