You are not logged in.

#1 2012-09-13 08:51:45

Deusdies
Member
Registered: 2010-09-13
Posts: 116

[SOLVED] Problems booting with UEFI

Hi, I just got a new computer with the ASRock Z77 Extreme4 motherboard which supports UEFI.

I can't for the life of anything figure out how to boot from it. I've managed to install Arch successfully *and* I managed to boot it, but only after booting as SanDisk UEFI (where my arch install is), dropping to UEFI shell (btw does this use the installation medium shell or the on-board shell?) and then manually selecting the path.

The path is as follows:

fs0:\EFI\arch_grub\grubx64.efi

I also have the rEFIned installed there and even syslinux, to no avail.

Since I am very new to UEFI, I don't know what output you guys need, but here are some:

#efibootmgr

BootCurrent: 000A
Timeout: 1 seconds
BootOrder: 0000,000B,000A,0009
Boot0000* Arch Linux (GRUB2)
Boot0009* USB 
Boot000A* UEFI: SanDisk
Boot000B* Hard Drive 

I got this from adding the entry manually and the path was "\EFI\arch_grub\grubx64.efi", which I think is the correct path.

My hard drive is structured so that /dev/sdc2 is the root partition, while the /dev/sdc1 is the UEFI sys partition, FAT32 formatted, and has /EFI/arch_grub/grubx64.efi (and others like I mentioned).

As I was experimenting, I've been getting two kinds of messages when trying to boot from the primary drive... right now it's "Missing OS", before it was "This disk is not bootable" (after which I changed the bootable flag in parted, but again to no avail).

Help?

Last edited by Deusdies (2012-09-13 09:35:14)


My website - http://www.LinuxDistroReview.com - reviews all the linux distros out there

Here's the Arch Linux review: http://www.linuxdistroreview.com/arch-linux

Offline

#2 2012-09-13 09:35:04

Deusdies
Member
Registered: 2010-09-13
Posts: 116

Re: [SOLVED] Problems booting with UEFI

As usual, I spend hours working on a problem before deciding to post in forums. Then once I post in the forums, I find a solution within minutes.

I ran (of course adapted for my HDD):

sudo echo "root=/dev/sdaX ro rootfstype=ext4 add_efi_memmap initrd=\\EFI\\arch\\initramfs-arch.img" | iconv -f ascii -t ucs2 | efibootmgr -c -g -d /dev/sdc -p 1 -L "Archlinux (EFISTUB)" -l "\EFI\arch\vmlinuz-arch.efi" -@ -

More info here: https://wiki.archlinux.org/index.php/UE … tmgr_entry


My website - http://www.LinuxDistroReview.com - reviews all the linux distros out there

Here's the Arch Linux review: http://www.linuxdistroreview.com/arch-linux

Offline

#3 2012-09-13 10:22:12

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: [SOLVED] Problems booting with UEFI

Syslinux does not yet support UEFI. You should probably remove it.

# pacman -R syslinux

And maybe remove the /boot/syslinux/ folder, as well.


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

Board footer

Powered by FluxBB