Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
SmartSetup Scripting Toolkit Deployment Guide: HP Integrity Servers with Linux > Chapter 5 Setting Up the Boot Mechanism

Using a Bootable CD or DVD

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

This section shows you how to create and use a bootable CD or DVD to launch the SSTK.

Creating a Bootable Disk Image

The SSTK includes the files you need to create a bootable disk image. Creating the disk image involves copying these boot files to a small FAT partition and creating the image (.img) file.

The bootable disk image must be a FAT file system to be available at the EFI level. Also, if a boot loader file named bootia64.efi is located in the \efi\boot directory, the HP Integrity server automatically executes that boot loader.

To create a bootable disk image:

  1. Create a directory for the bootable image, enter:

    mkdir ./bootable-image

  2. Create a blank file with the size needed to store the boot files, enter:

    dd if=/dev/zero of=./bootable-image/boot.img bs=1024 count=25000

  3. Format this image file with FAT file system, enter:

    mkfs.msdos ./bootable-image/boot.img

  4. Create a directory and mount this image file.

    mkdir ./bootable-image/imagemount ./bootable-image/boot.img ./bootable-image/image –o loop

  5. Create the bootable directory, /efi/boot, enter:

    mkdir –p ./bootable-image/image/efi/boot

  6. Copy the following necessary files from boot_file/efi/boot to the ./bootable-image/image/efi/boot directory:

    bootia64.efi
    elilo.efi
    elilo.conf (boot loader configuration file)
    rootfs.gz (root file system)
    linux (kernel)
  7. If needed, copy additional files to the ./bootable-image/image directory. These files might include toolkit files, configuration files, or third-party tools.

  8. Unmount the image file, enter:

    umount ./bootable-image/image

The boot.img file is now a FAT file system containing the bootia64.efi file, which boots the Linux OS.

Creating a CD Build Directory

  1. Create a directory, enter:

    mkdir ./linuxbootCD

  2. Create a subdirectory to store the boot image, enter:

    mkdir ./linuxbootCD/boot

  3. Copy the boot image file, boot.img to the ./linuxbootCD/boot directory, enter:

    cp /bootable-image/boot.img ./linuxbootCD/boot

Creating the ISO File

The mkisofs command is used to create an ISO file. The following table describes the arguments used with this command.

Table 5-1 The mkisofs Command Options

OptionDescription
-o linuxbootCD.iso

Specifies the ISO file.

-b boot/boot.img

Specifies boot.img as the bootable disk image.

-V LinuxBootCD

Specifies the volume label of the CD.

./linuxbootCDSpecifies the target directory as the root of the CD.

 

  1. To create the ISO image, enter the following command at the shell prompt:

    mkisofs –J -iso-level 3 –r -R -o linuxbootCD.iso \
    -b boot/boot.img -c boot/boot.cat \
    -V LinuxBootCD -no-emul-boot ./linuxbootCD
  2. Write the ISO file to a CD or DVD using the burning application that you installed on your system.

    The following files should appear on the CD or DVD if viewed from a Linux operating system:

    boot\boot.img
    boot\boot.cat

Booting From the CD or DVD

  1. Insert the media in the appropriate media drive on the HP Integrity server.

  2. Reboot the machine.

  3. Enter the EFI Boot Manager and select the Internal Bootable DVD.

  4. The server boots until it reaches the ELILO boot: prompt. Here you have the option of pressing the TAB key to see the boot labels of the elilo.conf file or waiting 30 seconds for the default mount option to start.

  5. Select one of the following options:

    • Enter readhwconfig to create a configuration file in the repository to save the hardware configuration of the Linux server in the repository, and then reboot the server.

    • Enter linux to execute the linux-setup.sh to install the Linux OS.

    • Enter bash to go to the bash prompt. At the bash prompt enter the dmesg command to determine the name of the SCSI device. Edit the linux-setup.sh script, and then reboot.

      NOTE: Some systems might not have an Internal Bootable DVD option in the EFI Boot Manager. In this case, you need to either add a boot option that allows you to boot from the DVD drive or enter the EFI shell and use the map -r command to find the DVD drive and execute \efi\boot\bootia64.efi.
Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2007–2008 Hewlett-Packard Development Company, L.P.