NFS tutorial - Get the Network File System running
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:
(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
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 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)
- NFS-related kernel modules for the stock kernel (2.4.20)
- 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
- 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)
|This article is currently a stub. You can help this Wiki by . This template will categorize articles that include it into Category:Stubs.|