LinuxQuestions.org
Visit Jeremy's Blog.
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 12-07-2008, 11:43 PM   #1
Dnyanraj
LQ Newbie
 
Registered: Jul 2007
Posts: 16

Rep: Reputation: 0
Unhappy NFS error


I have installed nfs-kernel-server on my ubuntu machine.
i exported a dir using exports file
sudo vim /etc/exports
/home/comp1/nfs_dir *(rw,sync,no_root_squash)

if i give exportfs command i can see the exported directory

On client side:
I created a directory in home folder called mou_nfs
i tried to mount exported dir into it using
sudo mount 192.168.1.100:/nfs_dir /home/comp2/mou_nfs
but i get error as
mount: 192.168.1.100:/nfs_dir failed, reason given by server: Permission denied

even i tried mounting using
sudo mount -t nfs 192.168.1.100:/nfs_dir /home/comp2/mou_nfs

But same error is there


can someone help me in this??
 
Old 12-08-2008, 02:08 AM   #2
hasanatizaz
Member
 
Registered: Nov 2007
Location: Pakistan
Distribution: Redhat and Debian
Posts: 302
Blog Entries: 1

Rep: Reputation: 34
what are the permissions for nfs_dir? did you try giving 777 ?
 
Old 12-08-2008, 02:39 AM   #3
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Shouldn't you use
Code:
sudo mount 192.168.1.100:/home/comp1/nfs_dir /home/comp2/mou_nfs
 
Old 12-08-2008, 03:19 AM   #4
Dnyanraj
LQ Newbie
 
Registered: Jul 2007
Posts: 16

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by billymayday View Post
Shouldn't you use
Code:
sudo mount 192.168.1.100:/home/comp1/nfs_dir /home/comp2/mou_nfs
I tried both the ways you suggested..
permission to nfs_dir is 777
& i have also tried with full path already..
 
Old 12-08-2008, 03:19 AM   #5
Dnyanraj
LQ Newbie
 
Registered: Jul 2007
Posts: 16

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by geniushasan View Post
what are the permissions for nfs_dir? did you try giving 777 ?
already tried with this..
its not working
 
Old 12-08-2008, 09:57 PM   #6
Dnyanraj
LQ Newbie
 
Registered: Jul 2007
Posts: 16

Original Poster
Rep: Reputation: 0
Smile Solved.........

Problem got solved!!!!!!!!!!!!

Just needed to install a package called 'nfsboot' on server..
 
Old 12-08-2008, 10:05 PM   #7
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Does that mean the NFS wasn't actually running?
 
Old 12-09-2008, 03:07 AM   #8
Dnyanraj
LQ Newbie
 
Registered: Jul 2007
Posts: 16

Original Poster
Rep: Reputation: 0
Smile

nfs-kernel-server was running

but, client was not allowed to connect to server..

'nfsboot' says:
Allow clients to boot over the network
This package help you to set up your host to allow clients to
boot over nfs.

This package should be installed on the server so that the clients
can connect to it. The package contains no server itself, but recommends
all packages that you will need in order to make nfsrooted clients
to work.


after installing this permission problem was solved..
 
  


Reply

Tags
nfs


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
NFS error: sometimes unable to find the files at NFS-client machines samengr Linux - Server 0 09-01-2008 12:26 PM
NFS - RPC Error ashlesha Linux - Software 2 11-13-2006 01:16 PM
NFS Error during PXE Boot from NFS server JatMan Linux - Enterprise 0 10-16-2006 06:48 PM
error in nfs suchi_s Programming 1 11-03-2004 06:39 AM
NFS error Robert0380 Linux - Networking 6 08-07-2002 08:18 PM


All times are GMT -5. The time now is 09:31 AM.

Main Menu
Advertisement
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