sumsam
asked on
how to enable NFS in red hat linux?
i have two computers at my home running red hat 7.2 on both of them. they are interconnected and pingign each other successfully(ip addresses are 10.0.0.1 and 10.0.0.2). what should i do to configure nfs on one computer and make it accessable on the other.
ASKER
thanks cspangen but how can i see whether my nfsd server is running or not.
and one more thing....
if i run "rpcinfo -p" the result comes like this...
programs vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
does it have anything to do with my nfs?
and one more thing....
if i run "rpcinfo -p" the result comes like this...
programs vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
does it have anything to do with my nfs?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
sumsam:
This old question needs to be finalized -- accept an answer, split points, or get a refund. For information on your options, please click here-> http:/help/closing.jsp#1
EXPERTS:
Post your closing recommendations! No comment means you don't care.
This old question needs to be finalized -- accept an answer, split points, or get a refund. For information on your options, please click here-> http:/help/closing.jsp#1
EXPERTS:
Post your closing recommendations! No comment means you don't care.
edit /etc/fstab and add
CGJung:/media/cdrom /nfscdrom nfs
rsize=8192, wsize=8192, timeo=14,intr
This imports the CGJung:/media/cdrom directory as /nfscdrom on the local host. The CGJung is my computer host name. Yours would be 10.0.0.1 or 10.0.0.2
so you would do
10.0.0.1:directory_to_impo
On the computer you want to export the/media/cdrom directory. /media/cdrom
Edit the /etc/exports
and add a line to export the directory.
add the following line.
/media/cdrom voyager (ro insecure)
The directory to export is /media/cdrom
voyager is computer that is allowed to import the directory.
make sure that the nfsd server is running.
This will automatically try and mount the directory on boot. If you do not what it to auto mount the directory add noauto on the line in the fstab file that imports the file after the file system type nfs.
Carl
Carl