Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi, I know this has been covered before, but I havent found anything yet that fixed my problem. This is the most info I can think of to offer, im up for trying anything at this point. im trying to get two redhat 9.0 machines working together with an NFS share.
Problem is when trying to mount from the client machine i get the following error:
mount: RPC: Program not registered
-I can ping from each machine tot he other.
-Both machines have firewalls shut off.
-The server has an entry in its /etc/exports file listed as:
/mnt/ 192.168.1.103(rw)
-I use the following command on the client machine to mount:
mount 192.168.1.2:mnt \mnt\media
i have also tried:
mount -t nfs 192.168.1.2:mnt \mnt\media
-when i run service nfs start this is the output i get (on both machines):
[root@asianstation etc]# service nfs start
Starting NFS services: [ OK ]
Starting NFS quotas: [ OK ]
Starting NFS daemon: [ OK ]
Starting NFS mountd: [ OK ]
^-which shows to me that the nfs service and mountd services are running.
-portmap seems to be running, as with a ps -aux command i get (among a list of other items)(again on both machines)
Maybe you need to have the nfslock service running on the client. There's a good troubleshooting sections in the nfs-howto. Also, maybe tcpwrappers affects these services with /etc/hosts.deny and /etc/hosts.allow
I hate to say this but to save alot of work reboot both machines if you can to kill all previous attempts of the mount.
If not then stop nfs,portmap, and the network then restart in reverse.
network,portmap and nfs
Heh, I just spent the weekend banging my head over the identical problem, except that my NFS server runs RedHat 7.3. Here's how I solved it:
On your NFS server, do the following:
* comment out everything in /etc/hosts.deny and /hosts.allow, until you can get the NFS server working
* your /etc/exports file looks fine
* while as root, do:
bash# exportfs -r
bash# service nfs restart
This should get your NFS server working. Regarding the advice from the above posters: in RedHat, the 'service nfs restart' command stops and starts the nfsd, nfslock, and mountd daemons; portmap should be running as default.
Try mounting your NFS shares from your client. If it works, then you can edit your /etc/hosts.allow and /etc/hosts.deny files.
spurious: dude, I love you. Perfect. got it to mount finally. My current problem (and something I *think* I can solve on my own) is it will share out the /mnt/ directory i was aiming for, but will not show files in any directory below it. Some sort of permissions error that im looking up as we speak. If anyone knows off hand what it is, hook it up. Thanks alot to everyone!
Ok, i figured out my problem. THe drive I'm mounting to is Fat32, and apparently that wont fly with NFS due to lack of any permissions structure. Doh. Looks like im off to best buy to buy/borrow and 250 gig hdd to rebackup/format. weak. thanks again!
I only need one export for each partition that is mounted. That one export gives access to all the directories on the partition. I'm sure you don't have thousands of partitions.
That's strange; my setup is similar ie mounting a fat32 hard-disk as a NFS partition for media files (/mnt/media on the NFS client, a Knoppix/Debian workstation). However, I have no problems accessing the subdirectories.
So, you're trying to mount the /mnt directory on your NFS server... you created a separate fat32 partition for /mnt? What's the filesystem type for your / partition?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.