1752341 Members
5663 Online
108787 Solutions
New Discussion юеВ

Re: mounting problem

 
Jayan Nair
Frequent Advisor

mounting problem

Hi All,
I need to mount a directory from machine A to machine B.
have exported directory in /etc/exports file in machine A, started nfs daemon and mounted in machineb.
mount machineA:/dir /dir
But getting error
Permission denied

Pls help me on this issue
11 REPLIES 11
Jayan Nair
Frequent Advisor

Re: mounting problem

on machine A
cat /etc/exports
/home -root=192.168.1.199, access=192.168.1.199
Sagar Sirdesai
Trusted Contributor

Re: mounting problem

On Server A while exporting set the anon=-2
And then try to mount it .

Sagar
Aneesh Mohan
Honored Contributor

Re: mounting problem

Hi Jayan,

Try this in /etc/exports
/home -root=192.168.1.199,rw=192.168.1.199

and then reexport it .

Thanks,
Aneesh
Jayan Nair
Frequent Advisor

Re: mounting problem

Hi Sagar/Aneesh,

Thanks.
have tried for both the suggession but same result
permission denied

Jayan
Sagar Sirdesai
Trusted Contributor

Re: mounting problem

Hi Jayan

Instead of Ip Adress please use hostname
In the /etc/exports please make entry as below
/dir -root=,access=

Sagar
Aneesh Mohan
Honored Contributor

Re: mounting problem

Hi ,

I belive it should work with even IP address.

I belive you have space between the options in exports.

1) Please double check the entry (delete ur line and paste the below line in /etc/exports)

/home -root=192.168.1.199,rw=192.168.1.199

2) showmount -e ( post the o/p)


Aneesh
Jayan Nair
Frequent Advisor

Re: mounting problem

Aneesh,

# cat /etc/exports
/home root=192.168.1.199,access=192.168.1.199
# showmount -e
no exported file systems for HBPTC081
Aneesh Mohan
Honored Contributor

Re: mounting problem

#exportfs -a

Aneesh
Jayan Nair
Frequent Advisor

Re: mounting problem

have given
exportfs -i then mounted