Creates the boot image, the boot record, and the service record. This command is NOT a user-level command and is NOT supported in AIX Version 4.2 or later.
mkboot -d Device [ -b ] [ -D ] [ -c ] [ -h ] [ -i ] [ -I ] [ -l LVDev ] { -k Kernel | -e Expander } [-L] [ -s ] [ -r ] [ -p Offset ] [ -w ] -f FileSystem
The mkboot command combines a kernel and file system into a boot image. The resulting image is written to standard out. It is copied to a boot device with the appropriate boot record information. The boot image can be made compressed or uncompressed and with or without a boot record at the beginning of the image. An image created for a tape is compressed with the boot record at the start of the image file. A disk boot image may be created without compression and has no boot record. The boot record is written to the first sector of the disk. The record contains information about the size and location of the image after it is written to the boot logical volume on that disk.
If the boot logical volume is mirrored, the mkboot command not only writes the boot image to each copy of the boot logical volume but also writes a boot record to each physical disk comprising the mirror. As long as the mkboot command is able to update at least one of the copies of a mirrored boot logical volume, no error is returned. To enable booting from each copy of a mirrored boot logical volume, each of the physical disks must be specified using the bootlist command. For more information regarding mirrored logical volumes, see "Logical Volume Storage Overview in AIX Version 4.3 System Management Guide: Operating System and Devices."
The mkboot command is usually called by the bosboot command. However, you can run the mkboot command a second time to put expand code at the beginning of a compressed boot image.
Access Control: Only the root user can read and execute this command.
mkboot -d /dev/hdisk0 -k /usr/lib/boot/unix -f /tmp/bootfs \ -b -i -s > /tmp/boot.image
mkboot -d /dev/hdisk0 -c
mkboot -b -d /dev/rmt0 -k unix -f ramfs | compress > /tmp/image mkboot -b -i -s -d /dev/rmt0 -k bootexpand -f /tmp/image \ > bootfilefor a bootable tape where:
unix | Specifies the kernel. |
ramfs | Specifies the RAM disk file system. |
compress | Specifies the compression or compact routine. |
bootexpand | Specifies the expansion or kernel uncompact routine. |
/usr/include/sys/bootrecord.h | Specifies the structure of the boot record. |
The bosboot command, and lockstat command.
Understanding the Boot Process in AIX Version 4.3 System Management Guide: Operating System and Devices.