Operating System - HP-UX
1847614 Members
3816 Online
110265 Solutions
New Discussion

adding cdrom drive to server device list

 
SOLVED
Go to solution
Mark Vollmers
Esteemed Contributor

adding cdrom drive to server device list

I have an external cd-rom drive on a workstation and want to mount it to the server. the id would be c0t4d0. I can see this address in the workstations /dev/dsk folder, but cannot see on the servers. How can I add this device to the server so that I can mount the drive? I would like to do this so that I can work on the server from the workstation at my desk (I telnet into the server from my desk and work from there to install programs and the like). I have rebooted the server and it has not shown up. Also, I cannot find the device in SAM. Thanks a lot.
"We apologize for the inconvience" -God's last message to all creation, from Douglas Adams "So Long and Thanks for all the Fish"
2 REPLIES 2
Dan Hetzel
Honored Contributor

Re: adding cdrom drive to server device list

Hi Mark,

You won't be able to see the device as such, but only an exported directory.

To be able to mount the workstation cdrom on your server you'll need a few things:

Setup your workstation as an NFS server, mount the cdrom locally and export the cdrom mountpoint. See 'man exportfs' for details.

From your server, issue the mount command like this:
mount :

The local mountpoint must exist before issuing the mount command.

Best regards,

Dan
Everybody knows at least one thing worth sharing -- mailto:dan.hetzel@wildcroft.com
Andreas Voss
Honored Contributor
Solution

Re: adding cdrom drive to server device list

Hi,

at the server look at
/etc/rc.config.d/nfsconf for the line
NFS_SERVER=1
If not set to 1 then do it and run /sbin/init.d/nfs.server start
Mount your cdrom with:
mount /dev/dsk/c0t4d0 /SD_CDROM
Export the directory with:
exportfs -i -o ro /SD_CDROM

At your remote system mount the cdrom with:
mount :/SD_CDROM /SD_CDROM

The directory /SD_CDROM is an example, you could change it to your favorite but take care that the directory exists both on server and remote system (mkdir ...)

Regards