NFS tutorial - Get the Network File System running

From NAS-Central Buffalo - The Linkstation Wiki
Revision as of 13:49, 30 August 2006 by (Talk) (See Also)

Jump to: navigation, search


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 / 
 tar -xvzf ppc-openlink-2.6-kernel-NFS-V1.tar.gz 
  • modify /etc/exports to your needs
  • start the NFS-kernel server by:

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

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

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/ /etc/rc.d/rc2.d/

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)


  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.