efibootmgr: option requires an argument -- 'd' efibootmgr version 15 grub-install.real: error: efibootmgr failed to register the boot entry: Operation not permitted.

This sometimes happens when trying to install the EFI version of grub to a device when you are booted into Legacy/MBR mode.  It doesn't seem to occur on all machines, but some and seems somewhat BIOS dependent.

grub-install --target=x86_64-efi /dev/sda
Installing for x86_64-efi platform.
grub-install.real: warning: Couldn't find physical volume `(null)'. Some modules may be missing from core image..
grub-install.real: warning: Couldn't find physical volume `(null)'. Some modules may be missing from core image..
EFI variables are not supported on this system.
efibootmgr: option requires an argument -- 'd'
efibootmgr version 15
usage: efibootmgr [options]
    -a | --active         sets bootnum active
    -A | --inactive       sets bootnum inactive
    -b | --bootnum XXXX   modify BootXXXX (hex)
    -B | --delete-bootnum delete bootnum
    -c | --create         create new variable bootnum and add to bootorder
    -C | --create-only    create new variable bootnum and do not add to bootorder
    -D | --remove-dups    remove duplicate values from BootOrder
    -d | --disk disk       (defaults to /dev/sda) containing loader
    -r | --driver         Operate on Driver variables, not Boot Variables.
    -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
    -i | --iface name     create a netboot entry for the named interface
    -l | --loader name     (defaults to "\EFI\ubuntu\grub.efi")
    -L | --label label     Boot manager display label (defaults to "Linux")
    -m | --mirror-below-4G t|f mirror memory below 4GB
    -M | --mirror-above-4G X percentage memory to mirror above 4GB
    -n | --bootnext XXXX   set BootNext to XXXX (hex)
    -N | --delete-bootnext delete BootNext
    -o | --bootorder XXXX,YYYY,ZZZZ,...     explicitly set BootOrder (hex)
    -O | --delete-bootorder delete BootOrder
    -p | --part part        (defaults to 1) containing loader
    -q | --quiet            be quiet
    -t | --timeout seconds  set boot manager timeout waiting for user input.
    -T | --delete-timeout   delete Timeout.
    -u | --unicode | --UCS-2  handle extra args as UCS-2 (default is ASCII)
    -v | --verbose          print additional information
    -V | --version          return version and exit
    -w | --write-signature  write unique sig to MBR if needed
    -y | --sysprep          Operate on SysPrep variables, not Boot Variables.
    -@ | --append-binary-args file  append extra args from file (use "-" for stdin)
    -h | --help             show help/usage
grub-install.real: error: efibootmgr failed to register the boot entry: Operation not permitted.


Tags:

efibootmgr, requires, grub, install, register, entry, permitted, efi, booted, legacy, mbr, mode, doesn, occur, somewhat, bios, _, dev, sda, installing, platform, couldn, volume, null, modules, variables, supported, usage, active, bootnum, inactive, xxxx, modify, bootxxxx, hex, delete, variable, bootorder, dups, duplicate, disk, defaults, containing, loader, edd, creation, num, gpt, invalid, pmbr, iface, netboot, interface, quot, ubuntu, label, display, linux, gb, percentage, bootnext, yyyy, zzzz, explicitly, timeout, user, input, unicode, ucs, args, default, ascii, verbose, additional, sig, sysprep, append, binary, stdin,

Latest Articles

  • Proxmox How To Purge Ceph
  • VMWare ESXi/VSphere Disable Balloon Segfault in Services Solution
  • Apache Linux Debian Ubuntu Container how to manually restart without killing
  • Docker enable UTF8 in Container to stop seeing gibberish ? characters
  • Debian 8 How To Use Apt Update Archive sources.list
  • Debian Live CD Password
  • Forbidden You don't have permission to access this resource. [authz_core:error] [pid 338:tid 338] [client 1.2.3.4:55046] AH01630: client denied by server configuration:
  • The client needs a new connection for this request as the requested host name does not match the Server Name Indication (SNI) in use for this connection.
  • Asterisk RTP/audio not working in either direction in Docker NAT with a NAT client
  • dovecot: imap(root@localhost)<3702>: Error: Mailbox INBOX: mmap(size=352609044) failed with file /var/spool/mail/root/Maildir/dovecot.index.cache: Cannot allocate memory
  • Asterisk cannot find soundfile file.c:824 ast_openstream_full: File for-tech-support does not exist in any format
  • Apache Error solution - mktemp: failed to create directory via template '/var/lock/apache2.XXXXXXXXXX': No such file or directory
  • sysctl settings to reduce buffers and caches in Linux
  • Find /dev/sd block device of ata device - ata6: SATA link up 1.5 Gbps (SStatus 113 SControl 310) ata6.00: qc timeout (cmd 0xec) ata6.00: failed to IDENTIFY (I/O error, err_mask=0x4) ata6.00: revalidation failed (errno=-5)
  • Stuttering Audio on VOIP phones when first answering a call slow and fast audio
  • How to distribute the Microsoft VC Visual Studio Redistributable Files On Your Own
  • Nvidia video resolution and codec encode decode support matrix eg. h264 4k h265 HEVC VP9 Card List from GTX, RTX, Quadro
  • Japan and China ping time observations
  • ffmpeg convert to another format eg h265 to h264
  • Apache stop bots and hackers by using forensic logging.