How to create bootable CD DVD media

From Wiki-UX.info
Jump to: navigation, search

Abstract

The following article shows how to create an ISO image for Ignite-UX Two-Step media recovery. This procedure has been tested on versions of Ignite-UX C.6.9.193 and newer. This task is normally executed on the Ignite-UX server, but can be done on clients with full Ignite-UX software bundles.

Procedure

1. Verified the current Ignite-UX release.

# swlist -l bundle | grep -i ignite
  IGNITE                C.7.4.157      HP-UX Installation Utilities (Ignite-UX)
  Ignite-UX-11-11       C.7.4.157      HP-UX Installation Utilities for Installing 11.11 Systems
  Ignite-UX-11-23       C.7.4.157      HP-UX Installation Utilities for Installing 11.23 Systems
  Ignite-UX-11-31       C.7.4.157      HP-UX Installation Utilities for Installing 11.31 Systems


2. Use make_media_install command to create the ISO image on temporary directory or mount point, for example /mnt. This mount point or directoy should have at least 512MB of free space, 800MB is highly recommended.

The following options are required for correct utilization of the make_media_install command:

-r <release> build media (LIF volume) for the specified HP-UX OS release; default = OS release of the system where the script is run.
-m <media_directory> path to directory under which to place the media image (for CD or DVD media), Ignite-UX config files, and with the -H option, the boot-image (LIF volume) file; default = /var/opt/ignite/media; see comments in the script about disk space management and file system type issues and how to build a logical volume if desired

Example

# /opt/ignite/data/scripts/examples/make_media_install -r B.11.31 -m /mnt

WARNING: Non-default -m option value specified along with default -p option value; the default directory could run out of disk space, should both options be given?
=== Step 1: Make Ignite-UX config files for golden image archive(s) ===
=== Step 2: Copy SD depot(s) and make config files for them ===
=== Step 3: Make a boot-image (LIF volume) ===
+ /opt/ignite/bin/make_medialif -a -r B.11.31 -f /opt/ignite/data/Rel_B.11.31/config -l /var/opt/ignite/media/pseudo_root/bootvol.lif
+ /opt/ignite/bin/instl_adm -b -F /var/opt/ignite/media/pseudo_root/bootvol.lif
=== Step 4: Make ISO media image ===
+ cp -p /opt/ignite/boot/Rel_B.11.31/EFI_CD_image /var/opt/ignite/media/pseudo_root
+ /opt/ignite/lbin/mkisofs -U -max-iso9660-filenames -no-emul-boot -b EFI_CD_image -R -eltorito-alt-boot -no-emul-boot -b bootvol.lif -o /mnt/image.iso /var/opt/ignite/media/pseudo_root
Warning: creating filesystem that does not conform to ISO-9660.
Warning: ISO-9660 filenames longer than 31 may cause buffer overflows in the OS.
Size of boot image is 10240 sectors -> No emulation
Size of boot image is 827340 sectors -> No emulation
  2.39% done, estimate finish Mon May  5 18:57:32 2008
  4.78% done, estimate finish Mon May  5 18:57:52 2008
  7.16% done, estimate finish Mon May  5 18:57:45 2008
  9.55% done, estimate finish Mon May  5 18:57:42 2008
 11.93% done, estimate finish Mon May  5 18:57:48 2008
 14.32% done, estimate finish Mon May  5 18:57:45 2008
 16.70% done, estimate finish Mon May  5 18:57:43 2008
 19.09% done, estimate finish Mon May  5 18:57:42 2008
 21.47% done, estimate finish Mon May  5 18:57:45 2008
 23.86% done, estimate finish Mon May  5 18:57:44 2008
 26.25% done, estimate finish Mon May  5 18:57:43 2008
 28.64% done, estimate finish Mon May  5 18:57:45 2008
 31.02% done, estimate finish Mon May  5 18:57:44 2008
 33.41% done, estimate finish Mon May  5 18:57:43 2008
 35.79% done, estimate finish Mon May  5 18:57:43 2008
 38.18% done, estimate finish Mon May  5 18:57:45 2008
 40.56% done, estimate finish Mon May  5 18:57:44 2008
 42.95% done, estimate finish Mon May  5 18:57:43 2008
 45.33% done, estimate finish Mon May  5 18:57:45 2008
 47.72% done, estimate finish Mon May  5 18:57:44 2008
 50.10% done, estimate finish Mon May  5 18:57:43 2008
 52.49% done, estimate finish Mon May  5 18:57:43 2008
 54.88% done, estimate finish Mon May  5 18:57:44 2008
 57.27% done, estimate finish Mon May  5 18:57:44 2008
 59.65% done, estimate finish Mon May  5 18:57:43 2008
 62.04% done, estimate finish Mon May  5 18:57:44 2008
 64.42% done, estimate finish Mon May  5 18:57:44 2008
 66.81% done, estimate finish Mon May  5 18:57:43 2008
 69.19% done, estimate finish Mon May  5 18:57:43 2008
 71.58% done, estimate finish Mon May  5 18:57:44 2008
 73.96% done, estimate finish Mon May  5 18:57:44 2008
 76.35% done, estimate finish Mon May  5 18:57:43 2008
 78.73% done, estimate finish Mon May  5 18:57:44 2008
 81.12% done, estimate finish Mon May  5 18:57:44 2008
 83.51% done, estimate finish Mon May  5 18:57:43 2008
 85.89% done, estimate finish Mon May  5 18:57:43 2008
 88.28% done, estimate finish Mon May  5 18:57:44 2008
 90.67% done, estimate finish Mon May  5 18:57:44 2008
 93.05% done, estimate finish Mon May  5 18:57:43 2008
 95.44% done, estimate finish Mon May  5 18:57:44 2008
 97.82% done, estimate finish Mon May  5 18:57:44 2008
