You are not logged in.

#1 2013-11-30 19:59:19

ridcully
Member
Registered: 2009-03-28
Posts: 52

Issues on installing boot files

Hi,

I try to install the boot files on my EFI system following the instructions over here.  However, I get the following error:

# grub-install --target=x86_64-efi --efi-directory=$esp --bootloader-id=grub --recheck --debug

** Warning ** : Boot000a is not EFI 1.10 complaint (lowercase hex in name)
** Warning ** : Boot000b is not EFI 1.10 complaint (lowercase hex in name)
** Warning ** : please recreate these using efibootmgr to remove this warning

Could not prepare boot variable: No space left on device

The debug output also shows some invalid pointer error

*** Error in `efibootmgr': munmap_chunk(): invalid pointer: .....

Any ideas? EFI really breaks my heart (I just remember that I've spent last time quite some time in order to get this running) :-(

Thanks in advance!
Best,
  Michael

Offline

#2 2013-11-30 20:10:01

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Issues on installing boot files

--efi-directory=$esp

Really?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2013-11-30 20:21:31

ridcully
Member
Registered: 2009-03-28
Posts: 52

Re: Issues on installing boot files

jasonwryan wrote:

--efi-directory=$esp

Really?

No. I've wrote this post from my notebook while I'm installing my desktop and simply copied over the line from the wiki (and I have not enabled ssh so I could simply copy/paste it (that's also the reason while there is not pointer address in the munmap error and the full efibootmgr -v output). Basically, it's the following command

# grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=grub --recheck --debug

The boot directory is not a seperate partition and I've mounted the EFI system partition to /boot/efi.

Last edited by ridcully (2013-11-30 20:36:00)

Offline

#4 2013-12-01 13:04:03

the.ridikulus.rat
Member
From: Indiana, USA
Registered: 2011-10-04
Posts: 765

Offline

#5 2013-12-04 11:24:49

ridcully
Member
Registered: 2009-03-28
Posts: 52

Re: Issues on installing boot files

Hi,

before the installation I've removed via the UEFI shell the existing boot manager entries. I've read some odd stories about cleaning up the NVRAM, so maybe this is the issue of the whole dilemna?

I've used the following command

Shell> bcfg boot rm <id>

Nevertheless, going throught the checklist:

* EFI Runtime Services is present in the kernel

CONFIG_EFI_PARTITION=y
CONFIG_EFI=y
CONFIG_EFI_STUB=y
CONFIG_EFI_VARS=y
CONFIG_EFI_VARS_PSTORE=y
# CONFIG_EFI_VARS_PSTORE_DEFAULT_DISABLE is not set

* The kernel processor bitness/arch and EFI processor bitness/arch match (the CD was used for the same machine for a previous installation)

* Kernel was booted in EFI mode.

* EFI Runtime Services was not disabled via kernel cmdline

* efivarfs filesystem was mounted at /sys/firmware/efi/efivarsefivar

* The command efivar was not available on the CD so I've "installed" it.

root@archiso ~ # efivar -l
4599d26f-1a11-49b8-b91f-858745cff824-StdDefaults
8be4df61-93ca-11d2-aa0d-00e098032b8c-MonotonicCounter
9d0da369-540b-46f8-85a0-2b5f2c301e15-EfiTime
c89dc9c7-5105-472c-a743-b1621e142b41-CMOSfailflag
ec87d643-eba4-4bb5-a1e5-3f3e36b20da9-Setup
53ec90ac-259e-4145-a8fd-911fcbe94930-FCpuMaxRatio
ec87d643-eba4-4bb5-a1e5-3f3e36b20da9-SetupCpuFeatures
8be4df61-93ca-11d2-aa0d-00e098032b8c-CurVID.
ec5ff312-bb97-465a-94fd-c84c2cb80e53-IccOcFlag
8be4df61-93ca-11d2-aa0d-00e098032b8c-MemCeil.
560bf58a-1e0d-4d7e-953f-2980a261e031-PNP0604_0_NV
560bf58a-1e0d-4d7e-953f-2980a261e031-PNP0400_0_NV
560bf58a-1e0d-4d7e-953f-2980a261e031-PNP0501_0_NV
560bf58a-1e0d-4d7e-953f-2980a261e031-PNP0501_1_NV
560bf58a-1e0d-4d7e-953f-2980a261e031-PNP0510_0_NV
8be4df61-93ca-11d2-aa0d-00e098032b8c-ConOut
8be4df61-93ca-11d2-aa0d-00e098032b8c-ConIn
ec87d643-eba4-4bb5-a1e5-3f3e36b20da9-SetupHWMFeatures
c05fba7d-7a92-49e0-bcee-233b14dca803-VARSTORE_OCMR_SETTINGS_NAME
8be4df61-93ca-11d2-aa0d-00e098032b8c-Lang
8be4df61-93ca-11d2-aa0d-00e098032b8c-PlatformLang
45cf35f6-0d6e-4d04-856a-0370a5b16f53-DefaultBootOrder
3c4ead08-45ae-4315-8d15-a60eaa8caf69-DefaultLegacyDevOrder
af9ffd67-ec10-488a-9dfc-6cbf5ee22c2e-AcpiGlobalVariable
30b98b95-dfa3-4501-a3ce-e38c186384a0-CpuS3Resume
c811fa38-42c8-4579-a9bb-60e94eddfb34-AMITSESetup
93c483a1-d3fa-4e92-b437-733b2a346e23-VARSTORE_OCMR_TIMING_SETTINGS_NAME
f61b2305-aac3-4c9d-8f25-3a4313f9cc0e-EPUflag
a56074db-65fe-45f7-bd21-2d2bdd8e9652-LegacyDevOrder
a56074db-65fe-45f7-bd21-2d2bdd8e9652-LegacyDevChecksum
8be4df61-93ca-11d2-aa0d-00e098032b8c-Timeout
8be4df61-93ca-11d2-aa0d-00e098032b8c-Boot0002
6737934b-a27e-4c05-ad5b-6ab86273680b-MrcS3Resume
8be4df61-93ca-11d2-aa0d-00e098032b8c-Boot000a
8be4df61-93ca-11d2-aa0d-00e098032b8c-Boot0000
8be4df61-93ca-11d2-aa0d-00e098032b8c-BootOrder
8be4df61-93ca-11d2-aa0d-00e098032b8c-Boot000b
490216c0-076a-44d3-a536-ace05c90e386-NBMemoryInfo
ec87d643-eba4-4bb5-a1e5-3f3e36b20da9-UsbMassDevNum
8be4df61-93ca-11d2-aa0d-00e098032b8c-ConOutDev
8be4df61-93ca-11d2-aa0d-00e098032b8c-ConInDev
560bf58a-1e0d-4d7e-953f-2980a261e031-PNP0604_0_VV
560bf58a-1e0d-4d7e-953f-2980a261e031-PNP0400_0_VV
560bf58a-1e0d-4d7e-953f-2980a261e031-PNP0501_0_VV
560bf58a-1e0d-4d7e-953f-2980a261e031-PNP0501_1_VV
560bf58a-1e0d-4d7e-953f-2980a261e031-PNP0510_0_VV
8be4df61-93ca-11d2-aa0d-00e098032b8c-ConErrDev
8be4df61-93ca-11d2-aa0d-00e098032b8c-LangCodes
8be4df61-93ca-11d2-aa0d-00e098032b8c-PlatformLangCodes
8be4df61-93ca-11d2-aa0d-00e098032b8c-BootCurrent
1b838190-4625-4ead-abc9-cd5e6af18fe0-HiiDB
4a67b082-0a4c-41cf-b6c7-440b29bb8c4f-LoaderTimeInitUSec
4a67b082-0a4c-41cf-b6c7-440b29bb8c4f-LoaderInfo
4a67b082-0a4c-41cf-b6c7-440b29bb8c4f-LoaderFirmwareInfo
4a67b082-0a4c-41cf-b6c7-440b29bb8c4f-LoaderFirmwareType
4a67b082-0a4c-41cf-b6c7-440b29bb8c4f-LoaderDeviceIdentifier
4a67b082-0a4c-41cf-b6c7-440b29bb8c4f-LoaderImageIdentifier
4a67b082-0a4c-41cf-b6c7-440b29bb8c4f-LoaderTimeMenuUSec
4a67b082-0a4c-41cf-b6c7-440b29bb8c4f-LoaderEntrySelected
4a67b082-0a4c-41cf-b6c7-440b29bb8c4f-LoaderTimeExecUSec

Apparently there is no error printing the efi variables. The efivar command also returns no error in the chroot (and I've also mounted the efivars in the chroot). If I try to create the boot manager entry. I receive the following error

[root@archiso /]# efibootmgr -c -d /dev/sda -p 1 -l /EFI/refind/refind_x64.efi -L "ArchLinux Boot Manager"
** Warning ** : Boot000a is not EFI 1.10 compliant (lowercase hex in name)
** Warning ** : Boot000b is not EFI 1.10 compliant (lowercase hex in name)
** Warning ** : please recreate these using efibootmgr to remove this warning.

Could not prepare boot variable: No space left on device

Offline

#6 2013-12-04 16:00:58

the.ridikulus.rat
Member
From: Indiana, USA
Registered: 2011-10-04
Posts: 765

Re: Issues on installing boot files

@ridcully: Post the output of "efibootmgr -v".

EDIT 1: I notified this issue to Fedora's Peter Jones, whose efibootmgr fork Arch is using currently (via his efivar library). I suggest contacting him directly with all the details. He is https://github.com/vathpela or "pjones" in freenode irc.

EDIT 2: Post your kernel pkgver, efibootmgr pkgver, efivar pkgver, and a strace of the efibootmgr.

Last edited by the.ridikulus.rat (2013-12-04 16:08:38)

Offline

#7 2013-12-31 13:33:16

ridcully
Member
Registered: 2009-03-28
Posts: 52

Re: Issues on installing boot files

Hi,

unfortunately this took some time since I went on a business trip/vacation. Sorry for that! So, that is all the output from the installed system (which never booted). The ouput of efibootmgr -v is

[root@archiso /]# efibootmgr -v
** Warning ** : Boot000a is not EFI 1.10 compliant (lowercase hex in name)
** Warning ** : Boot000b is not EFI 1.10 compliant (lowercase hex in name)
** Warning ** : please recreate these using efibootmgr to remove this warning.
*** Error in `efibootmgr': munmap_chunk(): invalid pointer: 0x00000000012ee248 ***
======= Backtrace: =========
/usr/lib/libc.so.6(+0x72e5f)[0x7fa76cc50e5f]
/usr/lib/libc.so.6(+0x7862e)[0x7fa76cc5662e]
/usr/lib/libefivar.so.0(+0x2e51)[0x7fa76cf8be51]
/usr/lib/libefivar.so.0(efi_get_variable+0x65)[0x7fa76cf8acae]
efibootmgr[0x402ee9]
efibootmgr[0x4028f9]
/usr/lib/libc.so.6(__libc_start_main+0xf5)[0x7fa76cbffbc5]
efibootmgr[0x402ad9]
======= Memory map: ========
00400000-00409000 r-xp 00000000 08:03 5785067                            /usr/bin/efibootmgr
00608000-00609000 r--p 00008000 08:03 5785067                            /usr/bin/efibootmgr
00609000-0060a000 rw-p 00009000 08:03 5785067                            /usr/bin/efibootmgr
012ee000-01317000 rw-p 00000000 00:00 0                                  [heap]
7fa76c7b1000-7fa76c7c6000 r-xp 00000000 08:03 5773459                    /usr/lib/libgcc_s.so.1
7fa76c7c6000-7fa76c9c6000 ---p 00015000 08:03 5773459                    /usr/lib/libgcc_s.so.1
7fa76c9c6000-7fa76c9c7000 rw-p 00015000 08:03 5773459                    /usr/lib/libgcc_s.so.1
7fa76c9c7000-7fa76c9db000 r-xp 00000000 08:03 5770456                    /usr/lib/libresolv-2.18.so
7fa76c9db000-7fa76cbda000 ---p 00014000 08:03 5770456                    /usr/lib/libresolv-2.18.so
7fa76cbda000-7fa76cbdb000 r--p 00013000 08:03 5770456                    /usr/lib/libresolv-2.18.so
7fa76cbdb000-7fa76cbdc000 rw-p 00014000 08:03 5770456                    /usr/lib/libresolv-2.18.so
7fa76cbdc000-7fa76cbde000 rw-p 00000000 00:00 0 
7fa76cbde000-7fa76cd80000 r-xp 00000000 08:03 5770445                    /usr/lib/libc-2.18.so
7fa76cd80000-7fa76cf7f000 ---p 001a2000 08:03 5770445                    /usr/lib/libc-2.18.so
7fa76cf7f000-7fa76cf83000 r--p 001a1000 08:03 5770445                    /usr/lib/libc-2.18.so
7fa76cf83000-7fa76cf85000 rw-p 001a5000 08:03 5770445                    /usr/lib/libc-2.18.so
7fa76cf85000-7fa76cf89000 rw-p 00000000 00:00 0 
7fa76cf89000-7fa76cf8f000 r-xp 00000000 08:03 5785055                    /usr/lib/libefivar.so.0
7fa76cf8f000-7fa76d18e000 ---p 00006000 08:03 5785055                    /usr/lib/libefivar.so.0
7fa76d18e000-7fa76d18f000 rw-p 00005000 08:03 5785055                    /usr/lib/libefivar.so.0
7fa76d18f000-7fa76d19a000 r-xp 00000000 08:03 5784354                    /usr/lib/libpci.so.3.2.0
7fa76d19a000-7fa76d399000 ---p 0000b000 08:03 5784354                    /usr/lib/libpci.so.3.2.0
7fa76d399000-7fa76d39a000 r--p 0000a000 08:03 5784354                    /usr/lib/libpci.so.3.2.0
7fa76d39a000-7fa76d39b000 rw-p 0000b000 08:03 5784354                    /usr/lib/libpci.so.3.2.0
7fa76d39b000-7fa76d3bb000 r-xp 00000000 08:03 5770432                    /usr/lib/ld-2.18.so
7fa76d5b0000-7fa76d5b5000 rw-p 00000000 00:00 0 
7fa76d5b9000-7fa76d5ba000 rw-p 00000000 00:00 0 
7fa76d5ba000-7fa76d5bb000 r--p 0001f000 08:03 5770432                    /usr/lib/ld-2.18.so
7fa76d5bb000-7fa76d5bc000 rw-p 00020000 08:03 5770432                    /usr/lib/ld-2.18.so
7fa76d5bc000-7fa76d5bd000 rw-p 00000000 00:00 0 
7fff80b8d000-7fff80bae000 rw-p 00000000 00:00 0                          [stack]
7fff80bfe000-7fff80c00000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
Aborted (core dumped)

