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.
Hey,guys,I'm really new to Linux and Fedora Core
During these days,I met a problem when configuring NFS for server and client,because my client cannnot mount /home or /media directory from my server. My exports file is like this:
/home 192.168.104.3(rw,no_root_squash,sync)
/media 192.168.104.3(rw,no_root_squash,sync)
when I try to mount my /home directory from the server like:
mount 192.168.104.1:/home /mnt/home
it will show: mount.nfs /home failed, reason given by server: Permission denied
but when I try to mount my /media directory from the server like:
mount 192.168.104.1:/media /mnt/media
it will show: mount point /mnt/media does not exist.
But my /media directory exists on my server.
Does anyone know what's going on? Do I have to change the /home directory permission or what?
Plus,I checked an article here http://nfs.sourceforge.net/nfs-howto/ar01s07.html
ther is one reason mentioned for causing permission denied,and the author said that I might also look at the file /var/lib/nfs/xtab for an unabridged list of how all the active export options are set.If they are not, then you have not re-exported properly.
But I've exported the directories from my server successfully,why does that permission problem happen again?
Welcome to Linux, sounds like permission problems to me. I got similar errors until I figured it out as permission issues and made my fstab (I auto mount them) have these parameters on the line for the NFS folder I was mounting:
The key one you need is user or users option on the line and others like exec, suid, rw etc depending on your requirements..bg is background mounting in case not there during start up...
Make sure you own/have permissions for the media directory your trying to mount to. Also make sure you have permissions on the folders your are mounting from the other system. Your exports file looks ok to me, so I think it is the permissions.
If I have nfs instead of nfs4 I get the original error message. Both PCs are using FC7.
Code:
[root@Jongi-MythTV ~]# mount -a
mount: can't get address for Jongi-MythTV
[root@Jongi-MythTV ~]# ls /mnt/shares/
[root@Jongi-MythTV ~]#
Is 10.0.0.3 even on your network??? Your first post had 192.168.104.1 for your server. Might be why it can't find it.
You should be fine with just nsf as file system type
You prolly want the earlier code for your exports:
IF you are going to write files to the directory (usually a must for all /home) you will need rw option. Sync makes sure stuff is written right away, no waiting to write files
Not sure about the fsid, would have to read up on it.
the problem got solved happily,the /media problem is because I didn't create a folder, and the reason I can't mount /home is because I didn't turn off the autofs service on the server machine. Now the nfs is working. Thank you for all the people who posted here, I appreciate so much for your help. And I hope this thread can help other newbies to Linux.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.