1848212 Members
8590 Online
104022 Solutions
New Discussion

Re: Remote Mount CD-ROM

 
SOLVED
Go to solution
Doug Moloney
Occasional Advisor

Remote Mount CD-ROM

HP-UX 11.0, Both boxes.

How do I remote mount a cdrom from one box to another? Do I have to use pfs_mount and if so what commands and files need editing on both of the boxes. I founds some references and have attempted with pfs_mount, but currently getting an access denied. I can see the cdrom on the remote machine, but get a access denied when I try to mount on local machine.

So far.
Local Machine
/etc/pfstab is set up for access to its own cd
and is able to mount if there was a cd in place. Both with mount and pfs_mount. Is there something special I need in /etc/pfs_tab that will indicate the cd is a remotely mounted cd? Does /etc/pfs_exports play a role in this and should I execute the pfs_export command. What should be in this file?

Remote Machine
/etc/pfstab is set up for access to its own cd and is able to mount is cdrom using both mount and pfs_mount. And is currently mounted with pfs_mount, all the file names are in upper case and I am not sure if this will be a problem. Does /etc/pfs_exports play a role in this and should I execute the pfs_export command. What should be in this file?

15 REPLIES 15
James R. Ferguson
Acclaimed Contributor

Re: Remote Mount CD-ROM

Hi Doug:

From Technical Knowledge Base document #A5486201:

A. Perform these steps on the local system:

1. nohup /usr/sbin/pfs_mountd &

2. nohup /usr/sbin/pfsd &

3. Add the filesystem to /etc/pfs_fstab

4. Add the filesystem to /etc/pfs_exports

5. pfs_exportfs -a

6. pfs_mount /cdrom

B. Perform these steps on the remote system:

1. nohup /usr/sbin/pfs_mountd &

2. nohup /usr/sbin/pfsd &

3. pfs_mount -o xlat=unix remotesystemA:/cdrom /localmnt_pnt

Regards!

...JRF...
Sanjay_6
Honored Contributor

Re: Remote Mount CD-ROM

Hi Doug,

To remote mount a CD-ROM, mount the CDrom on the remote system first.

mount -r /dev/dsk/CD_DEVICE_FILE /cdrom

Export the /cdrom directory

exportfs /cdrom

On the local system, mount the exported directory.

mount -r remote_system:/cdrom /local_mount_point

Remeber your remote system should be configured as NFS Server and the local system should be configured as NFS client. If you are doing it the other way round, i.e. mounting a cdrom from local server to the remote server, substitute remote in place of local in the above example and vice versa.

hope this helps.

thanks
Doug Moloney
Occasional Advisor

Re: Remote Mount CD-ROM

Both methods are giving me an access denied or permission denied error!
Chris Fadrowski
Super Advisor

Re: Remote Mount CD-ROM

are you trying to install software from a CD from one box to another? if so, just do

swinstall -s :/cdrom

Deshpande Prashant
Honored Contributor

Re: Remote Mount CD-ROM

Hi
Try #mount -o ro :/SD_CDROM /SD_CDROM to mount remote CD.

Thanks.
Prashant.
Take it as it comes.
Doug Moloney
Occasional Advisor

Re: Remote Mount CD-ROM

Software is not being installed so swinstall can not be used. All methods thus far still give me an access denied or permission denied error.
zhoufeilong
Occasional Advisor

Re: Remote Mount CD-ROM

I think Sanjay's advice is more simple and easy.
Hell Leader
Michael Tully
Honored Contributor

Re: Remote Mount CD-ROM

Hi,

You haven't said why this is has to a
pfs_mount so I'm going to assume it is
not as it seems that question has been
answered already. There is a problem in
in that you need to export the filesystem.
In order to do so you still have to add
some information to the /etc/exports
file, similar to this. Mounting a CD
remotely is no different to NFS
mounting a normal filesytem.

/cdrom -anon=65534,ro,root=server,access=client

# exportfs -a (on server with the CD)

Then go to the client system and try to mount
it as such.
# mkdir /cdrom2
# mount server:/cdrom /cdrom2

Make sure that your NFS is running on both
systems. If it is not no tyep of NFS mount
will work.

HTH
-Michael

Anyone for a Mutiny ?
Doug Moloney
Occasional Advisor

Re: Remote Mount CD-ROM

Still getting permission denied on all three versions. Any help on the permissions?
Deshpande Prashant
Honored Contributor

Re: Remote Mount CD-ROM

Hi
Are you able mount normal file system on NFS?
Are pfs daemons running on server with CD ?

Prashant.
Take it as it comes.
Doug Moloney
Occasional Advisor

Re: Remote Mount CD-ROM

I have killed all the pfs deamons and tried the mounts without pfs and still receiving permission denied.

I have not tried mounting a nfs file system, I really do not have one or know how to create one. If there is a test I can do I will.

Is there a hosts config file or a nfs config file somewhere that holds permission for remote mounts?
Andrew Duncalfe
Occasional Contributor

Re: Remote Mount CD-ROM

Hi - Use the mount command as above, but after the ro flag add the following : - ,vers=2
Doug Moloney
Occasional Advisor

Re: Remote Mount CD-ROM

Still getting access denied.


# mount -ro vers=2 zakori:/cdrom /cdrom
nfs mount: get_fh: zakori:/cdrom: access denied
#
Deshpande Prashant
Honored Contributor
Solution

Re: Remote Mount CD-ROM

Hi
First check your both servers are running NFS server/client. If no you can start this from SAM.
Check with #ps -eaf |grep -e nfs -e biod.

To check NFS -
On server add /usr to /etc/exports file.
Run #exportfs -av to export the "/usr" dir.
Check same using command #showmount -e

Then on client machine use
#mount SERVER-A:/usr /tmp_mnt/usr

If this works replace "/usr" with your CD directory.

Thanks.
Prashant.
Take it as it comes.
Doug Moloney
Occasional Advisor

Re: Remote Mount CD-ROM

Many thanks to all...

/etc/exports needed..
/cdrom -anon=65534,ro

then the mounts worked correctly.