Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
It is probably a very easy question, but I could not find the right answer on the net so far. What I am trying to do is to set up a network of machines running Ubuntu 11.04. On of these machines will have a folder that needs to be shared with all the other machines. Eventually, this folder should be mounted at startup on the machines that are accessing over the network.
So, what I tried to do was:
sudo mount 192.168.37.202:/home/user1/dir1 /home/user2/dir2 -o username=user1,password=password1
dir1 is the folder on machine 192.168.37.202 that should be shared. This is the response that I get:
mount.nfs: an incorrect mount option was specified
So, what am I doing wrong? Do I have to install anything special?
As I said before, eventually I want to have an automatic mount, so I guess that I have to edit /etc/fstab. What does this entry should look like?
sudo mount -t nfs 192.168.37.202:/home/user1/dir1 /home/user2/dir2
Not sure why you are using -o user name and password because if you are sharing via nfs then it should not require a password I guess unless you have done some specified settings.
Also if you want to mount using fstab then you can add up the above line as below in /etc/fstab:
Make sure you take a backup of /etc/fstab before making any changes. It is always good to take backup of important configuration files before you make any changes to it.
1. Check if nfs is allowed to pass through firewall on the destination machine (machine you are trying to contact for nfs share)
2. Check if nfs is loaded properly on the destination machine.
3. See if you have got exports configured in /etc/exports on destination machine (machine you are trying to contact for nfs share)
4. Is selinux running on this system? If yes, then let us know the output of getsebool -a | grep nfs
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.