Link to home
Start Free TrialLog in
Avatar of djc2
djc2

asked on

mount failed, reason given by server: Permission denied

I'm running linux2.2.14,
I'm trying to mount 2 different partitions on a remote host computer.
One of them I'm able to mount successfully, while the other one gives me:

mount failed, reason given by server: Permission denied

On the host computer, I list both in the /etc/exports file. And I list both in
my /etc/fstab file.

As far as I can tell things are set up identically for the two, but one fails and one works. Any ideas why the one could be failing?

Thanks,
Dave
ASKER CERTIFIED SOLUTION
Avatar of jlevie
jlevie

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of djc2
djc2

ASKER

OK, I figured it out - I wasn't familiar with exportfs. It wasn't a typo in /etc/exports. But when I typed exportfs, it listed a 3rd filesystem (one that I had listed in /etc/exports a week ago, but had since removed). When I then typed exportfs -r to synchronize, only
the 2 listed in /etc/exports were listed by exportfs. And, I was then able to mount. I have no idea why exportfs listed that stale entry, given that I had rebooted the computer several times. Nevertheless it works now ... thanks for pointing me in the right direction.
-dave
The stale entry is most likely the result of simply changing exports without "unexporting the entry". If you look at the manpage for exportfs, it says that it maintains a list of exported file systems in /var/lib/nfs/xtab.