Operating System - HP-UX
1819834 Members
2928 Online
109607 Solutions
New Discussion юеВ

Re: mount a cd Remotely : Permission denied

 
SOLVED
Go to solution

mount a cd Remotely : Permission denied

I'm having trouble mounting a CD on a remote host. I saw posts regarding the /etc/exports
on the source. I have an entry that looks like this on host1:
/cdrom -anon=65534, access=host2
On host2:
I try to mount the /cdrom:
mount -F nfs host1:/dev/dsk/c0t0d0 /cdrom
Permission denied
Any help would be appreciated.

Thanks,
Alex
12 REPLIES 12
Steven E. Protter
Exalted Contributor

Re: mount a cd Remotely : Permission denied

Shalom Alex,

mount -F nfs host1:/cdrom /localfolder

This will work.

NFS knows nothing about the device file on the cd-rom across the network.

mkdir /nfscd

mount -F nfs host1:/cdrom /nfscd

Should be done at this point unless there is a syntax error in your mount command.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com

Re: mount a cd Remotely : Permission denied

Thanks for the help. That was probably one of my problems. I'm still receiving the same error.
mount -F nfs host1:/cdrom /cdrom
Permission denied

Thanks,
Alex
Dennis Handly
Acclaimed Contributor

Re: mount a cd Remotely : Permission denied

>I'm still receiving the same error.
mount -F nfs host1:/cdrom /cdrom

What is /cdrom? If this is a symlink to something in /dev/, it won't work.
Notice that SEP said to use /nfscd.

Re: mount a cd Remotely : Permission denied

I'm still having the same issue with
mount -F nfs host1:/cdrom /nfscd
Permission denied
I can mount the CDrom or filesystem to any location on the filesystem. Steven used /nfscd as an example.
A. Clay Stephenson
Acclaimed Contributor

Re: mount a cd Remotely : Permission denied

There are two other possible "gotcha's": 1) After you edited /etc/exports on the remote host did you run exportfs /cdrom? 2) Umount the cdrom and see if the underlying mountpoint permissions are extremely restrictive?

I assume that you are trying to NFS mount as root.
If it ain't broke, I can fix that.
Dennis Handly
Acclaimed Contributor

Re: mount a cd Remotely : Permission denied

>I can mount the CDrom or filesystem to any location on the filesystem.

Yes, only to directories.

>Steven used /nfscd as an example.

Exactly, so you wouldn't hide the possible local CD drive.

Re: mount a cd Remotely : Permission denied

/usr/sbin/mount -F cdfs -o rr /dev/dsk/c0t0d0 /cdrom

exportfs /cdrom
exportfs error: /cdrom: Read-only file system

drwxr-xr-x 1 2840 8500 2048 Feb 2 2004 cdrom

The permissions of the /cdrom changes once I mount the device. Why would that be?
Steven E. Protter
Exalted Contributor

Re: mount a cd Remotely : Permission denied

Shalom Alex,

The cdfs mount is a read only mount.

to answer your latest question, you need to provide an example.

Lots of gotcha's as A. Clay notes. However, I provided a detailed post the first time and honestly It provided a clear solution to the nfs mount problem if followed precisely.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com

Re: mount a cd Remotely : Permission denied

Hi Steven,
I followed you instructions.
mkdir /nfscd
mount -F nfs host1:/cdrom /nfscd
Permission denied
I'm not sure what the problem is.
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: mount a cd Remotely : Permission denied

Ok, on the NFS host do this:

exportfs -u /cdrom

Modify the /etc/exports file to include the ro option

cdrom -access=host2,anon=65534,ro

exportfs /cdrom

Now on the NFS client:

mkdir /cdnfs
chmod 755 /cdnfs
mount -F nfs -o ro otherhost:/cdrom /cdnfs
If it ain't broke, I can fix that.

Re: mount a cd Remotely : Permission denied

Hey Clay,
I was missing the ro option in the exports file. THat's why I was having the issues that I was.

THanks,
Alex

Re: mount a cd Remotely : Permission denied

THanks for everyones help.