?
Solved

how to enable NFS in red hat linux?

Posted on 2003-03-10
6
Medium Priority
?
551 Views
Last Modified: 2010-03-18
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.
0
Comment
Question by:sumsam
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 

Expert Comment

by:cspangen
ID: 8106490
on the computer you what to share a directory.
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_import local_directory_to_import_to rsize=8192,wsize=8192,timeo=14,intr

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
0
 

Author Comment

by:sumsam
ID: 8109148
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?
0
 

Accepted Solution

by:
flashtek earned 80 total points
ID: 8525658
as root run the following command

service nfs status

This will tell you if the nfs service is running...

port 111 is the portmapper daemon (this IS needed for NFS to operate properly)

HTH
0
 

Expert Comment

by:CleanupPing
ID: 9077696
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.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question