Installing Solaris boot blocks

This post discusses how to install the boot block on a Solaris system running either the older UFS file system or the newer ZFS root file system. This process is generally only required when a system fails to boot from a disk containing the root file system.

Installing boot blocks on Solaris SPARC with UFS file system

# installboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk /dev/rdsk/cWtXdYs0
# init 6

Replace cWtXdYs0 with the raw device of your root (/) file system

Installing boot blocks on Solaris SPARC for a ZFS root filesystem (rpool)

# installboot -F zfs /usr/platform/`uname i`/lib/fs/zfs/bootblk /dev/rdsk/cWtXdYs0
# init 6

Replace cWtXdYs0 with the name of your ZFS root file system

Installing boot block on Solaris X86 (Solaris 10 and 11.0)

# /sbin/installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/cWtXdYsZ
# init6

Replace cWtXdYsZ with the raw device name that represents the location of the GRUB menu, /boot/grub/menu.lst on the Solaris root slice.

Installing boot block on Solaris X86 (Solaris 11.1 and later)

# bootadm install-bootloader -P rpool
# shutdown -y -i6 -g0