HP-UX Reference (11i v1 05/09) - 1M System Administration Commands A-M (vol 3)

m
mkboot(1M) mkboot(1M)
-H If this option is specified,
mkboot treats device to be a Hard Partition lay-
out disk. This option cannot be used along with the
-l and -W options.
-i included_lif_file If the
-i option is specified one or more times,
mkboot copies each
included_lif_file and ignores any other LIF files in the boot programs. The
sole exceptions to this rule are the files
ISL and HPUX, which are copied
without regard to the
-i options. If included_lif_file is also specified with
the
-p option, the -i option is ignored. If the
-i option is used with
LABEL as its argument and the file
LABEL does not exist in the boot pro-
grams, and device is an LVM layout disk or the
-l option is used, mkboot
creates a minimal LABEL file on device which will permit the system to boot
on device, possibly without swap or dump.
-l If this option is used, mkboot treats device as a volume layout disk, regard-
less of whether or not it is currently set up as one. This option cannot be
used along with the
-H and -W options. Use the
-l option for any volume
manager, including the VERITAS Volume Manager (VxVM) as well as LVM.
-p preserved_lif_file If the
-p option is specified one or more times,
mkboot keeps each
specified preserved_lif_file intact on device. If preserved_lif_file also appears
as an argument to the
-i option, that -i option is ignored. This option is
typically used with the autoexecute file, AUTO, and with the LVM file,
LABEL.
If LABEL is specified as an argument to the -p option and LABEL does not
exist on the device, and if the layout is LVM,
mkboot creates a minimal
LABEL file. In general, if preserved_lif_file is not on the device,
mkboot
fails. An exception to this condition is if the preserved_lif_file is
LABEL and
the layout is not LVM, in which case the
LABEL file is ignored.
-u If -u is specified, mkboot uses the information contained in the LIF header
to identify the location of the swap area, boot area, and raw I/O so that ins-
tallation of the boot programs does not violate any user data.
Normally, the LIF header information is overwritten on each invocation of
mkboot. This option is typically used with the -W option, to modify boot pro-
grams on a disk that is actively supporting swap and/or raw I/O.
-v If this option is specified, mkboot displays its actions, including the amount
of swap space available on the specified device.
-W If this option is specified, mkboot treats device as a disk having the Whole
Disk layout. This option cannot be used along with the -l and -H options.
This option will also fail on a disk having large-file enabled HFS filesystem.
device Install the boot programs on the given device special file. The specified dev-
ice can identify either a character-special or block-special device. However,
mkboot requires that both the block and character device special files be
present. mkboot attempts to determine whether device is character or
block special by examining the specified path name. For this reason, the
complete path name must be supplied. If mkboot is unable to determine
the corresponding device file, a message is written to the display, and
mkboot exits.
rmboot removes the boot programs from the boot area.
EXAMPLES
Install default boot programs on the specified disk, treating it as an LVM disk:
mkboot -l /dev/dsk/c0t5d0
Use the existing layout, and install only SYSLIB and ODE files and preserve the EST file on the disk:
mkboot -i SYSLIB -i ODE -p EST /dev/rdsk/c0t5d0
Install only the SYSLIB file and retain the ODE file on the disk. Use the Whole Disk layout. Use the file
/tmp/bootlf to get the boot programs rather than the default. (The -i ODE option will be ignored):
mkboot -b /tmp/bootlf -i SYSLIB -i ODE -p ODE -W /dev/rdsk/c0t5d0
Section 1M480 Hewlett-Packard Company 2 HP-UX 11i Version 1: September 2005