Total translation table size: 2048
Total rockridge attributes bytes: 846
Total directory bytes: 4096
Path table size(bytes): 40
Max brk space used 9000
209574 extents written (409 MB)
=== Step 5: Combine LIF volume and media image ===
+ /opt/ignite/lbin/instl_combine -C /mnt/image.iso
El Torito offset for LIF volume is: 0x50e800
Adjusting LIF file: ISL (Old iplstart: 4096; New iplstart: 5306368)
Adjusting LIF file: AUTO
Adjusting LIF file: INDEX
Adjusting LIF file: CONFIG
Adjusting LIF file: HPUX
Adjusting LIF file: FWWKAR6
Adjusting LIF file: FWWKAR7
Adjusting LIF file: FWWKAR8
Adjusting LIF file: WINSTALL
Adjusting LIF file: WINSTALLFS
Adjusting LIF file: IINSTALL
Adjusting LIF file: IINSTALLFS
Adjusting LIF file: INSTCMDS
Adjusting LIF file: SYSCMDS
Adjusting LIF file: INSTCMDSIA
Adjusting LIF file: SYSCMDSIA
Adjusting LIF file: SCRIPTS
Adjusting LIF file: PAD
=== Step 6: Write image file to tape/CD/DVD media ===
+ /opt/ignite/lbin/growisofs -Z /dev/rdsk/c0t0d0=/mnt/image.iso
:-( unable to open("/dev/rscsi/c0t0l0",O_RDONLY): No such file or directory
:-! consider 'mknod /dev/rscsi/c0t0l0 c 203 0x000002; chmod 0600 /dev/rscsi/c0t0l0'
+ Error 83 /opt/ignite/lbin/growisofs failed.
/opt/ignite/data/scripts/examples/make_media_install: ERROR: /opt/ignite/lbin/growisofs failed.

NOTE: The Error 83 /opt/ignite/lbin/growisofs failed error message is normal, since most HP-UX systems are not configured to burn CD/DVD images directly.

3. Verified the size of the ISO image.

# ll /mnt/*.iso
-rw-rw-rw-   1 root       sys        429207552 May  5 18:57 /mnt/image.iso

4. Move the ISO image to a system with burn capacities and create a CD/DVD.

5. Boot from the CD/DVD until you get to the Welcome to Ignite-UX screen. The screen below will show the steps to take to boot from tape after that:

  • Select Install HP-UX


 .                     Welcome to Ignite-UX!

  Use the <tab> key to navigate between fields, and the arrow keys
  within fields.  Use the <return/enter> key to select an item.
  Use the <return/enter> or <space-bar> to pop-up a choices list.  If the
  menus are not clear, select the "Help" item for more information.

  Hardware Summary:         System Model: 9000/800/rp4440
  +----------------------+---------------+--------------------+[ Scan Again  ]
  | Disks: 5  (  169.6GB)| Floppies: 0   | LAN cards:   3     |
  | CD/DVDs:        1    | Tapes:    1   | Memory:     2046Mb |
  | Graphics Ports: 0    | IO Buses: 7   | CPUs:        2     |[ H/W Details ]
  +----------------------+---------------+--------------------+

                       [      Install HP-UX       ]

                   [   Run an Expert Recovery Shell   ]

                       [    Advanced Options      ]


          [  Reboot  ]                              [  Help  ]
  • Select Media only installation:


.                       User Interface and Media Options

   This screen lets you pick from options that will determine if an
   Ignite-UX server is used, and your user interface preference.

 Source Location Options:
   [ * ]  Media only installation
   [   ]  Media with Network enabled (allows use of SD depots)
   [   ]  Ignite-UX server based installation

 User Interface Options:
   [   ]  Guided Installation   (very basic installs - deprecated mode)
   [ * ]  Advanced Installation (recommended for disk and filesystem management)
   [   ]  No user interface - use all the defaults and go


   Hint: If you need to make LVM size changes, or want to set the
         final networking parameters during the install, you will
         need to use the Advanced mode (or remote graphical interface).



   [   OK   ]                  [ Cancel ]                         [  Help  ]
  • Select Boot from CD/DVD, Recover from Tape:
.                         Media Installation Selection

   This screen provides an option to switch the install source
   from the default CD/DVD to a recovery tape.  This is helpful
   for those systems and for tape devices which do not support
   booting from a tape.


   [  ]  CD/DVD Installation
   [ * ]  Boot from CD/DVD, Recover from Tape












   [   OK   ]                  [ Cancel ]                         [  Help  ]


.                           Tape Drive Selection

    There are one or more tape drives detected on the system.  Insert
    your recovery tape into one of the drives and then select that drive
    from the list below.

    Use the <tab> and/or arrow keys to move to the desired TAPE device,
    then press <Return/Enter> to select.

       HW Path           Device File            Description
       ----------------------------------------------------------


     [ 0/1/1/1.4.0     /dev/rmt/c3t4d0BEST       HP_Ultrium_2-SCSI         ]
  • After selecting the tape following messages appear on the screen:
   Checking the Ignite-UX versions on both media...
(Press any key to continue.)

Loading INDEX from media...


       * Using client directory: /var/opt/ignite/clients/0x00156004A2FA



       * Checking configuration for consistency...

       * Loading configuration user interface, please wait...


  • If the Configuration User Interface is loaded successfully you will see this. Use the itool to make the necessary changes and hit Go! to start the installation:
+                           /opt/ignite/bin/itool ()                           +
¦                                                                              ¦
¦ +-------++----------++--------++-------------++----------+                   ¦
¦ ¦ Basic ¦¦ Software ¦¦ System ¦¦ File System ¦¦ Advanced ¦                   ¦
¦ ¦       \-------------------------------------------------------------------+¦
¦ ¦                                                                           ¦¦
¦ ¦ Configurations:  [ Recovery Archive         ->] [ Description...  ]       ¦¦
¦ ¦                                                                           ¦¦
¦ ¦ Environments:    [ Recovery Archive           ->] (HP-UX B.11.31)         ¦¦
¦ ¦                                                                           ¦¦
¦ ¦ [ Root Disk  ] HP_36.4GST336753LC, 0/1/1/0.1.0, 34732 M>                  ¦¦
¦ ¦                                                                           ¦¦
¦ ¦ File System:     [ HP-UX save_config layout                ->]            ¦¦
¦ ¦                                                                           ¦¦
¦ ¦ [ Root Swap (MB)... ] 2048      Physical Memory (RAM) =  2046 MB          ¦¦
¦ ¦                                                                           ¦¦
¦ ¦ [  Languages...   ] English           [ Keyboards...  ] [ Additional...  ]¦¦
¦ ¦                                                                           ¦¦
¦ +---------------------------------------------------------------------------+¦
¦      [ Show Summary...  ]                          [ Reset Configuration ]   ¦
¦------------------------------------------------------------------------------¦
¦ [  Go!   ]                       [ Cancel ]                       [  Help  ] ¦
+------------------------------------------------------------------------------+

If you enter the Help section you will see the following information:

- CD/DVD installation

    This is the default media method of installing a system when
    booting from local media (CD-ROM/DVD).

 - Boot from CD/DVD, recover from tape

    This option is a useful recovery method for IPF systems which do
    not suppot booting from tape or for PA systems with tape device
    which are not bootable. This method allows you to boot from a bootable
    CD/DVD, then switch to a tape drive which contains the recovery archive
    created for this system.

Reference

Authors