About nixCraft

Topics

Ubuntu Linux NFS Client Configuration to mount nfs share

Posted by Vivek Gite [Last updated: December 18, 2007]

Since I am not networking professional I was nervous about using nfs share. Desperately I wanted to access my files over network using Ubuntu NFS. Our IT folks not working today due to weekend holiday.

Ubuntu NFS

After searching net, I discover that you need two packages to mount nfs share under Ubuntu Linux.

So, I did Install necessary support for nfs client side i.e. portmap and nfs-common package. Type following command to install packages:
sudo apt-get install portmap nfs-common

Now mount server.mydomain.com:/network/officedocs to /home/me/myfiles
cd
mkdir myfiles
sudo mount server.mydomain.com:/network/officesdocs /home/me/myfiles

Note you may need to restart above services:
sudo /etc/init.d/portmap restart
sudo /etc/init.d/nfs-common restart

How do I access my files using NFS?

Just go to mount point i.e. myfiles with cd command:
cd myfiles
ls
gedit file.c

May be next time I will get my hands dirty with NFS server ;)

Recourses

Following recourses helped me to configure NFS :)

This is a user contributed article.

Tell us how we're doing: Please answer a few questions about your experience to help us improve nixCraft.

You may also be interested in other helpful articles:

Discussion on This Article:

  1. Someone Else Says:

    Thanks. You made it really simple for me. I am new to Ubuntu and hoping to get away from Microsoft, so long as help is around. Thanks!

  2. Ryan Says:

    I get permission denied when changing to the nounted directory, yet it works fine as root?

  3. nixcraft Says:

    This is a permission problem. Setup a correct permission using chmod command on exported directory. Or map user id using map_static option.

  4. Jeffala Says:

    Thanks for sharing. SuSE has a gui wizard to handle NFS client and server config. I thought I was going to have give up some features.

    Thanks again.

  5. shanmugam Says:

    hi
    I need of the linux advance server and trubleshooting book in pdf format ver urgent.please send me in my mail id is shanmugam.jayapal@gmail.com

Leave a Reply

We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Tags: , , , , , , , , ,

Copyright © 2004-2008 nixCraft. All rights reserved - TOS/Disclaimer - Privacy policy - Sitemap - Powered by Open source software.