Managing Systems and Workgroups: A Guide for HP-UX System Administrators
Administering a System: Booting and Shutdown
Booting Systems
Chapter 5482
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 5-8 Determining the EFI disk partition of your current boot device
1. Use the bdf command to display the device file for the logical volume
that contains your boot directory (/stand):
bdf
/dev/vg00/lvol1 311296 66368 243064 21% /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/dsk/c0t0d0s2 38 38
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/dsk/c0t0d0s2. The “s2” 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 “s2” to “s1” in the file name you
should have the device file you need to use for the efi_cp command
(/dev/dsk/c0t0d0s1).
3. If the logical volume containing the /stand file system contains more
than one physical device, you have a little more work to do. You have
to determine which of them you booted from, or more importantly,
which one you will boot from after changing its AUTO file. Though
not always, it is usually the device associated with your PRI
(primary) boot path.
Use the setboot command with no options to determine which
device your primary boot path currently points to, then use the lssf
command with each device file associated with the logical volume