Link to home
Start Free TrialLog in
Avatar of Amit
AmitFlag for United States of America

asked on

Unable to mount a folder from other machine

Hi,

I have two machines

M1 and M2

M1 - Solaris 5.8
M2 - Solaris 5.9

I have to moount a folder from M1 on M2

With a root login on Machine M2 I issue the following command

mount M1:/folder1/folder2 /folder1/folder2

I get the following error
nfs mount:  M1:/folder1/folder2: permission denied

How can I resolve this ? can two different O/S may be the problem

Avatar of pshattuck
pshattuck

Ok here's a checklist to answer


1) Is NFS running on M1 .. whats the output of ps -ef | grep nfs

2) If NFS is running is the M1:/folder1/folder2 shared.  Do a dfshares command on M1 and verify if it is shared

3) If 2 is yes then what's the ouput of the dfshares command on M1 and if they are a permanent share what's the output of /etc/dfs/dfmounts and do they have any restrictions on the mounts

4) Can these systems talk to each other at all? (IE Could this be a network or firewall issue)

5) on M2 does the directory /folder1/folder2 exist? If not create it and then try to mount

That should be enough to work with. Waiting on your reply

Avatar of Amit

ASKER

I have done all the checks

1.The directory is shared
2. The directories are created
3.Both the machine can ping each other, I even modified the hosts file on both the machines

I think this might help but I don't know how to add an FQDN to      /etc/dfs/dfstab

(could someone help)

also visit http://www.brandonhutchinson.com/NFS_Permission_denied_errors.html

Thanks

FQDN would be the domain your servers are running on

If you were Ebay then your FQDN for those servers would be M12.ebay.com and M2.ebay.com


Try putting the IP address instead of the hostname when mounting the share

Ex.

instead of  mount m1:/folder1/folder2 /folder1/folder2

try

mount xxx.xxx.xxx.xxx:/folder1/folder2 /folder1/folder2

where xxx.xxx.xxx.xxx would be M1's IP address
Avatar of Amit

ASKER

I have already tried the IP address approach. I dunno what's wrong
SOLUTION
Avatar of pshattuck
pshattuck

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Have you shared M1:/folder1/folder2 yet?
ASKER CERTIFIED SOLUTION
Avatar of Hanno P.S.
Hanno P.S.
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial