Hi there,

I have the same problem here. I'm using rEFInd to boot.

---
# dpkg -l efibootmgr
Desired=Unknown/Install/Remove/Purge/Hold
|
Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Nome              Versão        Arquitectura  Descrição
+++-=================-=============-=============-========================================
ii  efibootmgr        0.9.0-2       amd64         Interact with the EFI
Boot Manager

# sudo efibootmgr
BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 2001,2002,2003
Boot0000* USB HDD: SMI     USB DISK
Boot0005* KINGSTON ...
Boot2001* EFI USB Device
Boot2002* EFI DVD/CDROM
Boot2003* EFI Network

# find /boot/efi -ls
     1    4 drwxr-xr-x   3 root     root         4096 Dez 31  1969 /boot/efi
   114    4 drwxr-xr-x   3 root     root         4096 Out 29 20:54
/boot/efi/EFI
   116    4 drwxr-xr-x   2 root     root         4096 Jun  2 19:33
/boot/efi/EFI/debian
   118  156 -rwxr-xr-x   1 root     root       158208 Out 29 17:57
/boot/efi/EFI/debian/grubx64.efi
---

I tried Hillel Lubman approach and the grub work again, but when i try
only efibootmgr to add Debian entry in EFI this not work and the
following erro appear.

---
# efibootmgr -c -l "\\EFI\\debian\\grubx64.efi" -L "Debian" -v
Alternate GPT is invalid, using primary GPT.
Alternate GPT is invalid, using primary GPT.

Could not prepare boot variable: No such file or directory
---

In attachment follow the strace output for the above command.

execve("/bin/efibootmgr", ["efibootmgr", "-c", "-l", "\\EFI\\debian\\grubx64.efi", "-L", "Debian", "-v"], [/* 17 vars */]) = 0
brk(0)                                  = 0x244d000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f3a63edf000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=139028, ...}) = 0
mmap(NULL, 139028, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f3a63ebd000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libpci.so.3", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0%\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=52448, ...}) = 0
mmap(NULL, 2147632, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f3a63ab4000
mprotect(0x7f3a63abf000, 2097152, PROT_NONE) = 0
mmap(0x7f3a63cbf000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xb000) = 0x7f3a63cbf000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libz.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0 \"\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=109144, ...}) = 0
mmap(NULL, 2204200, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f3a63899000
mprotect(0x7f3a638b3000, 2093056, PROT_NONE) = 0
mmap(0x7f3a63ab2000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x19000) = 0x7f3a63ab2000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/usr/lib/x86_64-linux-gnu/libefivar.so.0", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220 \0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=63456, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f3a63ebc000
mmap(NULL, 2159512, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f3a63689000
mprotect(0x7f3a63690000, 2093056, PROT_NONE) = 0
mmap(0x7f3a6388f000, 40960, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6000) = 0x7f3a6388f000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\34\2\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1729984, ...}) = 0
mmap(NULL, 3836448, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f3a632e0000
mprotect(0x7f3a6347f000, 2097152, PROT_NONE) = 0
mmap(0x7f3a6367f000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x19f000) = 0x7f3a6367f000
mmap(0x7f3a63685000, 14880, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f3a63685000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libresolv.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220:\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=84856, ...}) = 0
mmap(NULL, 2189928, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f3a630c9000
mprotect(0x7f3a630dd000, 2093056, PROT_NONE) = 0
mmap(0x7f3a632dc000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x13000) = 0x7f3a632dc000
mmap(0x7f3a632de000, 6760, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f3a632de000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\320\16\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=14664, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f3a63ebb000
mmap(NULL, 2109712, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f3a62ec5000
mprotect(0x7f3a62ec8000, 2093056, PROT_NONE) = 0
mmap(0x7f3a630c7000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7f3a630c7000
close(3)                                = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f3a63eba000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f3a63eb9000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f3a63eb8000
arch_prctl(ARCH_SET_FS, 0x7f3a63eb9700) = 0
mprotect(0x7f3a6367f000, 16384, PROT_READ) = 0
mprotect(0x7f3a630c7000, 4096, PROT_READ) = 0
mprotect(0x7f3a632dc000, 4096, PROT_READ) = 0
mprotect(0x7f3a6388f000, 4096, PROT_READ) = 0
mprotect(0x7f3a63ab2000, 4096, PROT_READ) = 0
mprotect(0x7f3a63cbf000, 4096, PROT_READ) = 0
mprotect(0x60e000, 4096, PROT_READ)     = 0
mprotect(0x7f3a63ee1000, 4096, PROT_READ) = 0
munmap(0x7f3a63ebd000, 139028)          = 0
access("/sys/firmware/efi/efivars/", F_OK) = 0
statfs("/sys/firmware/efi/efivars/", {f_type="SYSFS_MAGIC", f_bsize=4096, f_blocks=0, f_bfree=0, f_bavail=0, f_files=0, f_ffree=0, f_fsid={0, 0}, f_namelen=255, f_frsize=4096}) = 0
access("/sys/firmware/efi/vars/new_var", F_OK) = 0
openat(AT_FDCWD, "/sys/firmware/efi/vars/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 3
brk(0)                                  = 0x244d000
brk(0x2476000)                          = 0x2476000
fcntl(3, F_GETFD)                       = 0x1 (flags FD_CLOEXEC)
fcntl(3, F_SETFD, FD_CLOEXEC)           = 0
getdents(3, /* 155 entries */, 32768)   = 12184
getdents(3, /* 0 entries */, 32768)     = 0
close(3)                                = 0
open("/sys/firmware/efi/vars/Boot0000-8be4df61-93ca-11d2-aa0d-00e098032b8c/raw_var", O_RDONLY) = 3
read(3, "B\0o\0o\0t\0000\0000\0000\0000\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) = 2084
read(3, "", 2012)                       = 0
close(3)                                = 0
open("/sys/firmware/efi/vars/Boot0005-8be4df61-93ca-11d2-aa0d-00e098032b8c/raw_var", O_RDONLY) = 3
read(3, "B\0o\0o\0t\0000\0000\0000\0005\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) = 2084
read(3, "", 2012)                       = 0
close(3)                                = 0
open("/sys/firmware/efi/vars/Boot2001-8be4df61-93ca-11d2-aa0d-00e098032b8c/raw_var", O_RDONLY) = 3
read(3, "B\0o\0o\0t\0002\0000\0000\0001\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) = 2084
read(3, "", 2012)                       = 0
close(3)                                = 0
open("/sys/firmware/efi/vars/Boot2002-8be4df61-93ca-11d2-aa0d-00e098032b8c/raw_var", O_RDONLY) = 3
read(3, "B\0o\0o\0t\0002\0000\0000\0002\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) = 2084
read(3, "", 2012)                       = 0
close(3)                                = 0
open("/sys/firmware/efi/vars/Boot2003-8be4df61-93ca-11d2-aa0d-00e098032b8c/raw_var", O_RDONLY) = 3
read(3, "B\0o\0o\0t\0002\0000\0000\0003\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) = 2084
read(3, "", 2012)                       = 0
close(3)                                = 0
open("/dev/sda", O_RDWR)                = 3
ioctl(3, BLKSSZGET, 512)                = 0
lseek(3, 0, SEEK_SET)                   = 0
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 512) = 512
fstat(3, {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 0), ...}) = 0
uname({sys="Linux", node="sensei", ...}) = 0
ioctl(3, BLKGETSIZE64, 128035676160)    = 0
ioctl(3, BLKSSZGET, 512)                = 0
ioctl(3, BLKSSZGET, 512)                = 0
lseek(3, 512, SEEK_SET)                 = 512
read(3, "EFI PART\0\0\1\0\\\0\0\0\326\2008\v\0\0\0\0\1\0\0\0\0\0\0\0"..., 512) = 512
ioctl(3, BLKSSZGET, 512)                = 0
lseek(3, 1024, SEEK_SET)                = 1024
read(3, "(s*\301\37\370\322\21\272K\0\240\311>\311;C&r1\230*\16G\2733\311\201\372G\257("..., 16384) = 16384
ioctl(3, BLKSSZGET, 512)                = 0
lseek(3, 256066715136, SEEK_SET)        = -1 EINVAL (Invalid argument)
ioctl(3, BLKSSZGET, 512)                = 0
lseek(3, 128035675648, SEEK_SET)        = 128035675648
read(3, "EFI PART\0\0\1\0\\\0\0\0\31\313\343\350\0\0\0\0\257\302\347\16\0\0\0\0"..., 512) = 512
ioctl(3, BLKSSZGET, 512)                = 0
lseek(3, 128035659264, SEEK_SET)        = 128035659264
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 16384) = 16384
ioctl(3, BLKSSZGET, 512)                = 0
lseek(3, 0, SEEK_SET)                   = 0
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 512) = 512
write(2, "Alternate GPT is invalid, using "..., 45Alternate GPT is invalid, using primary GPT.
) = 45
close(3)                                = 0
open("/dev/sda", O_RDWR)                = 3
ioctl(3, BLKSSZGET, 512)                = 0
lseek(3, 0, SEEK_SET)                   = 0
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 512) = 512
fstat(3, {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 0), ...}) = 0
uname({sys="Linux", node="sensei", ...}) = 0
ioctl(3, BLKGETSIZE64, 128035676160)    = 0
ioctl(3, BLKSSZGET, 512)                = 0
ioctl(3, BLKSSZGET, 512)                = 0
lseek(3, 512, SEEK_SET)                 = 512
read(3, "EFI PART\0\0\1\0\\\0\0\0\326\2008\v\0\0\0\0\1\0\0\0\0\0\0\0"..., 512) = 512
ioctl(3, BLKSSZGET, 512)                = 0
lseek(3, 1024, SEEK_SET)                = 1024
read(3, "(s*\301\37\370\322\21\272K\0\240\311>\311;C&r1\230*\16G\2733\311\201\372G\257("..., 16384) = 16384
ioctl(3, BLKSSZGET, 512)                = 0
lseek(3, 256066715136, SEEK_SET)        = -1 EINVAL (Invalid argument)
ioctl(3, BLKSSZGET, 512)                = 0
lseek(3, 128035675648, SEEK_SET)        = 128035675648
read(3, "EFI PART\0\0\1\0\\\0\0\0\31\313\343\350\0\0\0\0\257\302\347\16\0\0\0\0"..., 512) = 512
ioctl(3, BLKSSZGET, 512)                = 0
lseek(3, 128035659264, SEEK_SET)        = 128035659264
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 16384) = 16384
ioctl(3, BLKSSZGET, 512)                = 0
lseek(3, 0, SEEK_SET)                   = 0
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 512) = 512
write(2, "Alternate GPT is invalid, using "..., 45Alternate GPT is invalid, using primary GPT.
) = 45
close(3)                                = 0
access("/sys/firmware/efi/vars/Boot0001-8be4df61-93ca-11d2-aa0d-00e098032b8c/data", F_OK) = -1 ENOENT (No such file or directory)
open("/sys/firmware/efi/vars/new_var", O_WRONLY) = 3
write(3, "B\0o\0o\0t\0000\0000\0000\0001\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 2084) = -1 ENOSPC (No space left on device)
umask(0)                                = 022
umask(022)                              = 0
chmod("/sys/firmware/efi/vars/Boot0001-8be4df61-93ca-11d2-aa0d-00e0980/", 021371157541) = -1 ENOENT (No such file or directory)
chmod("/sys/firmware/efi/vars/Boot0001-8be4df61-93ca-11d2-aa0d-00e0980/attributes", 021371157541) = -1 ENOENT (No such file or directory)
chmod("/sys/firmware/efi/vars/Boot0001-8be4df61-93ca-11d2-aa0d-00e0980/data", 021371157541) = -1 ENOENT (No such file or directory)
chmod("/sys/firmware/efi/vars/Boot0001-8be4df61-93ca-11d2-aa0d-00e0980/guid", 021371157541) = -1 ENOENT (No such file or directory)
chmod("/sys/firmware/efi/vars/Boot0001-8be4df61-93ca-11d2-aa0d-00e0980/raw_var", 021371157541) = -1 ENOENT (No such file or directory)
chmod("/sys/firmware/efi/vars/Boot0001-8be4df61-93ca-11d2-aa0d-00e0980/size", 021371157541) = -1 ENOENT (No such file or directory)
close(3)                                = 0
write(2, "\nCould not prepare boot variable"..., 61
Could not prepare boot variable: No such file or directory

) = 61
exit_group(1)                           = ?
+++ exited with 1 +++

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to