Operating System - HP-UX
1834643 Members
3170 Online
110069 Solutions
New Discussion

Re: mount /cdrom remotely

 
SOLVED
Go to solution
Hector Vargas
Frequent Advisor

mount /cdrom remotely

Hello,

I need to mount a /cdrom remotely, how do I dod that?
7 REPLIES 7
Patrick Wallek
Honored Contributor

Re: mount /cdrom remotely

You use the mount command.

Are you really saying that you need to access the cdrom on one machine from another machine? If so, then you can use NFS to export the CD on the first machine and then mount it on the second.
Peter Godron
Honored Contributor

Re: mount /cdrom remotely

Hector,

On Server with CD,
# mount -r /dev/dsk/cxtxdx/cdrom
Add in file /etc/exports:
/cdrom -anon=65534,ro,root=server_without_CD
# exportfs /cdrom

In Server without CD,
# mount -F nfs server_with_CD:/cdrom /cdrom

Or use SAM ;-)
Andrew Young_2
Honored Contributor
Solution

Re: mount /cdrom remotely

Hi

If you have a server with two cell boards the CDROM\DVD is only wired to the first cell and not avialable on the second.

The only change I would make is that I would soft mount the CDROM. Otherwise if the CDROM is unmounted on the first server after which you attempt to access it...... shouldn't happen but I know from experience it does. For safety's sake also use the intr option too.

Regards

Andrew Y
Si hoc legere scis, nimis eruditionis habes
gstonian
Trusted Contributor

Re: mount /cdrom remotely

Basic Version,

Ensure NFS Client is running on the Client (target ) server

Ensure NFS Server is running on the Server (source) server

add following into /etc/exports on source server
/cdrom -ro

on target
mkdir /_cdrom
mount :/cdrom /_cdrom
shivan
Occasional Advisor

Re: mount /cdrom remotely

If you want to share and remotely mount.
From ioscan command get CD-ROM device physical address and proceed for mounting.
mount -F cdfs -o rr /dev/dsk/cxtxdx /cdrom
Edit file /etc/exports and add below entry
/cdrom -ro
Run command exportfs -a to share file /cdrom

If CD-ROM is already shared skip above steps and proceed with below.
On the client all you need to do is run below command
mount serverip:/cdrom /mountpoint

George Liu_4
Trusted Contributor

Re: mount /cdrom remotely

mount cdrom on the machine has the cdrom drive;
export the filesystem to nfs

on other remote machines, use nfs mount to access the cdrom
Hector Vargas
Frequent Advisor

Re: mount /cdrom remotely

Thanks to all for you support, after review all your response I got it to work with the following.

On server with cdrom.

nohup pfs_mountd &
nohup pfsd &
mount -F cdfs -orr /dev/dsk/c0t0d0 /cdrom

vi /etc/exports
/cdrom -ro

Share the cdrom drive
exportfs /cdrom

On second server:
mkdir /cdrom2
mount -F nfs txsldsb2:/cdrom /cdrom2