HP: Mounting HP CDs on foreign OSesΒΆ

Title:HP: Mounting HP CDs on foreign OSes
Author:Douglas O’Leary <dkoleary@olearycomputers.com>
Description:HP: Mounting HP CDs on foreign OSes
Date created:06/18/2001
Date updated:06/18/2001
Disclaimer:Standard: Use the information that follows at your own risk. If you screw up a system, don’t blame it on me...

Here’s the situation: I work in Chicago and support 50+ systems that are scattered across the country. I don’t have a local HP system and I have all the application, patch, installation, what-have-you CDs here locally. I also have my handy-dandy, trusty Linux laptop with 2 (count ‘em, 2) CD drives. How do I mount the HP CDs such that I can do swlist/install/etc off the remotely mounted CDs?

Normal mounts don’t work - I kept getting the no sw depots on the source messages. Annoying. I finally posted a question to comp.sys.hp.hpux and got the answer

  • Mount the cd on the local drive:

    mount -o ro,norock,map=off /dev/cdrom /cdrom
    

    The secret is the norock,map=off. That turns off rock ridge formats and filename remapping. Those two are what apparently kill the swdepots

  • Export the cd to the system of choice:

    exportfs -i ${system}:/cdrom
    
  • Mount the cd on the remote system:

    mount -o ro ${linux}:/cdrom /cdrom
    
  • swinstall/list to your heart’s content:

    swlist -s /cdrom