There is a good tutorial on NFS at www.mandrakeuser.org

On Saturday 17 November 2001 06:38, Brian Parish wrote:
> Can anyone help me with NFS?  I understand that NFS shares are created
> using /etc/export, but what do I put in there?
>
The /etc/exports publishes a list of folders available to be mounted by other 
computers. This is an extract from mine.

/home/abi 192.168.1.0/255.255.255.0(rw)  #  Abi Home
/mnt/windows 192.168.1.0/255.255.255.0(rw)      # windows partition

After changing the exports file type 'export -ra'   to update the advertised 
exports.


> Control Center then allows me to do NFS mounts - prompts for Server and
> shared resource.  I presume that server is just the host name associated
> with an IP address and shared resource is whatever I put in /etc/exports???
>
?? Not sure what you are referring to. You do not need control centre to 
mount shares.


To mount a share on a remote computer the best thing to do is to have it 
listed in your /etc/fstab file. Here is an extract from mine:-

VAIO:/home/rosie /mnt/rosievaio nfs 
user,rw,soft,noauto,intr,rsize=8192,wsize=8192 0 0
Andy:/home/andy /mnt/andySIS nfs 
user,rw,soft,noauto,intr,rsize=8192,wsize=8192 0 0

Here Andy and VAIO are remote computers (Listed in my /etc/hosts table), the 
block size of 8192 makes for faster file transfer (the default is 4096), The 
'soft' parameter means that if 1 computer is switched off the share will 
become unmounted.  A 'hard' share will keep trying to remount the share ad 
infinitum. This is a pain because it will 'hang' during shut down if the 
remote computer is not switched on to gracefully unmount the share.
No auto means it will not automatically mount at boot. 'auto' will make it 
mount at boot.


I can mount these shares easily with 'mount /mnt/rosievaio'  for example.

Kwikdisk is handy because then you can mount a remote file share by clicking 
on an icon in the system tray.

Be warned NFS is not very secure. Avoid using it on lans exposed to the 
internet, and at the very least insert all hosts which may use NFS in 
/etc/hosts.allow, and all IP ranges on the same seg who are not permitted 
into /etc/hosts.deny

To use NFS you must have portmapper, the nfs daemon, and the nfslock daemon 
running. Refer to the howto in mandrakeuser.  (Obviously the remote computer 
must be running them too)

Derek


> Any help much appreciated!

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to