Operating System - HP-UX
1837270 Members
2999 Online
110115 Solutions
New Discussion

Permission denied. Mounting a remote /cdrom

 
Rob Wallner
Advisor

Permission denied. Mounting a remote /cdrom

I am trying to mount a cdrom on another server. I have done this hundreds of times without fail Now i am getting an error permmision denied.

Server number 1 (With the CDROM)
/etc/exports
/cdrom -anon=65534,ro,root=msc00

when I do a export /cdrom
sh: /cdrom: This is not an identifier.
export cdrom seems to work.

But when I go to server 2 to and do a
root@msc00-> mount -F nfs server1:/cdrom /cdrom
I get Permission denied
I am not sure what is happening.
6 REPLIES 6
A. Clay Stephenson
Acclaimed Contributor

Re: Permission denied. Mounting a remote /cdrom

You are confusing the "exportfs" command with the shell built-in "export".

"export cdrom" says export the variable "cdrom" so that it is available to all child processes.
If it ain't broke, I can fix that.
spex
Honored Contributor

Re: Permission denied. Mounting a remote /cdrom

Hi,

To make the export permanent, add a line to /etc/exports, and run 'exportfs -a'.

PCS
James R. Ferguson
Acclaimed Contributor

Re: Permission denied. Mounting a remote /cdrom

HI:

The ommand 'export' is a shell command to export a variable into your environment.

The message "...is not an identifier" when you specify "/cdrom" is because a valid identified can't begin with a slash. When you dropped the slash and did "export cdrom" you did'nt get any error simply because the command *was* valid. You exported an empty variable named "cdrom" into your shell environment!

Regards!

...JRF...
Dave Olker
Neighborhood Moderator

Re: Permission denied. Mounting a remote /cdrom

Hi Rob,

To be certain the filesystem is exported correctly I'd recommend the following:

On the server: cat /etc/xtab
On the client: showmount -e

The /etc/xtab file contains a copy of what the server's kernel believes are the exported filesystems, regardless of what is in the /etc/exports file or what exportfs command was issued.

The showmount -e command on the client will not only verify that the server has exported filesystems but that the client is able to communicate with the server's rpc.mountd daemon to get the list of exported filesystems remotely.

If both of these commands show the /cdrom filesystem is exported properly and the mount is still not working then I can give you a set of steps to collect more data to identify the underlying problem.

Regards,

Dave


I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
Rob Wallner
Advisor

Re: Permission denied. Mounting a remote /cdrom

Thanks for catching my typo! I was going nuts!!!!
Siju Vadakkan
Trusted Contributor

Re: Permission denied. Mounting a remote /cdrom

Hi,

Remove the /cdrom directory on client and recreate and mount it again.It will work