I'm a bit puzzled about the core dump. The output of the strace

[root@archiso /]# strace efibootmgr -c -d /dev/sda -p 1 -l /EFI/refind/refind_x64.efi -L "rEFInd"
execve("/usr/bin/efibootmgr", ["efibootmgr", "-c", "-d", "/dev/sda", "-p", "1", "-l", "/EFI/refind/refind_x64.efi", "-L", "rEFInd"], [/* 31 vars */]) = 0
brk(0)                                  = 0x7e4000
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=19948, ...}) = 0
mmap(NULL, 19948, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f54bfd01000
close(3)                                = 0
open("/usr/lib/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\260#\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=48312, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f54bfd00000
mmap(NULL, 2143408, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f54bf8db000
mprotect(0x7f54bf8e6000, 2093056, PROT_NONE) = 0
mmap(0x7f54bfae5000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xa000) = 0x7f54bfae5000
close(3)                                = 0
open("/usr/lib/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\240\22\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=25528, ...}) = 0
mmap(NULL, 2121376, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f54bf6d5000
mprotect(0x7f54bf6db000, 2093056, PROT_NONE) = 0
mmap(0x7f54bf8da000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x5000) = 0x7f54bf8da000
close(3)                                = 0
open("/usr/lib/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\0\320\34\2\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=2027541, ...}) = 0
mmap(NULL, 3844624, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f54bf32a000
mprotect(0x7f54bf4cc000, 2093056, PROT_NONE) = 0
mmap(0x7f54bf6cb000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1a1000) = 0x7f54bf6cb000
mmap(0x7f54bf6d1000, 14864, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f54bf6d1000
close(3)                                = 0
open("/usr/lib/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|0755, st_size=84840, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f54bfcff000
mmap(NULL, 2189928, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f54bf113000
mprotect(0x7f54bf127000, 2093056, PROT_NONE) = 0
mmap(0x7f54bf326000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x13000) = 0x7f54bf326000
mmap(0x7f54bf328000, 6760, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f54bf328000
close(3)                                = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f54bfcfe000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f54bfcfd000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f54bfcfc000
arch_prctl(ARCH_SET_FS, 0x7f54bfcfd700) = 0
mprotect(0x7f54bf6cb000, 16384, PROT_READ) = 0
mprotect(0x7f54bf326000, 4096, PROT_READ) = 0
mprotect(0x7f54bfae5000, 4096, PROT_READ) = 0
mprotect(0x608000, 4096, PROT_READ)     = 0
mprotect(0x7f54bfd06000, 4096, PROT_READ) = 0
munmap(0x7f54bfd01000, 19948)           = 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)                                  = 0x7e4000
brk(0x80d000)                           = 0x80d000
fcntl(3, F_GETFD)                       = 0x1 (flags FD_CLOEXEC)
fcntl(3, F_SETFD, FD_CLOEXEC)           = 0
getdents(3, /* 65 entries */, 32768)    = 4600
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/Boot0002-8be4df61-93ca-11d2-aa0d-00e098032b8c/raw_var", O_RDONLY) = 3
read(3, "B\0o\0o\0t\0000\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/Boot000a-8be4df61-93ca-11d2-aa0d-00e098032b8c/raw_var", O_RDONLY) = 3
read(3, "B\0o\0o\0t\0000\0000\0000\0a\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/Boot000b-8be4df61-93ca-11d2-aa0d-00e098032b8c/raw_var", O_RDONLY) = 3
read(3, "B\0o\0o\0t\0000\0000\0000\0b\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
write(2, "** Warning ** : Boot000a is not "..., 75** Warning ** : Boot000a is not EFI 1.10 compliant (lowercase hex in name)
) = 75
write(2, "** Warning ** : Boot000b is not "..., 75** Warning ** : Boot000b is not EFI 1.10 compliant (lowercase hex in name)
) = 75
write(2, "** Warning ** : please recreate "..., 79** Warning ** : please recreate these using efibootmgr to remove this warning.
) = 79
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="archiso", ...}) = 0
ioctl(3, BLKGETSIZE64, 256060514304)    = 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\313\203 '\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;\30M^\317\257\337HK\2646q\344\205\341\337\352"..., 16384) = 16384
ioctl(3, BLKSSZGET, 512)                = 0
lseek(3, 256060513792, SEEK_SET)        = 256060513792
read(3, "EFI PART\0\0\1\0\\\0\0\0\5.\26\200\0\0\0\0\2572\317\35\0\0\0\0"..., 512) = 512
ioctl(3, BLKSSZGET, 512)                = 0
lseek(3, 256060497408, SEEK_SET)        = 256060497408
read(3, "(s*\301\37\370\322\21\272K\0\240\311>\311;\30M^\317\257\337HK\2646q\344\205\341\337\352"..., 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
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="archiso", ...}) = 0
ioctl(3, BLKGETSIZE64, 256060514304)    = 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\313\203 '\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;\30M^\317\257\337HK\2646q\344\205\341\337\352"..., 16384) = 16384
ioctl(3, BLKSSZGET, 512)                = 0
lseek(3, 256060513792, SEEK_SET)        = 256060513792
read(3, "EFI PART\0\0\1\0\\\0\0\0\5.\26\200\0\0\0\0\2572\317\35\0\0\0\0"..., 512) = 512
ioctl(3, BLKSSZGET, 512)                = 0
lseek(3, 256060497408, SEEK_SET)        = 256060497408
read(3, "(s*\301\37\370\322\21\272K\0\240\311>\311;\30M^\317\257\337HK\2646q\344\205\341\337\352"..., 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
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)
close(3)                                = 0
write(2, "\nCould not prepare boot variable"..., 59
Could not prepare boot variable: No space left on device

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

The pkg versions are

efivar 0.7-1
linux-kernel 3.12.1-3
efibootmgr 0.6.0.138.1132342-1

Last edited by ridcully (2013-12-31 13:38:29)

Offline

#8 2013-12-31 15:43:54

Gulver
Member
Registered: 2013-05-24
Posts: 208

Re: Issues on installing boot files

I had the same problem in my first arch installation. Everything seemed fine but it did not boot anyway.

Even tho wiki says it is unnecessary and deleted this; try adding <--root-directory=/> in grub-install.

# grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=grub --root-directory=/ --recheck --debug

Edit: May your Efi partition is too tiny to be used? roll

Last edited by Gulver (2013-12-31 15:48:56)

Offline

#9 2014-01-02 15:37:21

ridcully
Member
Registered: 2009-03-28
Posts: 52

Re: Issues on installing boot files

Gulver wrote:

I had the same problem in my first arch installation. Everything seemed fine but it did not boot anyway.

Even tho wiki says it is unnecessary and deleted this; try adding <--root-directory=/> in grub-install.

# grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=grub --root-directory=/ --recheck --debug

The problem is not the grub-install per se, but creating the ArchLinux EFI boot manager entry. I've added a boot manager entry via UEFI shell (bfcg) and get an input/output error now if I execute the grub command.

Gulver wrote:

Edit: May your Efi partition is too tiny to be used? roll

Unfortunately not:

[root@archiso ~]# df -h
...
/dev/sda1                    127M   30M   97M  24% /boot/efi

EDIT: I've tried to install the Ubuntu's Firmware Test Suite, but failed. The versions in AUR seem to be broken.

EDIT: The core dump of the efibootmgr -v seems to be the result of not mounting the efivars inside the chroot. If I do mount the efivars, the core dump goes away, but the efibootmgr call inside grub-install still fails :-/

Last edited by ridcully (2014-01-02 16:35:52)

Offline

Board footer

Powered by FluxBB