You are not logged in.
This is for a friend's computer, he wants to keep his Windows 8 installation and dual-boot with Arch. I installed Arch and followed the wiki to set up GRUB. Now there is an option for grub in the boot menu, but when I touch it it boots Windows instead of opening GRUB.
I've never worked with UEFI before, any idea how to go about diagnosing this?
Last edited by tavianator (2013-11-11 13:41:52)
Offline
You have an option for grub in what? It sounds like you're trying to chainload a boot manager with another boot manager, which is completely redundant and I have no idea if it's even possible.
I recommend that you dump grub, it's overly complex and there's no need for that on a UEFI system. Look at rEFInd or gummiboot instead.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Most EFIs include a built-in boot manager that you can access by pressing a function key. In fact, even if they don't have the user interface features, they've got a boot manager of sorts -- that's what the efibootmgr utility adjusts. It's also quite possible to chainload one boot manager from another. (I do this all the time when I'm testing my development versions of rEFInd -- I use a stable rEFInd to launch a new version. That way, if the changes I've been making are disastrously bad, I can still boot the computer using the stable rEFInd.)
That said, I do agree with WorMzy that GRUB is overly complex, and that rEFInd and gummiboot are both more manageable. There is one caveat, though: On some computers (mostly Lenovos), users have been running into problems with the EFI stub loader upon which both rEFInd and gummiboot rely. Problems come and go from one kernel to another and are inconsistent between computers, which makes tracking down the source of the problem difficult. The symptom is that the boot process hangs -- when you select a kernel to boot, the computer immediately hangs. (Actually, the kernel is loaded into memory, but it doesn't produce any output or boot enough to log in, even remotely.) If you run into this problem, using another boot loader (GRUB 2 and SYSLINUX are favored by Arch users, but ELILO and Fedora's patched GRUB Legacy are other options) is the most reliable solution.
Offline
Grub isn't needlessly complex IMO. Updates couldn't be easier. Not sure why your system is booting windows. Post the underlying efi menu command for the grub entry.
Offline
I realise GRUB is complex, but I'm perfectly able to manage it on MBR systems.
Grub isn't needlessly complex IMO. Updates couldn't be easier. Not sure why your system is booting windows. Post the underlying efi menu command for the grub entry.
How do I get that command? Is it in /boot/efi somewhere?
Offline
As an aside, I think it is a mistake to install Arch for somebody else. (At least unless they know perfectly well how to do it and are just pushed for time but then you'd ask them for help.)
You should read the relevant section of the Beginners' Guide and the UEFI page. Normally, you'd get this information using efibootmgr -vv. You can do this from the live media provided you're booted in EFI mode. See the wiki for detailed instructions.
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
As an aside, I think it is a mistake to install Arch for somebody else. (At least unless they know perfectly well how to do it and are just pushed for time but then you'd ask them for help.)
Not sure I agree with this in general. In this case it's a pre-built dev image I've made for work. Until now it's only been used in VMs but it is designed to work on the bare metal too.
You should read the relevant section of the Beginners' Guide and the UEFI page. Normally, you'd get this information using efibootmgr -vv. You can do this from the live media provided you're booted in EFI mode. See the wiki for detailed instructions.
I'll check this tomorrow, thanks.
Offline
As an aside, I think it is a mistake to install Arch for somebody else. (At least unless they know perfectly well how to do it and are just pushed for time but then you'd ask them for help.)
Without a doubt right. If someone can't install arch by himself, he can't maintain it if you do the installation.
BTW tavianator, which month's iso are you using? The october iso had some problems whith uefi booting, not sure if it's fixed on the november iso. September iso works perfectly. Not sure, but using another iso could fix the problem.
Simplicity is the ultimate sophistication.
Offline
Posts #6-8 are way off topic. Please keep this thread related to the issues in post #1.
graysky wrote:Grub isn't needlessly complex IMO. Updates couldn't be easier. Not sure why your system is booting windows. Post the underlying efi menu command for the grub entry.
How do I get that command? Is it in /boot/efi somewhere?
See: https://wiki.archlinux.org/index.php/Un … UEFI_Shell
For example:
Shell> bcfg boot dump -vOffline
Got an error when I tried to load the EFI shell from the installer:
Unsupported image type
Failed to read header
Error loading \EFI\shellx64_v2.efi: UnsupportedEDIT: This is tavianator posting from the relevant friend's forum account.
Last edited by juharris (2013-11-08 22:32:59)
Offline
It may be that you have one of the old v1 UEFI firmwares. If that is the case, it is no surprise that you cannot use the shellx64_v2.efi. Can you try the v1 shell and see if that works?
Offline
The v1 shell gave a similar error (_v1.efi instead of _v2.efi of course).
Offline
@juharris or @tavianator: Is this is a Intel Atom Tablet (Clover Trail or Bay Trail)? Did it come pre-installed with Windows 8 32-bit? Does the firmware support Legacy Bios Boot mode? https://wiki.archlinux.org/index.php/HC … em-on-Chip
EDIT: Post your system info ( https://wiki.archlinux.org/index.php/HC … uired_info ), the way you booted the installer, exact commands used to install grub and create the entry for it in the uefi boot menu, and the way how you are trying to launch the uefi shell (both vers).
Last edited by the.ridikulus.rat (2013-11-08 23:57:04)
Offline
Figured out that by holding spacebar during boot, the actual error is shown: "grub has been blocked by the current security policy"
In fact, even though the Secure Boot is disabled in the BIOS, right underneath that it says "Secure Boot Status: Enabled". Maybe it can't actually be disabled on this computer. It's a Lenovo Flex 15 by the way.
Any idea how to enroll the hash for GRUB?
Offline
It may be that you have one of the old v1 UEFI firmwares. If that is the case, it is no surprise that you cannot use the shellx64_v2.efi. Can you try the v1 shell and see if that works?
It can happen with early v2 firmwares, too. (e.g. mine.) And the v1 shell doesn't support the command.
If the computer came with a Windows 8 sticker and is x86 architecture, it certainly ought to be able to disable Secure Boot as this is a requirement MS imposes on OEMs who want to use that sticker on their machines. Have you checked to see if there's a firmware update available?
The author of rEFInd has a site which I believe includes instructions for different approaches to dealing with Secure Boot.
EDIT: I don't agree that posts #6-8 are off-topic. I don't think that aspect should be pursued further but if a user comes along and asks "how do I make my own user own the contents of /bin?' it is not off-topic to respond by pointing out that the user ought not be trying to do that. I think it is wrong to install Arch for somebody who could not install it for themselves, and while I could not comment at all, I could not have posted the second part of #6 without posting the first part. This, however, definitely is off-topic.
Last edited by cfr (2013-11-09 01:31:06)
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
Figured out that by holding spacebar during boot, the actual error is shown: "grub has been blocked by the current security policy"
In fact, even though the Secure Boot is disabled in the BIOS, right underneath that it says "Secure Boot Status: Enabled". Maybe it can't actually be disabled on this computer. It's a Lenovo Flex 15 by the way.
Any idea how to enroll the hash for GRUB?
Check whether the "OS Optimized defaults" (or a similar option) is enabled in your firmware (it can be anywhere in your firmware setup, you have to search for it), if so disable it, and then disable Secure Boot. That should mostly work. Otherwise this system violates Microsoft's Secure Boot requirements and you should contact the vendor support.
Offline
The author of rEFInd has a site which I believe includes instructions for different approaches to dealing with Secure Boot.
I've got two such pages, actually:
This more general page covers Secure Boot generically, for any boot loader/boot manager.
This page in the rEFInd documentation covers Secure Boot use with rEFInd specifically.
Since you're using GRUB, the first is more applicable; but you might still glean some useful information from the second.
I agree with others that you should be able to disable Secure Boot. If you can't figure it out, check your manufacturer's site; there may be an upgraded firmware that fixes this bug. If not, contact them about it (and maybe even complain to Microsoft), since their firmware is in violation of their contract with Microsoft.
Offline
Okay we figured it out, we had to disable the "factory default keys" in the BIOS to get secure boot truly disabled. Thanks for the help everyone! Sorry it ended up being such a mundane non-Arch-specific issue.
Offline