Difference between revisions of "NFS tutorial - Get the Network File System running"

From NAS-Central Buffalo - The Linkstation Wiki
Jump to: navigation, search
(LS2 (mips))
Line 55: Line 55:
 
If we get the 2.6-Kernel running on the Terastation then we have Kernel-NFS there as well
 
If we get the 2.6-Kernel running on the Terastation then we have Kernel-NFS there as well
 
[[User:Mindbender|Mindbender]] 20:17, 10 July 2006 (EDT)
 
[[User:Mindbender|Mindbender]] 20:17, 10 July 2006 (EDT)
 +
 +
=== See Also ===
 +
 +
* http://forum.linkstationwiki.net/index.php?action=vthread&forum=7&topic=840
  
 
==LS2 (mips)==
 
==LS2 (mips)==
Line 61: Line 65:
 
# NFS-related kernel modules for the stock kernel (2.4.20)
 
# NFS-related kernel modules for the stock kernel (2.4.20)
  
http://homepages.enterprise.net/jnm/buffalo/nfs.html
+
=== See Also ===
  
http://www.voicenet.com/~jceklosk/linkstation-2.html
+
* Instructions for installing an NFS Server on the LS2: http://homepages.enterprise.net/jnm/buffalo/nfs.html
 +
* Where to download the required NFS binaries for the above description: http://www.voicenet.com/~jceklosk/linkstation-2.html
 +
* Final touch for the above installation: http://forum.linkstationwiki.net/index.php?action=vthread&forum=3&topic=1376 which is:
 +
chown root:root /etc/init.d/nfs
 +
chmod 0755 /etc/init.d/nfs
 +
/etc/init.d/nfs start
  
http://www.herz.in/projekte/linkstation_en.html
+
* An alternative NFS installation description, using a [[Debian]] package for a start: http://www.herz.in/projekte/linkstation_en.html
 +
* How to configure NFS for dbox & dreambox: http://wiki.tuxbox.org/NAS:Buffalo_Linkstation_II#NFS_Server_konfigurieren (German)
  
*@dbox & dreambox guys:
 
here is a good example for how to configure NFS
 
http://wiki.tuxbox.org/NAS:Buffalo_Linkstation_II#NFS_Server_konfigurieren
 
  
http://forum.linkstationwiki.net/index.php?action=vthread&forum=7&topic=840
 
  
 
{{Stubs}}
 
{{Stubs}}

Revision as of 13:42, 30 August 2006

Introduction

NFS is a Network File System which is commonly used in the Unix/Linux world to allow remote access to a file system. It is rather unheared of in the Windows world, where SMB is the standard (and Samba is used on Unix/Linux to provide SMB service).

NFS is a good choice when remotely accessing files with another Linux/Unix system. Also, particular for the LinkStation NFS overcomes some limitations Apple OS X users have with the LinkStation Samba (not surprising, since OS X is a Unix at heart). Further, NFS on LinkStations is very popular among the DBox2 users (the DBox2 is a set-top box for pay-TV in Germany which can be hacked to record received media streams to e.g. a LinkStaion via NFS).

Currently Kernel-NFS is possible on the LS1, LS HG with 2.6-kernel and on the LS2 with the kernel-modules of the stock kernel.

LS1, LS HG (ppc)

Requirements: 2.6-Kernel over andre's webinstaller (kernel modules are included)

Download and untar the package

 cd / 
 wget http://www.unet.univie.ac.at/~a0025690/ppc-openlink-2.6-kernel-NFS-V1.tar.gz 
 tar -xvzf ppc-openlink-2.6-kernel-NFS-V1.tar.gz 
  • modify /etc/exports to your needs
  • start the NFS-kernel server by:
 /etc/init.d/start_nfsd.sh 

(this is a custom startscript...it is not that good developed...it can just start at the moment...but it works)

  • to check if the server is really running execute:
 rpcinfo -p 127.0.0.1

if this is working then try rpcinfo -p from a remote workstation (running linux or windows with the "services for unix" installed....only then rpcinfo will b available). there is an entry in /etc/hosts.deny ( portmap: ALL ) that prevents this....

so as long as you do not delete the portmap: ALL entry in /etc/hosts.deny, you have to explicit allow some hosts.

add to hosts.allow

 portmap: <host>

if it also works from a different machine then your NFS-Server is running. the only problem should be configuration now.


TIPS: if you edit /etc/exports while the NFS-Server is running, update the nfs-shares by:

 exportfs -a 

(exportfs only shows the current exports..)

if you need to stop NFS:

 /etc/init.d/nfs-kernel-server stop 
 /etc/init.d/portmap stop 

and restart them again by

 /etc/init.d/portmap start 
 /etc/init.d/nfs-kernel-server start 

to make this start after reboot

 ln -s /etc/init.d/start_nfsd.sh /etc/rc.d/rc2.d/S60start_nfsd.sh


If we get the 2.6-Kernel running on the Terastation then we have Kernel-NFS there as well Mindbender 20:17, 10 July 2006 (EDT)

See Also

LS2 (mips)

Requirements:

  1. NFS-related kernel modules for the stock kernel (2.4.20)

See Also

chown root:root /etc/init.d/nfs
chmod 0755 /etc/init.d/nfs
/etc/init.d/nfs start


Link.png This article is currently a stub. You can help this Wiki by expanding it

. This template will categorize articles that include it into Category:Stubs.