Linux Server SetupNFS requires RPC to operate. The following daemons are run when the linuxconf nfs service is started:
Server Configuration
This is an example of an exports file for general use: /data/installs jimslinux(rw,no_root_squash) /data/docs *.mycompany.com(ro,root_squash) /data markslinux(rw,no_root_squash) tomscomputer(ro) /tftpboot linux3(ro,no_root_squash) /data tedslinux(ro,no_root_squash) |
The third line allows markslinux to have full access even at the root level
to all files in /data, but tomscomputer has read only access, at the world
(other) level.
This is an example of an exports file set up for diskless computers with remote
booting:
/tftpboot/lts/ltsroot 10.1.0.101/255.255.0.0(ro,no_root_squash) /tftpboot/lts/ltsroot 10.1.200.1/255.255.0.0(ro,no_root_squash) /tftpboot/lts/ltsroot 10.1.200.2/255.255.0.0(ro,no_root_squash) /tftpboot/lts/linux3 10.1.200.2/255/255.0.0(rw,no_root_squash)
The format of the file is:
directoryname hostname(options)
The hostname can be the IP address followed by the netmask as shown above.
Options include:
There are many more options documented in the exports(5) man page.
To do the mount on the remote machine:
Client Setup
To set up the client side on a fully functional Linux machine type "mount -o
rsize=1024,wsize=1024 mymachine:/data /mnt/mymachine/data
|About Linux || Linux Command || User Creation Command || file Permission || File System || Ttips and Tricks ||
|| Lan Setup || NFS Server || DNS Server|| Samba Server || TelNet || FTP Server
Copyright © 2000 - 2005 sourabhvikas. All rights reserved Worldwide. |
Feedback || Disclaimer || Privacy Policy |