Go to main content

Booting and Shutting Down Oracle® Solaris 11.3 Systems

Exit Print View

Updated: October 2017
 
 

x86: Displaying the GRUB Menu or Specific Menu Entries

Use the list-menu subcommand of the bootadm command to list the GRUB menu entries that are currently on the system. This information is supplied by the grub.cfg file. Use either the list-menu or show-entry subcommand to show information about specific menu entries. You can select specific entries by the entry number using the –i option or by title using the –t option.

Example 1  Listing All Items in the GRUB Menu

You can use the list-menu subcommand to see the contents of the current GRUB menu. The subcommand also displays the location of the boot loader configuration files, the default boot entry number, the autoboot-timeout value, and the index number and title of each boot entry.

$ bootadm list-menu
the location of the boot loader configuration files is: /rpool/boot/grub
default 0
console graphics
timeout 30
0 Oracle Solaris 11 FCS
1 Oracle Solaris backup-1
2 Oracle Solaris 11 11.2 
Example 2  Listing Information About a Specific Entry Number

If you specify an entry number with the –i option when running the list-menu subcommand, the output displays the information about the selected entry.

$ bootadm list-menu -i 0
     the location of the boot loader configuration files is: /rpool/boot/grub
     title: Oracle Solaris 11 FCS
     kernel: /platform/i86pc/kernel/$ISADIR/unix
     kernel arguments: -B $ZFS-BOOTFS -v
     boot archive: /platform/i86pc/$ISADIR/boot_archive
     ZFS root pool: rpool

The same information, without the location of the boot loader configuration files is displayed if you use the show-entry subcommand with the –i option.

$ bootadm show-entry -i 0
     title: Oracle Solaris 11 FCS
     kernel: /platform/i86pc/kernel/$ISADIR/unix
     kernel arguments: -B $ZFS-BOOTFS -v
     boot archive: /platform/i86pc/$ISADIR/boot_archive
     ZFS root pool: rpool