Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
I have a second hard drive installed on server. It has been mounted on server but I cannot mount it on client. I've tried to export it from server by putting:
/opt2 name.domain(rw,no_root_squash)
in server's /etc/exports.
In server's /etc/fstab, I have the entry:
/dev/hdb1 /opt2 ext3 defaults 1 2
In client's /etc/fstab, I put:
name.domain:/opt2 /opt2mnt nfs defaults 0 0
When trying to mount I get:
mount: name.domain:/opt2 failed, reason given by server: Permission denied
I've also try to mount it on client manually by:
mount -t nfs name.domain:/opt2 /opt2mnt
I am also mounting server's home directory on client, without problems, so I'd say NFS works fine.
Does anybody have an idea what might cause the problem?
Thank you for your reply.
I did do exportfs -a and I did verify exports with exportfs. It shows my entry: /opt2 name.domain
I've also restarted nfs. I've rebooted server and client too, but to no avail.
Could it be that I have to change some permissions?
Here are permissions for opt2 folder on server:
drwxr-xr-x root root
The opt2 folder contains hdb1. Permissions of hdb1 are:
drwxrwxrwx root root
I don't see anything wrong with these permissions but I am far away from being a linux expert.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.