HP-UX System Administrator's Guide: Routine Management Tasks

1. Copy the AUTO file from the EFI partition on the boot device to a file on an HP-UX
file system. Use the efi_cp command to do this. See efi_cp(1M) for details. For
example, if the EFI file system represented by the device file
/dev/rdsk/c1t4d0s1 contains the AUTO file you want to change, use the
following command to copy the AUTO file to your current directory:
efi_cp -d /dev/rdsk/c1t4d0s1 -u /EFI/HPUX/AUTO AUTO
IMPORTANT: The -uoption in the command above tells efi_cp to copy the
AUTO file from the EFI file system to the HP-UX file system. Think of it as copying
the file up from the lower level EFI pre-boot environment. In Step 3 of this
procedure, the efi_cp command, used without the -u option, will copy the edited
AUTO file back to the EFI file system.
The most difficult part of this step is determining which device file to use to
reference the proper EFI file system. If the AUTO file you want to change is the one
associated with the device you are currently booted from, here is one way to
determine which device file to use:
Example 2-8 Determining the EFI disk partition of your current boot device using
LVM
Note, if you are using VxVM instead of LVM, see the VERITAS Volume Manager
documentation.
1. Use the bdf command to display the device file for the logical volume that
contains your boot directory (/stand):
bdf|grep /stand
/dev/vg00/lvol1 1835008 150288 1671656 8% /stand
In this case (and probably in most cases) the device file for the /stand logical
volume is /dev/vg00/lvol1.
2. Next, use the lvdisplay command to determine the name of the device
file(s) of the physical devices associated with the logical volume in the previous
step of this example (use grep and tail to filter the lines you need):
lvdisplay -vk /dev/vg00/lvol1|grep /dev|tail +3
/dev/disk/disk3_p2 112 112
In this example, the HP-UX file system on the one physical device associated
with the /stand directory (the directory containing the kernel file we booted
from) is /dev/disk/disk3_p2. The “p2” at the end of the file name refers
to partition number 2 on the physical device. This is usually the partition on
the disk that contains HP-UX file systems. The EFI partition is almost always
contained in partition 1, so if you change the “p2” to “p1” in the file name
you should have the device file you need to use for the efi_cp command
(/dev/disk/disk3_p1).
Booting Systems 53