Solved

mount failed, reason given by server: Permission denied

Posted on 2000-04-09
3
10,813 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 100 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses

623 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