LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 06-30-2009, 02:26 PM   #1
mayam
LQ Newbie
 
Registered: Jun 2009
Posts: 2

Rep: Reputation: 0
second hard disk will not mount on client


Hi!

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?

Thanks.
 
Old 06-30-2009, 02:51 PM   #2
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,024
Blog Entries: 5

Rep: Reputation: 789Reputation: 789Reputation: 789Reputation: 789Reputation: 789Reputation: 789Reputation: 789
Did you run "exportfs -a" after editing /etc/exports on the server?

Have you run "exportfs" to verify it shows as exported?
 
Old 06-30-2009, 03:13 PM   #3
mayam
LQ Newbie
 
Registered: Jun 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Hi jlightner,

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.
 
  


Reply

Tags
drive, hard, mount, nfs, second


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Mount the Hard disk which NTFS sunilerp Linux - Hardware 3 01-05-2008 09:22 PM
How to mount the Hard disk ariestruong Linux - Newbie 9 03-25-2006 01:11 AM
Where to mount temporary hard disk frazelle09 Linux - Hardware 2 09-03-2005 05:55 PM
Trying to mount a second hard disk clucas Linux - Newbie 8 11-11-2004 09:53 PM
How to mount a New Hard Disk ! ? bennethos Linux - Newbie 6 10-16-2003 05:09 AM


All times are GMT -5. The time now is 12:31 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration