You are not logged in.

#1 2013-02-09 04:21:23

tonysoprano
Member
Registered: 2013-01-25
Posts: 8

[SOLVED] Attempting to boot from USB key in UEFI mode

I am attempting to boot from a USB Key in UEFI mode to dual boot windows 8 and arch linux.  I'm unsuccessful in getting the USB key to boot in UEFI mode. 

I am following the guide on page: https://wiki.archlinux.org/index.php/Un … _Interface due to the fact that I am receiving error " No loader found. Configuration files in /loader/entries/*.conf are needed."

I am attempting to use the archiso media and have created refind.conf according to https://bugs.archlinux.org/task/31894#comment102233 in (USB)/EFI/boot/refind.conf

However, I'm stuck on the initial step from the wiki: Install refind-efi pkg. In the usb's filesystem, overwrite the file EFI/boot/bootx64.efi with /usr/lib/refind/refind_x64.efi.

My question is: How do I install the refind-efi package onto the USB key using an arch linux host machine and the USB plugged into the machine.

Last edited by tonysoprano (2013-02-13 04:09:56)

Offline

#2 2013-02-09 14:48:33

katchup
Member
From: France
Registered: 2013-02-09
Posts: 6

Re: [SOLVED] Attempting to boot from USB key in UEFI mode

Hi,

You don't need to install refind-efi on the USB key, only on your arch linux host machine. The only purpose is to have /usr/lib/refind/refind_x64.efi available from your host system, so that you can copy it to EFI/boot/bootx64.efi on the USB key.

Hope that helps smile

Offline

#3 2013-02-10 02:09:23

tonysoprano
Member
Registered: 2013-01-25
Posts: 8

Re: [SOLVED] Attempting to boot from USB key in UEFI mode

Thanks, I now have the USB key booting via UEFI and using refind.  However, when I choose the #1 option in refind to boot from the USB key nothing happens. 

Here is my refind.conf

-- (USB)/EFI/boot/refind.conf --
timeout 5
textonly

showtools about,reboot,shutdown,exit
# scan_driver_dirs EFI/tools/drivers_x64
scanfor manual,internal,external,optical

scan_delay 1
dont_scan_dirs EFI/boot

max_tags 0
default_selection "Arch Linux Archiso x86_64 UEFI USB"

menuentry "Arch Linux Archiso x86_64 UEFI USB" {
loader /arch/boot/x86_64/vmlinuz
initrd /arch/boot/x86_64/archiso.img
ostype Linux
graphics off
options "pci=nocrs add_efi_memmap archisobasedir=arch archisolabel=ARCH_201210"
}

menuentry "UEFI x86_64 Shell v2" {
loader /EFI/shellx64_v2.efi
graphics off
}

menuentry "UEFI x86_64 Shell v1" {
loader /EFI/shellx64_v1.efi
graphics off
}

-------------------------------------------


Here's the image where the boot process stops:
http://i.imgur.com/eaK0II3.jpg


# mod edit: please read the Forum Etiquette and paste thumbnails and use code tags https://wiki.archlinux.org/index.php/Fo … s_and_Code

Last edited by jasonwryan (2013-02-10 03:34:16)

Offline

#4 2013-02-10 05:06:10

tonysoprano
Member
Registered: 2013-01-25
Posts: 8

Re: [SOLVED] Attempting to boot from USB key in UEFI mode

Been going at this all night.  I just used UEFI shell v2 to add a boot entry for Arch Linux that points to: \EFI\arch\vmlinuz-arch.efi

When I choose this option I just get a blank screen and then the computer does nothing else.

Could it be the vmlinuz-arch.efi file?   

The vmlinuz-arch.efi file originates from /boot/vmlinuz-linux by following the directions located here: https://wiki.archlinux.org/index.php/UE … ing_rEFInd

Offline

#5 2013-02-10 11:29:21

swordfish
Member
Registered: 2012-01-14
Posts: 160

Re: [SOLVED] Attempting to boot from USB key in UEFI mode

tonysoprano wrote:

Thanks, I now have the USB key booting via UEFI and using refind.  However, when I choose the #1 option in refind to boot from the USB key nothing happens. 

Here is my refind.conf

-- (USB)/EFI/boot/refind.conf --
timeout 5
textonly

showtools about,reboot,shutdown,exit
# scan_driver_dirs EFI/tools/drivers_x64
scanfor manual,internal,external,optical

scan_delay 1
dont_scan_dirs EFI/boot

max_tags 0
default_selection "Arch Linux Archiso x86_64 UEFI USB"

menuentry "Arch Linux Archiso x86_64 UEFI USB" {
loader /arch/boot/x86_64/vmlinuz
initrd /arch/boot/x86_64/archiso.img
ostype Linux
graphics off
options "pci=nocrs add_efi_memmap archisobasedir=arch archisolabel=ARCH_201210"
}

Does "archisolabel=ARCH_201210" from your refind.conf match the label of your usb key? If not it won't work.


Arch_x64 on Thinkpad Edge E520 (Intel Core i5, 4 GB RAM, 128 GB Crucial M4 SSD) + ITX-Desktop (Asrock H77M-ITX, Intel Core i3-2120T, 8GB RAM, 64 GB Samsung 830 SSD)

Offline

#6 2013-02-10 18:13:23

tonysoprano
Member
Registered: 2013-01-25
Posts: 8

Re: [SOLVED] Attempting to boot from USB key in UEFI mode

The correct label needed to be "archiso".  I changed that in refind.conf and am still experiencing the same issue.

Offline

#7 2013-02-11 12:56:35

swordfish
Member
Registered: 2012-01-14
Posts: 160

Re: [SOLVED] Attempting to boot from USB key in UEFI mode

tonysoprano wrote:

