Operating System - Linux
1830239 Members
2204 Online
109999 Solutions
New Discussion

Re: how to mount a file system from one linux m/c to another linux m/c

 
yogesh kumar_2
Frequent Advisor

how to mount a file system from one linux m/c to another linux m/c

Hi,

I want to mount a file system from one linux m/c to another linux m/c.For ex:

I want to mount /res/st_gg(from linux1) to /local/dr (linux2).

I have given the following command:

#mount 192.6.8.55:/res/st_gg /local/dr

It is displaying permission denied.
4 REPLIES 4
melvyn burnard
Honored Contributor

Re: how to mount a file system from one linux m/c to another linux m/c

nothing to do with HP-UX, moved to a more appropriate forum
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Sandeep_Chaudhary
Trusted Contributor

Re: how to mount a file system from one linux m/c to another linux m/c

check status of NFS service
#service nfs status
if not running start nfs service

#service nfs start

add entry on machine A in /etc/exports see my entry
suxde900 # cat /etc/exports
/data -access=192.78.148.150,root=192.78.148.150


Run "exportfs -a"

on machine B
#mkdir /data
run mount command


#mount -F nfs machineA:/data /data
Gokul Chandola
Trusted Contributor

Re: how to mount a file system from one linux m/c to another linux m/c

Hi,
You have define there user name and password to access of the remote machine.

Regards,
Gokul Chandola
There is always some scope for improvment.
Deepak Kr
Respected Contributor

Re: how to mount a file system from one linux m/c to another linux m/c

Hi,

>>#mount 192.6.8.55:/res/st_gg /local/dr

It is displaying permission denied. <<<

MAke sure that you have nfs service running and file system in question is exported to another linux box using exportfs

Once done you will not get this error.

"There is always some scope for improvement"