Booting and Shutting Down Oracle® Solaris 11.2 Systems

Exit Print View

Updated: July 2014
 
 

x86: How to Remove a Boot Entry From the GRUB Menu

Use the remove-entry subcommand of the bootadm command to remove a given entry, or a comma-separated list of entries, from the GRUB menu. If you specify multiple entries with the same title, all of the entries with that title are removed.

  1. Assume the root role.

    See Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.2 .

  2. (Optional)List the current boot entries.
    # bootadm list-menu
  3. Remove the specified entry from the GRUB menu.
    # bootadm remove-entry [-P pool] [{entry-title [,entry-title...] |
    	-i entry-number[,entry-number...]}
  4. Verify that the entry has been removed.
    # bootadm list-menu

    Note - If you do not see your changes, check the grub.cfg file to verify that the change was made.
Example 2-9  x86: Removing a Boot Entry From the GRUB Menu

The following example shows the removal of entry number 2 from the GRUB menu.

# bootadm list-menu
The location of the boot loader configuration file is /rpool/boot/grub
default 2
console graphics
timeout 30
0 Oracle Solaris 11/11
1 Oracle Solaris 11.2
2 Oracle Solaris 11_test
bootadm remove-entry -i 2
1 entry removed
# bootadm list-menu
The location of the boot loader configuration file is /rpool/boot/grub
default 2
console graphics
timeout 30
0 Oracle Solaris 11/11
1 Oracle Solaris 11.2