Thanks, I now have the USB key booting via UEFI and using refind.  However, when I choose the #1 option in refind to boot from the USB key nothing happens.

Hm, just to be clear - what other options are available? Is there an uefi option?


Arch_x64 on Thinkpad Edge E520 (Intel Core i5, 4 GB RAM, 128 GB Crucial M4 SSD) + ITX-Desktop (Asrock H77M-ITX, Intel Core i3-2120T, 8GB RAM, 64 GB Samsung 830 SSD)

Offline

#8 2013-02-11 17:39:10

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

Re: [SOLVED] Attempting to boot from USB key in UEFI mode

Try installing another boot loader, such as ELILO, GRUB 2, or Fedora's patched GRUB Legacy (not another boot manager, such as gummiboot), and use it to launch the kernel. It's conceivable that you've got one of the rare cases in which the EFI stub loader isn't working but something else will work. For testing purposes, ELILO and Fedora's patched GRUB Legacy are the simplest to install and configure; however, I don't think either is available via pacman. See my EFI Boot Loaders for Linux page for download links.

Offline

#9 2013-02-12 03:10:39

tonysoprano
Member
Registered: 2013-01-25
Posts: 8

Re: [SOLVED] Attempting to boot from USB key in UEFI mode

I installed ELILO per your instructions and the computer pauses at ELILO and as it appears the kernel is loading the computer simply restarts.  I took a video of the restart to see all of the output (it happens fast) and  here's what ELILO outputs:
ELILO BOOT: .....
Loading Kernel vmlinuz-linux ... done
Loading file initramfs-linux.img ... done
(elilo.c) line 276
ExitBootSvcs: failed memory map has changed

(elilo.c) line 279:Main_loop: Retrying... have to rebuild boot params

I found someone having a similiar problem with OpenSUSE and they couldn't find a solution: http://forums.opensuse.org/english/get- … -mode.html

------------------------------------
NEXT:

I installed the AUR version of GRUB2 ( grub-efi-x86_64-bzr ) using yaourt.
I followed the directions per the wiki ( https://wiki.archlinux.org/index.php/GR … _systems_2 ) and here are the results :

After the grub O/S selection screen shows and I choose arch linux I see the following as linux is attempted to be loaded:

Loading Linux core repo kernel ...
Loading initial ramdisk ...


After Loading initial ramdisk the computer simply freezes and requires me to press the power button.

-------------------------------------

Anyone have suggestions that can help me get this laptop working?

Last edited by tonysoprano (2013-02-12 03:26:56)

Offline

#10 2013-02-12 09:51:04

swordfish
Member
Registered: 2012-01-14
Posts: 160

Re: [SOLVED] Attempting to boot from USB key in UEFI mode

tonysoprano wrote:

Anyone have suggestions that can help me get this laptop working?

... just a few thoughts:

1. Might be possible, that the uefi integration is pretty bad. Have you already looked for an update of the uefi bios?

2. In your first posting you mention Windows 8 on this machine. Is W8 starting in uefi mode?

3. If W8 is starting in uefi mode, are you sure that secure boot is disabled?

... by the way - what kind of laptop is it?


Arch_x64 on Thinkpad Edge E520 (Intel Core i5, 4 GB RAM, 128 GB Crucial M4 SSD) + ITX-Desktop (Asrock H77M-ITX, Intel Core i3-2120T, 8GB RAM, 64 GB Samsung 830 SSD)

Offline

#11 2013-02-12 17:15:15

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

Re: [SOLVED] Attempting to boot from USB key in UEFI mode

swordfish wrote:

1. Might be possible, that the uefi integration is pretty bad. Have you already looked for an update of the uefi bios?

This is my thought, too. The "memory map has changed" message sounds like the firmware is messing with the way memory is laid out in the middle of the boot process. A firmware update, if available, is likely to be the best way to deal with this problem. If not, trying Fedora's patched GRUB Legacy and GRUB 2 are also worth doing; it's conceivable that one of them includes a workaround for the problem.

2. In your first posting you mention Windows 8 on this machine. Is W8 starting in uefi mode?

This is important, but if the disk uses GPT partitioning, then Windows is starting in EFI mode.

3. If W8 is starting in uefi mode, are you sure that secure boot is disabled?

It is; if it weren't, neither rEFInd nor ELILO could start -- or even if they were configured to start in Secure Boot mode, ELILO doesn't launch its kernels in a way that respects Secure Boot, so the ELILO failure can't be caused by Secure Boot. Also, when launched with Secure Boot active, rEFInd returns a clear error message about a security violation and then returns to its main menu; it doesn't hang the computer.

One possible workaround occurs to me if all else fails: Have rEFInd launch a BIOS version of GRUB. The setup procedure, in outline, is as follows:

  1. Create a BIOS Boot Partition on the disk.

  2. Install the BIOS version of GRUB 2.

  3. Configure rEFInd to include a scan for BIOS-mode boot loaders by uncommenting the "scanfor" line in refind.conf and adding "hdbios" to it.

Thereafter, you'll see a new "generic" icon, which should launch GRUB, which should launch Linux in BIOS mode, even though Windows launches in EFI mode. This will work on most modern UEFI-based computers with a single hard disk, but things get trickier with multiple disks and with some UEFI implementations that lack the necessary firmware features. If a future firmware update fixes the problem, or if a future kernel's EFI stub loader includes a workaround, the EFI-mode booting will become an option once again.

Offline

#12 2013-02-13 04:04:08

tonysoprano
Member
Registered: 2013-01-25
Posts: 8

Re: [SOLVED] Attempting to boot from USB key in UEFI mode

The laptop is an ASUS X401A -- Updating the BIOS worked, I can now utilize rEFInd to boot into Windows 8 and Linux.

Thank you for all the help!

Offline

Board footer

Powered by FluxBB