PDA

View Full Version : NFS mounting how is it really done?


bruno
01-24-2002, 04:01 PM
This is my issue. I cannot find any good explaination as to how to NFS mount from MacOSX (in Terminal) to a redhat box.

command line attempt:
sudo mount -t nfs sylvester:/www /Users/bruno/slyMount
(yes, sylvester is in my hosts file. yes, slyMount does exist.)

I get the error "NFS Portmap: PRC: Program not registered"

Finder (cmd-K) attempt:
smb://sylvester/www

Finder hangs (10min. spinning rainbow) until I force quit the Finder.

I have this line in the "/etc/exports" on the redhat box:
/www 10.10.10.101(rw,all_squash,anonuid=500,anongid=500)
(yes, 10.10.10.101 is my Mac's IP. yes, 500:500 is a valid user with access to the "/www" directory.)

so I don't know if anyone has ever had success, but I have not. I've tried this on 4 other OSX Machines with the same results.

mervTormel
01-24-2002, 04:40 PM
there's a wealth of info from google.com about this very error:

http://www.google.com/search?q=NFS+Portmap%3A+PRC%3A+Program+not+registered


let us know your results.

-mt

wzpgsr
01-26-2002, 12:24 AM
Make an entry in your Linux box's /etc/exports file like this:
/www 192.168.1.20(rw,insecure)
where 192.168.1.20 is the IP address of your OS X machine. As root, enter this command:
exportfs -rv
which will re-export your exports.
Now run this on your OS X machine:
showmount -e sylvester
If you have valid exports available on your Linux box this command will list them.

If you can see the export we created above, run this on your OS X machine:
mount_nfs sylvester:/www /Users/bruno/slyMount
Or from cmd-k:
nfs://sylvester/www
If you didn't install NFS by default on your Redhat system you may have to bang some stuff around in order to get it working properly. It took me awhile to get things going, but they are running smoothly now.

n9
01-27-2002, 12:11 AM
That is the error message that I have seen when I wasn't running portmapper. It is a service under /etc/rc.d

bruno
01-28-2002, 09:43 AM
It turns out that I didn't have portmapper running. I downloaded NFSManager, which helped out alot. I've been successful at mounting NFS via that app only. Command Line always locks up. And, cmd-K find no services.

I also have a problem where Finder won't move, delete, etc. any files because it thinks that I don't have permission. but I'm using
(rw,all_squash, anonuid=500,anongid=500)
500:500 begin the (recursive) owner:group of my apache document root. So, from the cmd-line I can totally manipulate anything there-in. But finder gets all humble and doesn't even try. Any ideas? (I haven't yet tried that insecure idea) I won't be in the office today.