Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
SmartSetup Scripting Toolkit Deployment Guide: HP Integrity Servers with Linux > Chapter 6 Utilities Reference

efibootmgr

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

Synopsis

efibootmgr [command]... [option]...

Description

The efibootmgr utility is used from a script file to manage the EFI Boot variables. The efibootmgr utility is used for creating or destroying the EFI BOOT variables and to update the BOOT NEXT, BOOT ORDER and TIMEOUT variables.The BOOT ORDER variable defines the boot entries sequence to be shown in menu. The TIMEOUT variable sets the time-out to select automatically the boot variables, according to BOOT ORDER. The BOOT NEXT variable sets the next boot entry to be selected automatically disregarding the BOOT ORDER and TIMEOUT.

Table 6-9 Options

Options

Description

-a | --active

Set bootnum active.

-A | --inactive

Set bootnum inactive.

-B | --delete-bootnum

Delete bootnum (hex).

-c | --create

Create new variable bootnum and add to bootorder.

-h | --help

Display the help and exit.

-i | --iface name

Create a netboot entry for the named interface.

-n | --bootnext XXXX

Set BootNext to XXXX (hex).

-N | --delete-bootnext

Delete BootNext.

-o | --bootorder XXXX,YYYY,ZZZZ,...

Explicitly set BootOrder. The values must be in hex.

-O | --delete-bootorder

Delete BootOrder

-t | --timeout seconds

Set boot manager timeout waiting for user input.

-T | --delete-timeout

Delete Timeout.

-V | --version

Return version and exit.

 

Table 6-10 Commands

Commands

Description

-@ | --@ file

Define the file to include more options.

-b | --bootnum XXXX

Select BootXXXX (hex) variable to be deleted.

-d | --disk disk

Device file that the boot loader stores. (defaults to /dev/sda).

-e | --edd [1|3|-1]

Force EDD 1.0 or 3.0 creation variables, or guess.

-E | --device num

EDD 1.0 device number (defaults to 0x80).

-g | --gpt

Force disk with invalid PMBR to be treated as GPT.

-H | --acpi_hid XXXX

Set the ACPI HID (used with -i).

-l | --loader name

Boot loader file name. The full path must be informed if necessary. (defaults to \elilo.efi).

-L | --label label

Boot manager display label (defaults to "Linux").

-p | --part part

Partition number that containing boot loader (defaults to 1)

-q | --quiet

Be quiet.

--test filename

Do not write to NVRAM, writes to filename.

-u | --unicode | --UCS-2

Pass extra args as UCS-2 (default is ASCII).

-U | --acpi_uid XXXX

Set the ACPI UID (used with -i).

-v | --verbose

Print additional information.

-w | --write-signature

Write unique sig to MBR if needed.

 

Table 6-11 Command Line Input

Command Line Input

Result

efibootmgr

Show the current configuration.

efibootmgr -c

Create a default boot entry with the following values:

  • NAME: Linux

  • DEVICE: /dev/sda

  • PARTITION: 1

  • BOOT LOADER: /elilo.efi

  • LOAD OPTION: none

efibootmgr -c -L "New Boot" -l /efi/boot/bootia64.efi -d /dev/cciss/c0d0 -p 4 LINUX

Create a boot entry with following values:

  • NAME: New Boot

  • DEVICE: /dev/cciss/c0d0

  • PARTITION: 4

  • BOOT LOADER: /efi/boot/bootia64.efi

  • LOAD OPTION: LINUX

efibootmgr -c -L "Boot" -l /bootia64.efi --test bootentry.bin

Generate a boot entry but do not save it in NVRAM. The boot entry values are:

  • NAME: Boot

  • DEVICE: /dev/sda

  • PARTITION: 1

  • BOOT LOADER: /bootia64.efi

  • LOAD OPTION: none

efibootmgr -c -l /bootia64.efi -@ parameter.txt

Create a boot entry with the following values:

  • NAME: Linux

  • DEVICE: /dev/sda

  • PARTITION: 1

  • BOOT LOADER: /bootia64.efi

  • LOAD OPTION: data into the parameter.txt file

efibootmgr -B -b 0002

Delete the second boot entry (BOOT0002).

efibootmgr -n 0005

Set the fifth boot entry (BOOT0005) to BOOT NEXT.

efibootmgr -o 0002,0005,0001

Define the new BOOT ORDER value.

efibootmgr -t 5

Set time-out to 5 seconds.

efibootmgr -O -N -T

Delete the BOOT NEXT, BOOT ORDER and TIMEOUT values.

 

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2007–2008 Hewlett-Packard Development Company, L.P.