Contained WithinFind More DocumentationFeatured Support Resources | Download this book in PDF (2862 KB)
Chapter 15 x86: GRUB Based Booting (Reference)This chapter contains information about x86 boot processes, including GRUB implementation details and additional GRUB reference information. For overview information, see Chapter 9, Shutting Down and Booting a System (Overview). For step-by-step instructions on booting a system, see Chapter 12, Booting a Solaris System (Tasks). x86: Boot ProcessesThis section includes information about boot processes that are unique to booting an x86 based system. x86: System BIOSWhen a system is powered on, the system is controlled by the read-only-memory (ROM) Basic Input/Output System (BIOS). The BIOS is the firmware interface on Solaris Operating Systems that have x86 64-bit and 32-bit support. Hardware adapters usually have an on-board BIOS that displays the physical characteristics of the device. The BIOS is used to access the device. During the startup process, the system BIOS checks for the presence of any adapter BIOS. If any adapters are found, the system then loads and executes each adapter BIOS. Each adapter's BIOS runs self-test diagnostics and then displays device information. The BIOS on most systems has a user interface, where you can select an ordered list of boot devices that consists of the following selections:
The BIOS attempts to boot from each device, in turn, until a valid device with a bootable program is found. x86: Kernel Initialization ProcessThe /platform/i86pc/multiboot program is an ELF32 executable that contains a header which is defined in the Multiboot Specification. The multiboot program is responsible for performing the following tasks:
After the kernel gains control of the system, the kernel initializes the CPU, memory, and device subsystems. The kernel then mounts the root device, which corresponds to the bootpath and fstype properties that are specified in the /boot/solaris/bootenv.rc file. This file is part of the boot archive. If these properties are not specified in the bootenv.rc file, or on the GRUB command line, the root file system defaults to UFS on /devices/ramdisk:a. The root file system defaults to UFS when you boot the installation miniroot. After the root device is mounted, the kernel initializes the sched and init commands. These commands start the Service Management Facility (SMF) services. x86: Solaris Support for the GRUB BootloaderThe following sections contain additional reference information for administering GRUB in the Solaris OS x86: GRUB TerminologyTo thoroughly grasp GRUB concepts, an understanding of the following terms is essential. Note – Some of the terms that are described in this list are not exclusive to GRUB based booting.
x86: Functional Components of GRUBGRUB consists of the following functional components:
You cannot use the dd command to write stage1 and stage2 images to disk. The stage1 image must be able to receive information about the location of the stage2 image that is on the disk. Use the installgrub command, which is the supported method for installing GRUB boot blocks. Naming Conventions That Are Used for Configuring GRUBGRUB uses device-naming conventions that are slightly different from previous Solaris releases. Understanding the GRUB device-naming conventions can assist you in correctly specifying drive and partition information when you configure GRUB on your system. The following table describes the GRUB device-naming conventions for this Solaris release. Table 15–1 Conventions for GRUB Devices
Note – All GRUB device names must be enclosed in parentheses. For more information about fdisk partitions, see Guidelines for Creating an fdisk Partition in System Administration Guide: Devices and File Systems. Naming Conventions That Are Used by the findroot CommandStarting with the Solaris 10 10/08 release, the findroot command replaces the root command that was previously used by GRUB. The findroot command provides enhanced capabilities for discovering a targeted disk, regardless of the boot device. The findroot command also supports booting from a ZFS root file system. The following is a description of the device naming convention that is used by the findroot command for various GRUB implementations:
How Multiple Operating Systems Are Supported by GRUBThis section describes how multiple operating systems that are on the same disk are supported with GRUB. The following is an example of an x86 based system that has the Solaris 10 10/08 OS, the Solaris 9 OS, Linux, and Windows installed on the same disk. Table 15–2 Sample GRUB Menu Configuration
Based on the preceding information, the GRUB menu would look like the following:
Note – The Solaris slice must be the active partition. Also, do not indicate makeactive under the Windows menu. Doing so causes the system to boot Windows every time. Note that if Linux has installed GRUB on the master boot block, you cannot access the Solaris boot option. The inability to access the Solaris boot option occurs whether or not you designate it as the active partition. In this case, you can do one of the following:
For information about the Solaris Live Upgrade boot environment, see Solaris 10 Installation Guide: Solaris Live Upgrade and Upgrade Planning. x86: Supported GRUB ImplementationsIn the Solaris 10 OS, GRUB uses the multiboot implementation. In the Solaris Express release, The contents of the menu.lst file varies, depending on the Solaris release you are running, the installation method that is used, and whether you are booting the system from a ZFS root or a UFS root.
Description of the menu.lst File (ZFS Support)The following are various examples of a menu.lst file for a boot environment that contains a ZFS boot loader: Note – Because the miniroot is mounted as the real root file system, the entry for failsafe booting in the menu.lst file does not change to the ZFS bootfs property, even if the failsafe archive is read from a ZFS dataset. The ZFS dataset is not accessed after the boot loader reads the miniroot. Example 15–1 Default menu.lst File (New Installation or Standard Upgrade)
Example 15–2 Default menu.lst File (Solaris Live Upgrade)
Description of the menu.lst File (UFS Support)The following are examples of a menu.lst file on a system that supports booting from UFS. Example 15–3 Default GRUB menu.lst File (New Installation or Standard Upgrade)
Example 15–4 Default GRUB menu.lst File (Solaris Live Upgrade)
|
|||||||||||||||||||||||||||||||||||||