Solved

mount failed, reason given by server: Permission denied

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

The purpose of this article is to demonstrate how we can use conditional statements using Python.
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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…

746 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now