Operating System - HP-UX
1833875 Members
1981 Online
110063 Solutions
New Discussion

Re: Permission denied - trying to mount a directory from another machine

 
SteveE
New Member

Permission denied - trying to mount a directory from another machine

try to mount a directory from another machine but get message :

Permission denied

mount hostmachine:/home/userB/ADir /data/userA/ADir

7 REPLIES 7
RAC_1
Honored Contributor

Re: Permission denied - trying to mount a directory from another machine

You may not be allowed to mount it.
Did you check if you have access to mount it.

particulary, -access options.

showmount -e "nfs_server" will show it.
There is no substitute to HARDWORK
SteveE
New Member

Re: Permission denied - trying to mount a directory from another machine

Okay. I see. So I did showmount for the hostmachine and see the directories that it lists

showmount -e hostmachine
export list for hostmachine :
/data1 *
/data2 *

So I tried to mount one of these directories.

mount hostmachine:/data1 /data/userA/ADir

But now I get message :

nfs mount: mount_nfs: mount: /data/userA/ADir: Device busy

???

What does this mean? How can I resolve it?

Thank you,
Yogeeraj_1
Honored Contributor

Re: Permission denied - trying to mount a directory from another machine

hi,

is the other machine also running hp-ux or windows?

regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
SteveE
New Member

Re: Permission denied - trying to mount a directory from another machine

Linux
V. Nyga
Honored Contributor

Re: Permission denied - trying to mount a directory from another machine

Hi,

seems like there's already a process running with files of this directory /data/userA/ADir.

Try a new created directory and mount the directory of the other machine there.

HTH
Volkmar
*** Say 'Thanks' with Kudos ***
SteveE
New Member

Re: Permission denied - trying to mount a directory from another machine

I made a link

ln -s /net/hostmachine/home/userB/ADir ADir

supposedly HP-UX has an automounter functionality so with this link, this directory is auto mounted at ADir.

This works.

Thanks for all the replies!

Indrajit_1
Valued Contributor

Re: Permission denied - trying to mount a directory from another machine

Hi,

i think NFS server is running on Linux machine. if it is running on Linux machine, type the following command in Linux machine..

# vi /etc/exports
/data1 (rw,root_no_squash, async)

save and come out.

#service nfs restart

now from client machine(hp unix) you should able to mount the directory.. for example

#mount :/data1 /dump ..

Regards
Indrajit
Never Ever Give Up