PDA

View Full Version : Howto mount a NFS share


LilleMama
24-11-2009, 22:48
This howto describes how to mount a NFS share with a plugin script.
It mounts the NFS shares to /DATA/movies /DATA/music etc
So you can select them via the menu of the AZbox.

Note: 192.168.x.xx = Ip of your NAS or server

Make a new folder in the OpenXCAS plugin directory on the Azbox:


cd /EMU/OpenXCAS
mkdir mount
cd mount

create a file in this folder with the name mount.sh with the following content:

#!/bin/sh
mount -t nfs 192.168.x.xx:/dir/to_your/video /DATA/movie -o nolock,soft,rsize=8192,wsize=8192
mount -t nfs 192.168.x.xx:/dir/to_your/music /DATA/music

Create a file called openxcas.conf in the same folder:

[module]
name = mount
daemon = mount.sh
version = 1.0

then chmod 755 *

in the same folder to give the files execute rights.

Go up one folder into /EMU/OpenXCAS and add a line in the module.seq file called mount (a # in front of a line means the plugin is deactivated).

Then you can select the plugin in the OpenXCAS menu called mount and start it with the OK or yellow button.

You should see the new files in the Movie and Music menu entries.


if you already have a HDD this might conflict with existing /DATA mounts and a harddisk that you might have installed, it will not corrupt anything it just wont work ,

if anyone has anyway to improve this then please feel free to comment below

Thanks to emmanneil ()

LilleMama
31-03-2010, 20:44
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 Z-Box. How does this read here.
- NFS share 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.

mount-t nfs-o nolock, rsize = 8192, wsize = 8192 "IP address of the PC": / sharename mount target

In our example, the mount command looks like this:

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.

192.168.0.2: / Movies = NFS share that 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:

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:

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:
Film = / DATA / movie
Music = / DATA / music
Photo = / 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.

gorski
15-01-2011, 21:06
- post 26 and onwards... ;)