1829591 Members
8526 Online
109992 Solutions
New Discussion

mounting NFS remotely

 
SOLVED
Go to solution
Francis Ancheta
Frequent Advisor

mounting NFS remotely

Basically I know I need to run NFS service on my servers.

Does each server have an automatic share like microsoft c$ etc ... or do I have to share manually. How do I do this?

What is the equivalent of net view on Linux? How will I view the devices that are shared on a Linux box.

I am successfull in mounting and unmounting drives using samba but I would like to make use of NFS for my Linux box's.
6 REPLIES 6
Claudio Cilloni
Honored Contributor
Solution

Re: mounting NFS remotely

on the server, i got to edit the file /etc/exports where you specify the directories
you want to share. this is my /etc/exports:

/public nettuno(ro,all_squash)
/public mercurio(rw,all_squash)
/mnt/cdrom dbsermm(ro,all_squash)

about the first line:
/public: is the directory i want to share,
nettuno: is the remote machine name that has
access to that directory,
ro: means 'read-only'
all_squash: actually I don't remember ... ;-P

on the remote machine (nettuno) I launch this
command to mount the exported directory:

# mount -t nfs 192.168.1.10:/public /mnt/public

that's all.
remember to restart the nfs service on the server machine (in this example 192.168.1.10) every time you edit /etc/exports:

# service nfs restart

more detailed information are in man pages:

man exports
man nfs
man mount

and in linux HOWTOs (www.tldp.org)

ciao
Claudio
Claudio Cilloni
Honored Contributor

Re: mounting NFS remotely

Concerning the other questions...
there aren't automatic share, you got to set them manually.
net view? I never heard something about something like that in NFS. Maybe other forum's friends can give us a word like 'absolutely no' or a 'yes sure!'...

Claudio
Francis Ancheta
Frequent Advisor

Re: mounting NFS remotely

This is a microsoft command to view the shares of a computer or a server. I am currently using smbclient but if smb services are not running it won't work.

I was wondering of NFS service has a similar way to check what are the shares available on an NFS server or if NFS is running on a particular server/workstation.

Thanks for the first answer I got it working. I didnt realize it was so easy.
U.SivaKumar_2
Honored Contributor

Re: mounting NFS remotely

Hi,

yes there is a command to show the services.

#rpcinfo -p

To show the exported nfs filesystems in a remote server

#showmount

regards,

U.SivaKumar
Innovations are made when conventions are broken
Caesar_3
Esteemed Contributor

Re: mounting NFS remotely

Hello!

For give an option to other mount your
directorys you must export them.
You can edit the /etc/exports file
or manualy use the exportfs command.

To see what computer on the network exports
you can use the showmount command.

If you want to work with windows systems you
will need the samba to share files with win.

Caesar
Stuart Browne
Honored Contributor

Re: mounting NFS remotely

pcinfo isn't a command i've seen on a Linux box recently (it's not on my HR boxes here either).

showmount is a fun tool, but you'll probably want 'showmount --exports ' to show the exported directories, and the machine's they're allowed to be mounetd from.

The man page for 'showmount' is very informative.
One long-haired git at your service...