Sunsolve-Document-16778
Problem Statement
This document can help you troubleshoot boot processes aborted with the
following (boot)-messages:
Boot load failed - illegal instruction
or
The file just loaded does not appear to be executable
or
A bootblock needs to be installed after restoring root filesystem after
a disk replacement
The information in this document is based on the assumption of a
PATH variable that contains /usr/sbin and /usr/bin. Full paths are
specified for commands or files that normally exist outside these
common directories.
You need to take extra steps to complete the procedure described in this
document if the file systems are under control of disk management software
(such as VERITAS or Solstice[TM] DiskSuite).
Resolution
INSTALLING A BOOT BLOCK AND BOOT PROGRAM (ufsboot)
ON THE SOLARIS[TM] BOOT DISK
1. To be sure that you really need to install a boot block and a boot
program, verify that you are using the correct boot command for your
system:
* If you are booting from a CD-ROM or installing the operating system
(OS) from a CD-ROM, make sure the Solaris[TM] Operating System
(Solaris OS) CD is in the CD-ROM drive and that the CD-ROM is
mounted.
If the machine hangs attempting to boot, halt the machine using
<Stop+a>, or use <L1+a> keyboard sequences to produce
the OK prompt.
* If you are booting from a tape, make sure the correct kernel
architecture tape is being used.
* If you are booting from a disk, make sure that the disk-alias you are
using to boot points to a bootable disk.
2. To install a boot block and a boot program, complete the following
procedure (which applies to file systems residing directly on the disk
(dev/dsk/...) ):
ok boot cdrom -s [boots the CD-ROM to SINGLE USER MODE]
# cd /
# fsck /dev/rdsk/c0t0d0s0
# mount /dev/dsk/c0t0d0s0 /a
*** Solaris OS releases up to 2.4 ***
# cp /ufsboot /a/ufsboot
# cd /
# umount /a
# /usr/sbin/installboot /usr/lib/fs/ufs/bootblk /dev/rdsk/c0t0d0s0
# reboot
*** Solaris 2.5 OS and later releases ***
# cp /platform/`uname -i`/ufsboot /a/platform/`uname -i`/ufsboot
# cd /
# umount /a
# /usr/sbin/installboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk
/dev/rdsk/c0t0d0s0
# reboot
Note: c0t0d0s0 is an example of the boot device.
Substitute c0t0d0s0 with the appropriate boot device.
Also, the CD used in this preceding step MUST BE the same Solaris OS
version running on the boot disk. For example, if the boot disk loads
Solaris 2.6 OS, use a Solaris 2.6 OS CD. In multi-disk Solaris
OS distribution, you will use OS disk 1 of 2.
For more details, refer to the installboot(1M) manpage. For
Solaris Operating System (x86 Platform Edition) examples, please
refer to document SRDB 16496, a Symptom/Resolution article.