Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

mount failed, reason given by server: Permission denied

Posted on 2000-04-09
3
Medium Priority
?
10,817 Views
Last Modified: 2011-08-18
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
0
Comment
Question by:djc2
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 40

Accepted Solution

by:
jlevie earned 400 total points
ID: 2698659
I suspect that the second export might not be actually occuring (typo in the exports file) and you can check that on the exporting system with "exportfs". It should list both exported filesystems. You probably already know, but there are some things, like logical links that can't be exported.
0
 

Author Comment

by:djc2
ID: 2700079
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
0
 
LVL 40

Expert Comment

by:jlevie
ID: 2700565
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.
0

Featured Post

Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question