Operating System - HP-UX
1834461 Members
3380 Online
110067 Solutions
New Discussion

mounting a cdrom remotely (nfs)

 
SOLVED
Go to solution
Larry Scheetz
Advisor

mounting a cdrom remotely (nfs)

I am trying to mount my CDrom (test box in office) to another server on network. I have entry in /etc/fstab for /cdrom and when attempting "mount testbox:/cdrom /cdrom" I get the error permission denied. Any help would be appreciated.
A Happy heart makes the face cheerful
12 REPLIES 12
harry d brown jr
Honored Contributor

Re: mounting a cdrom remotely (nfs)

You need to mount as READ ONLY on local server, then use exportfs to allow remote mount

/dev/dsk/c0t6d0 /cdrom cdfs ro 0 3

# more /etc/exports
/cdrom -ro


live free or die
harry
Live Free or Die
Shahul
Esteemed Contributor

Re: mounting a cdrom remotely (nfs)

HI

For mounting a CDROM thru NFS, First go the Box where CDROM physically connected and add entry in /etc/exports file. U should put option as read only (U are getting the permission error because of this only). Then

#exportfs -a

Then go to the remot box and try to mount.

bEST OF LUCK
sHAHUL
Helen French
Honored Contributor

Re: mounting a cdrom remotely (nfs)

Is the /cdrom exported ? Check the file /etc/exports and check with this command:

# exportfs -v

to export all mentioned in /etc/exports:

# exportfs -a
Life is a promise, fulfill it!
Larry Scheetz
Advisor

Re: mounting a cdrom remotely (nfs)

Ok I have the entry in the /etc/exports file as RO. When I run a exportfs -a I get the following error msg "exportfs error: /cdrom: Too many levels of remote in path?
A Happy heart makes the face cheerful
PIYUSH D. PATEL
Honored Contributor

Re: mounting a cdrom remotely (nfs)

Hi,

Mount the cdrom on your server

#mount -F cdfs -ro /dev/dsk/c1t2d0 /cdrom

Then put an entry in /etc/exports
/cdrom -ro

Then do
# exportfs -a
The go to the remote box and mount it

#mount server1:/cdrom /cdrom

Piyush


BFA6
Respected Contributor

Re: mounting a cdrom remotely (nfs)

Hi,

The entry in my /etc/exports is

/cdrom -ro

I normally mount the cdrom on the local machine, run exportfs -a, then on the remote machine do a mount command

mount :/cdrom /cdrom

Regards,

Hilary
Helen French
Honored Contributor

Re: mounting a cdrom remotely (nfs)

Again, regarding the last message:

This exportfs error normally comes, when you *mix* the exports and mounts with 'pfs' commands. Make sure that you are not using pfs_exportfs and pfs_mount commands. You can export with exportfs and mount with pfs_mount command. Use exportfs and normal mount command.

Just a thought ..
Life is a promise, fulfill it!
Helen French
Honored Contributor

Re: mounting a cdrom remotely (nfs)

Oops ..typo

Please read this - "You can export with exportfs and mount with pfs_mount command."

as:

"You can NOT export with exportfs and mount with pfs_mount command."
Life is a promise, fulfill it!
Shahul
Esteemed Contributor

Re: mounting a cdrom remotely (nfs)

Hi

Too many levels of remote in path??? Sounds like U are exporting something which remotely mounted!! Please check up whether Ur CDROM is local to the BOX or remotely mounted there?

Normally this excercise is very simple... Just export it and mount it....

Once again cross check everything...

Best of luck
Shahul
Sanjay_6
Honored Contributor
Solution

Re: mounting a cdrom remotely (nfs)

Hi Larry,

Try this,

on node1 (local system)

mount /dev/dsk/cxtydz /cdrom
exportfs -i /cdrom

on node2 (remote system)
mount node1:/cdrom /cdrom

Once you have ffinished,

on node2
umount /cdrom

on node1
umount /cdrom

You should use the name or the ip address of node1 on node2. Use ip address if the hostname is not resolvable on node2.

Hope this helps.

regds
MANOJ SRIVASTAVA
Honored Contributor

Re: mounting a cdrom remotely (nfs)

Hi Larry


Here is what you have to do :




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




you can look at this document
http://support1.itrc.hp.com/service/cki/docDisplay.do?docId=200000032087697


Manoj Srivastava

someone_4
Honored Contributor

Re: mounting a cdrom remotely (nfs)

A great tip from Mr Bill Hassel:

if this is an HP cd. register the mounted CD on the local system, something like:

mount /dev/dsk/c1t2d3 /cdrom
swreg -l depot /cdrom

Now go to any HP-UX system on your network and run
swinstall and tell it you want to use the Network depot on your server with
the CD mounted.

~ Richard