Operating System - HP-UX
1833780 Members
2386 Online
110063 Solutions
New Discussion

mounting cdrom from a linux box to a hp workstation

 
SOLVED
Go to solution
Mario E Mira
Occasional Contributor

mounting cdrom from a linux box to a hp workstation

I want to mount the cdrom attached on my linux box running SUSE 8.1 on to my HP workstation running 10.20.
How do i go about it? what changes do I need to make on the Linux box if any and what are they. what changes on the hp WS?
Thank you very much
4 REPLIES 4
Pete Randall
Outstanding Contributor

Re: mounting cdrom from a linux box to a hp workstation

I believe you could do this with NFS. Do you have NFS running on the SUSE box?


Pete

Pete
Mario E Mira
Occasional Contributor

Re: mounting cdrom from a linux box to a hp workstation

Yes, I have nfs running on the linux box.
I have created an entry in the exports file as follow:

/media/cdrom hp_hostname (rw)
Robert-Jan Goossens
Honored Contributor
Solution

Re: mounting cdrom from a linux box to a hp workstation

Hi,

Beleave it is,

linux host
# exportfs -a /cdrom

Hpux
# mount -f nfs -o ro linuxhost:/cdrom /cdrom

Robert-Jan.
John Bolene
Honored Contributor

Re: mounting cdrom from a linux box to a hp workstation

How to NFS mount a HP-UX CD from Linux for use with swinstall

DocId: LINUXKBRC00009355 Updated: 3/26/02 6:29:00 AM


PROBLEM

Customer wants to mount a HP-UX CD on a Red Hat 7.1 Linux system and, after
exporting the mount point, NFS mount the CD to a 11.0 HP-UX system for use with
swinstall. This was necessary because the HP-UX system did not have a CDROM drive.

HP ships HP-UX CDs (Support Plus, Install & Core-OS, Applications, etc) using
SD-UX packaging. The CDs use a filesystem type of cdfs.

By default Linux uses filesystem type ISO9660 when mounting CDs. The Linux
mount(1) command is capable of probing the superblock to determine which
filesystem type to use. When mounting CDs, including HP-UX CDs, this type will
be ISO9660.

Mounting a HP-UX CD with a filesystem type of ISO9660 will cause many subtle
problems. All file and directory names under the CD mount point will be lower
case. Also, directory listing using the ls(1) command can yield inconsistent
results. Forcing file and directory names to be lower case will wreck havoc
with the SD-UX depot packaging of HP-UX CDs. A swinstall session pointed to a
source depot in this condition will usually yield an error such as "no depot
software on host at location ".

How can we mount a HP-UX CD, written in the cdfs filesystem type, on a Linux
system that assumes a filesystem type of ISO9660 for CDs so that we can safely
use it with SD-UX comands?

CONFIGURATION

This solution was tested with Red Hat 7.1 but it can apply to other distros and versions.
The CD tested was a HP-UX 11.0 Install CD but the solution can apply to the SupportPlus,
Applications, and any other HP-UX CD packaged in the SD-UX format.

RESOLUTION

The HP-UX CD must be locally mounted on the Linux system using the correct mount
options. If you have automounter enabled (where Linux automatically mounts a CD
upon its insertion into the drive), you will need to umount the CD and remount
it using the correct options.

mount -o ro,norock,map=off

The options explained:
ro - cdroms should be mounted read-only
norock - disable the use of Rock Ridge extensions, even if available. These
extensions are not used on HP-UX CDs.
map=off - no name translation is done.

To verify that these options were used correctly, issue the mount command and
the cdrom mount point should appear similar to this:

/dev/hdc on /cdrom type iso9660 (ro,norock,map=off)

SD-UX has not been ported to Linux, so there is no way to register the local
/cdrom mount point on Linux as a depot for remote swinstalls. However, you can
export the mount point and NFS mount it on HP-UX systems.

On the Linux system, add the mount point to the NFS exports file (no special
options other than read-only are required). Then on the HP-UX system, NFS mount
the CD over the network and point swinstall to the NFS mount:

mount :/ /mnt
swinstall -s /mnt

NOTE: On a Linux system, if you have added a cdrom mount point to the NFS
exports lists, you must first remove this entry before it will allow you to
umount the cdrom and eject the CD.
It is always a good day when you are launching rockets! http://tripolioklahoma.org, Mostly Missiles http://mostlymissiles.com