You are not logged in.

#1 2013-04-20 13:51:29

mrmandrill
Member
Registered: 2012-08-23
Posts: 4

Asus Motherboard (UEFI) Can't boot rEFInd / arch

Hi,

I would really appreciated any help possible, I'm on my 5th or 6th attempt at a UEFI installation using arch and still no luck. I've been using the beginners arch install. I'm I confident Linux user, just haven't installed arch for a while and whole UEFI system is new to me.

Apologies if there is an answer else where on the forum, I've looked but can't find answer

I've booted latest CD image in UEFI mode and enable efivars module.

Partitioned primary disk:

Number  Start   End     Size    File system     Name        Flags
 1      1049kB  1075MB  1074MB  fat32           EFISYS      boot
 2      1075MB  194GB   193GB   ext4            Arch_Linux
 3      194GB   200GB   5701MB  linux-swap(v1)  Linux_Swap

mounted disks:

/etc/mtab

/dev/sda2 /mnt ext4 rw,relatime,data=ordered 0 0
/dev/sda1 /mnt/boot/efi vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 0
/dev/sdb1 /mnt/home ext4 rw,relatime,data=ordered 0 0

pacstraped base
configured environment and locale etc

I believe I've setup efi partition correctly, here's listing

 ls -lR /mnt/boot
/mnt/boot:
total 20424
drwxr-xr-x 3 root root     4096 Jan  1  1970 efi/
-rw-r--r-- 1 root root 14244562 Apr 19 20:40 initramfs-linux-fallback.img
-rw-r--r-- 1 root root  2936966 Apr 19 20:40 initramfs-linux.img
-rw-r--r-- 1 root root  3722544 Apr 13 07:06 vmlinuz-linux

/mnt/boot/efi:
total 4
drwxr-xr-x 5 root root 4096 Apr 19 20:51 EFI/

/mnt/boot/efi/EFI:
total 12
drwxr-xr-x 2 root root 4096 Apr 19 20:54 arch/
drwxr-xr-x 3 root root 4096 Apr 19 20:50 refind/
drwxr-xr-x 3 root root 4096 Apr 19 20:51 tools/

/mnt/boot/efi/EFI/arch:
total 20424
-rwxr-xr-x 1 root root 14244562 Apr 19 20:43 initramfs-arch-fallback.img*
-rwxr-xr-x 1 root root  2936966 Apr 19 20:43 initramfs-arch.img*
-rwxr-xr-x 1 root root      277 Apr 19 20:58 refind_linux.conf*
-rwxr-xr-x 1 root root  3722544 Apr 19 20:42 vmlinuz-arch.efi*

/mnt/boot/efi/EFI/refind:
total 176
drwxr-xr-x 2 root root   4096 Apr 19 20:50 icons/
-rwxr-xr-x 1 root root  17452 Apr 19 20:49 refind.conf*
-rwxr-xr-x 1 root root 154816 Apr 19 20:48 refind_x64.efi*

/mnt/boot/efi/EFI/refind/icons:
total 1152
-rwxr-xr-x 1 root root  4367 Apr 19 20:50 arrow_left.icns*
-rwxr-xr-x 1 root root  4331 Apr 19 20:50 arrow_right.icns*
-rwxr-xr-x 1 root root 27657 Apr 19 20:50 boot_linux.icns*
-rwxr-xr-x 1 root root 22376 Apr 19 20:50 boot_win.icns*
-rwxr-xr-x 1 root root  5456 Apr 19 20:50 func_about.icns*
-rwxr-xr-x 1 root root  6797 Apr 19 20:50 func_exit.icns*
-rwxr-xr-x 1 root root  6888 Apr 19 20:50 func_reset.icns*
-rwxr-xr-x 1 root root  7068 Apr 19 20:50 func_shutdown.icns*
-rwxr-xr-x 1 root root 25092 Apr 19 20:50 os_altlinux.icns*
-rwxr-xr-x 1 root root 32916 Apr 19 20:50 os_arch.icns*
-rwxr-xr-x 1 root root 43957 Apr 19 20:50 os_centos.icns*
-rwxr-xr-x 1 root root 38447 Apr 19 20:50 os_debian.icns*
-rwxr-xr-x 1 root root 37229 Apr 19 20:50 os_ecomstation.icns*
-rwxr-xr-x 1 root root 60007 Apr 19 20:50 os_fatdog.icns*
-rwxr-xr-x 1 root root 29506 Apr 19 20:50 os_fedora.icns*
-rwxr-xr-x 1 root root 42995 Apr 19 20:50 os_freebsd.icns*
-rwxr-xr-x 1 root root 26268 Apr 19 20:50 os_freedos.icns*
-rwxr-xr-x 1 root root 36972 Apr 19 20:50 os_gentoo.icns*
-rwxr-xr-x 1 root root 33056 Apr 19 20:50 os_gummiboot.icns*
-rwxr-xr-x 1 root root 37803 Apr 19 20:50 os_haiku.icns*
-rwxr-xr-x 1 root root 33262 Apr 19 20:50 os_hwtest.icns*
-rwxr-xr-x 1 root root 39287 Apr 19 20:50 os_legacy.icns*
-rwxr-xr-x 1 root root 28209 Apr 19 20:50 os_linux.icns*
-rwxr-xr-x 1 root root 36417 Apr 19 20:50 os_linuxmint.icns*
-rwxr-xr-x 1 root root 26950 Apr 19 20:50 os_mac.icns*
-rwxr-xr-x 1 root root 23404 Apr 19 20:50 os_mandriva.icns*
-rwxr-xr-x 1 root root 29339 Apr 19 20:50 os_netbsd.icns*
-rwxr-xr-x 1 root root 35871 Apr 19 20:50 os_openbsd.icns*
-rwxr-xr-x 1 root root 34024 Apr 19 20:50 os_redhat.icns*
-rwxr-xr-x 1 root root 29086 Apr 19 20:50 os_refit.icns*
-rwxr-xr-x 1 root root 46048 Apr 19 20:50 os_slackware.icns*
-rwxr-xr-x 1 root root 41340 Apr 19 20:50 os_suse.icns*
-rwxr-xr-x 1 root root 27439 Apr 19 20:50 os_ubuntu.icns*
-rwxr-xr-x 1 root root 29750 Apr 19 20:50 os_unknown.icns*
-rwxr-xr-x 1 root root 40868 Apr 19 20:50 os_win.icns*
-rwxr-xr-x 1 root root  7072 Apr 19 20:50 tool_apple_rescue.icns*
-rwxr-xr-x 1 root root  6057 Apr 19 20:50 tool_mok_tool.icns*
-rwxr-xr-x 1 root root  7883 Apr 19 20:50 tool_part.icns*
-rwxr-xr-x 1 root root  6724 Apr 19 20:50 tool_shell.icns*
-rwxr-xr-x 1 root root 18262 Apr 19 20:50 transparent.icns*
-rwxr-xr-x 1 root root  3399 Apr 19 20:50 vol_external.icns*
-rwxr-xr-x 1 root root  3566 Apr 19 20:50 vol_internal.icns*
-rwxr-xr-x 1 root root  3772 Apr 19 20:50 vol_optical.icns*

/mnt/boot/efi/EFI/tools:
total 4
drwxr-xr-x 3 root root 4096 Apr 19 20:51 drivers/

/mnt/boot/efi/EFI/tools/drivers:
total 4
drwxr-xr-x 2 root root 4096 Apr 19 20:51 drivers_x64/

/mnt/boot/efi/EFI/tools/drivers/drivers_x64:
total 168
-rwxr-xr-x 1 root root 31936 Apr 19 20:51 ext2_x64.efi*
-rwxr-xr-x 1 root root 32352 Apr 19 20:51 ext4_x64.efi*
-rwxr-xr-x 1 root root 34944 Apr 19 20:51 hfs_x64.efi*
-rwxr-xr-x 1 root root 32032 Apr 19 20:51 iso9660_x64.efi*
-rwxr-xr-x 1 root root 35200 Apr 19 20:51 reiserfs_x64.efi*

created some conf files

/mnt/boot/efi/EFI # cat arch/refind_linux.conf
"Boot with defaults"            "root=PARTUUID=6501bc73-07d8-4d02-b2aa-61f9e549f674 ro rootfstype=ext4 add_efi_memmap systemd.unit=graphical.target"
"Boot to terminal"              "root=PARTUUID=6501bc73-07d8-4d02-b2aa-61f9e549f674 ro rootfstype=ext4 add_efi_memmap systemd.unit=multi-user.target"

copied defualt refind.conf from /usr/lib without changes.

install refind to efistub using efibootmgr

 efibootmgr
BootCurrent: 0006
Timeout: 0 seconds
BootOrder: 0000,0006,0005,0004
Boot0000* rEFInd
Boot0004  CD/DVD Drive
Boot0005* Hard Drive
Boot0006* UEFI: P3: ASUS    DRW-2014L1T

I then unmount and reboot.

Nothing - just bios logo then blank screen and flashing cursor.

I can boot to efi shell using Arch cd and switch to fs0, from there I can load refind. It has three options, none of which relate to my settings and don't work.

Can anyone help, I feel like the answer / solution is close and hopefully simple.

Offline

#2 2013-04-20 17:36:18

srs5694
Member
From: Woonsocket, RI
Registered: 2012-11-06
Posts: 719
Website

Re: Asus Motherboard (UEFI) Can't boot rEFInd / arch

Please show the output of "efibootmgr -v". Unfortunately, the short form that you posted omits critical information on how the path to the program is specified and what boot options it uses. Providing the exact efibootmgr command you used to add the entry would also be helpful, but you may not longer have it available.

Another point, albeit not one that's causing your current problem: By default, rEFInd scans the "drivers" and "drivers_x64" subdirectories of its own directory for drivers. You've installed drivers in the EFI/tools/drivers/drivers_x64 directory of the ESP, which rEFInd won't scan unless you edit the refind.conf file to include that directory via the "scan_driver_dirs" option. If you move the driver files (or at least the ext4_x64.efi file) to a new EFI/refind/drivers_x64 directory, then rEFInd will be able to read your kernel from your Linux root (/) partition (/dev/sda2), obviating the need to copy the kernel to the ESP. If you do this, you'll also want to move or copy the refind_linux.conf file to the Linux /boot directory. In the long run this will be an easier-to-maintain setup than what you've got now. In the short term, though, it might be better to get what you've got working before fiddling with that.

Offline

#3 2013-04-20 17:53:01

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,600
Website

Re: Asus Motherboard (UEFI) Can't boot rEFInd / arch


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#4 2013-04-20 18:15:17

mrmandrill
Member
Registered: 2012-08-23
Posts: 4

Re: Asus Motherboard (UEFI) Can't boot rEFInd / arch

Graysky, Is that method only for grub, trying to use refind, unless there's a reason I shouldn't.

Offline

#5 2013-04-20 18:16:31

mrmandrill
Member
Registered: 2012-08-23
Posts: 4

Re: Asus Motherboard (UEFI) Can't boot rEFInd / arch

srs5694 wrote:

Please show the output of "efibootmgr -v". Unfortunately, the short form that you posted omits critical information on how the path to the program is specified and what boot options it uses. Providing the exact efibootmgr command you used to add the entry would also be helpful, but you may not longer have it available.

Another point, albeit not one that's causing your current problem: By default, rEFInd scans the "drivers" and "drivers_x64" subdirectories of its own directory for drivers. You've installed drivers in the EFI/tools/drivers/drivers_x64 directory of the ESP, which rEFInd won't scan unless you edit the refind.conf file to include that directory via the "scan_driver_dirs" option. If you move the driver files (or at least the ext4_x64.efi file) to a new EFI/refind/drivers_x64 directory, then rEFInd will be able to read your kernel from your Linux root (/) partition (/dev/sda2), obviating the need to copy the kernel to the ESP. If you do this, you'll also want to move or copy the refind_linux.conf file to the Linux /boot directory. In the long run this will be an easier-to-maintain setup than what you've got now. In the short term, though, it might be better to get what you've got working before fiddling with that.

