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.
Featured Articles:
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- 10 Greatest Open Source Software Of 2009
- My 10 UNIX Command Line Mistakes
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- Top 20 OpenSSH Server Best Security Practices
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Linux Video Editor Software
- Email this to a friend
- Download PDF version
- Printable version
- Comment RSS feed
- Last Updated: Dec/18/2007



{ 11 comments… read them below or add one }
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!
I get permission denied when changing to the nounted directory, yet it works fine as root?
This is a permission problem. Setup a correct permission using chmod command on exported directory. Or map user id using map_static option.
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.
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
thx, dude, u saved my day.
- :)
Hi,
Installing nfs-common didn’t work for me. Instead i installed the
sudo apt-get install portmap nfs-kernel-serverThat did it for me!!
Grtz
Too complicated. All problems with different ports, processes, firewall, SELinux, etc is just too much. Compared to SSH, I cant help wondering why NFS isn’t more easy to install and use. Think fileserver functionality should have been easier that opening programs remote!? Sorry folks…
might want to include some info on /etc/fstab here too.
Oh thanxs very much u save my money and of course my time…
Thanks! This tutorial saved me so much time and effort!