/mnt/boot/efi/EFI # efibootmgr -v
BootCurrent: 0006
Timeout: 0 seconds
BootOrder: 0000,0006,0005,0004
Boot0000* rEFInd        Vendor(99e275e7-75a0-4b37-a2e6-c5385e6c00cb,)
Boot0004  CD/DVD Drive  BIOS(3,0,00)AMGOAMNO........o.A.S.U.S. . . . .D.R.W.-.2.0.1.4.L.1.T...................A..........................>..Gd-.;.A..MQ..L. . . . . . . . . . . . . . . . . . . . .....AMBO
Boot0005* Hard Drive    BIOS(2,0,00)AMGOAMNO........o.S.A.M.S.U.N.G. .H.D.2.0.0.H.J...................A..........................>..Gd-.;.A..MQ..L.1.S.K.6.9.J.P.C.0.B.4.0.9.0. . . . . . .....AMBOAMNO........o.S.A.M.S.U.N.G. .H.D.1.0.3.S.I...................A..........................>..Gd-.;.A..MQ..L.1.S.S.V.1.J.S.K.0.2.6.2.0.7. . . . . . .....AMBO
Boot0006* UEFI: P3: ASUS    DRW-2014L1T         ACPI(a0341d0,0)PCI(1f,2)03120a000400ffff0000CD-ROM(1,4626,f800)AMBO

That what you're after?

Last edited by mrmandrill (2013-04-20 20:26:09)

Offline

#6 2013-04-20 23:35:56

srs5694
Member
From: Woonsocket, RI
Registered: 2012-11-06
Posts: 719
Website

Re: Asus Motherboard (UEFI) Can't boot rEFInd / arch

There's definitely something wrong with your "efibootmgr -v" output. You've got:

Boot0000* rEFInd        Vendor(99e275e7-75a0-4b37-a2e6-c5385e6c00cb,)

The details of what this should look like vary from one system to another; but as an example, here's what it looks like on one of my systems:

Boot0000* rEFInd Boot Manager	HD(2,1b8,64000,f1b7598e-baa8-16ea-4ef6-3ff3b606ac1e)File(\EFI\refind\refind_x64.efi)

Note that it specifies a disk partition ("HD(...)") and file (EFI\refind\refind_x64.efi). Yours lacks these elements. I recommend deleting your entry and re-creating it. The commands to do so should resemble the following:

efibootmgr -b 0000 -B
efibootmgr -c -l \\EFI\\refind\\refind_x64.efi -L rEFInd
efibootmgr -v

The final command should produce the listing again, but it should show a rEFInd entry more like the one I posted. (The long numbers will be different, though.) With any luck, this will get rEFInd working. If not, try using "efibootmgr -v" again. If the rEFInd entry has changed, then there's a bug in your EFI and/or in efibootmgr that's causing the efibootmgr entries to disappear. You could check with your manufacturer for a firmware update. If one is available, try updating your firmware and try again. If that doesn't work, you might be able to work around the problem by using the "bcfg" command in an EFI version 2 shell, as described in the Arch Linux wiki. If that fails, you'll need to rename EFI/refind to EFI/BOOT and rename refind_x64.efi within that directory to bootx64.efi.

Offline

#7 2013-07-04 05:35:52

*david_a*
Member
Registered: 2009-06-19
Posts: 80

Re: Asus Motherboard (UEFI) Can't boot rEFInd / arch

Which Asus board do you have? And do you run or plan to run any other systems?

The Asus motherboard I'm using is a sort of hybrid that will use BIOS or UEFI, and I've found that (since I don't dual boot) everything works better if I stick to BIOS. Booting is a few seconds longer, but installing is several headaches shorter, so it all evens out. smile

Offline

Board footer

Powered by FluxBB