You are not logged in.
As the title statess, I'm simply trying to get Gummiboot to load first when I turn on my computer. Currently, if I turn my laptop on, it will boot into Windows 8.1. If I go into boot options prior to letting Windows start, then I'm able to select Gummiboot and load into Arch just fine. How can I automate this?
lsblk -f
NAME FSTYPE LABEL UUID MOUNTPOINT
sda
├─sda1 vfat 215C-A2CF /boot
├─sda2 vfat 4A1A-307C
├─sda3
├─sda4 ntfs Windows A68A20F08A20BEA5
├─sda5 ext4 63976e2b-d370-4b80-aeb2-1bca6e1c83f5 /
├─sda6 swap 2eee5c63-3109-47b8-bfa6-62d4f56b531d [SWAP]
└─sda7 ext4 dd3b9d87-32de-4eaa-a7c5-fdc8924d9398 /home
/boot/loader/loader.conf
timeout 3
default arch
#e0b6029203a34ea79bd0bfe666772999-*
/boot/loader/entries/arch.conf
title Arch Linux
linux /vmlinuz-linux
initrd /initramfs-linux.img
options root=PARTUUID=15ec555a-c3a3-4d2f-b9a8-8df078c8994f rw
Last edited by philomathean (2014-08-16 06:28:32)
Offline
If changing the boot order hasn't worked, since gummiboot is a UEFI boot manager you might try reformatting boot as an EFI partition (ef00 in gdisk).
Last edited by JoeMB (2014-08-08 11:21:51)
Offline
If changing the boot order hasn't worked, since gummiboot is a UEFI boot manager you might try reformatting boot as an EFI partition (ef00 in gdisk).
Would it not be safer just to change the partition type if it is wrong ( no listing including that information such as fdisk -l is in the thread )
Formatting the ESP would also remove any Windows entries for the ESP ( again not enough information to know where Windows is booting from )
Offline
@philomathean --- why do you have two EFI system partitions?
You should have mounted /boot to the VFAT partition already created by Windows...
The BIOS is booting the Windows EFI system partition & ignoring the one you created (containing /boot).
Re-mount /boot in the Windows ESP & re-install gummiboot.
Offline
Sorry for the very late response, but let me make sure I understand.
Would the easiest way to do this be booting from an Arch USB, mounting sda2 as boot, then re-installing gummiboot?
Thanks for the help everybody!
Offline
You can change the boot order via UEFI firmware UI.
Another way to change the boot order is to use efibootmgr tool.
Read it before posting http://www.catb.org/esr/faqs/smart-questions.html
Ruby gems repository done right https://bbs.archlinux.org/viewtopic.php?id=182729
Fast initramfs generator with security in mind https://wiki.archlinux.org/index.php/Booster
Offline
Would the easiest way to do this be booting from an Arch USB, mounting sda2 as boot, then re-installing gummiboot?
Gummiboot will only offer a menu entry for Windows if it is installed in the same partition as the Windows bootloader.
Which is the original (Windows-generated) EFI system partition?
If it is sda2, you need to copy /boot to there, add an entry to fstab to reflect this, then (arch-)chroot into the installation & run gummiboot install...
Offline
Are you sure that you are using a UEFI boot?
It seems that no partition is labeled ESP.
Offline
^ Gummiboot will not install successfully unless the computer is booted in EFI-mode.
Offline
Ok, backtracking a little and I'm trying to make sure my laptop is actually UEFI. It's an HP Envy Sleekbook M6 with AMD A10, if it matters.
Here's what I get when I first go into system settings on boot, which makes me think it's BIOS.
Boot Options
But then in BIOS Options, it has UEFI Boot Order.
BIOS Options
How can I tell which my system is? I want to make sure before making any changes but I'm having difficulty finding much on the topic (which I'm sure has to have been discussed before)
Device Start End Sectors Size Type
/dev/sda1 2048 821247 819200 400M EFI System
/dev/sda2 821248 1353727 532480 260M Microsoft basic data
/dev/sda3 1353728 1615871 262144 128M Microsoft reserved
/dev/sda4 1615872 316191329 314575458 150G Microsoft basic data
/dev/sda5 316191330 389576703 73385374 35G Linux filesystem
/dev/sda6 389578260 402161171 12582912 6G Linux swap
/dev/sda7 402161664 1465147391 1062985728 506.9G Linux filesystem
Last edited by philomathean (2014-08-12 03:48:47)
Offline
Run this:
efivar -l
If a long list of variables scrolls up the screen, you are booted in EFI-mode. Also, you will have a /sys/firmware/efi/efivars
https://wiki.archlinux.org/index.php/Un … _Interface
BTW, your EFI system partition is /dev/sda1 so /boot is mounted correctly...
Very strange, your system should be booting up into gummiboot --- do you have a menu entry for Windows when you boot up via gummiboot?
EDIT: from your BIOS screenshots, your computer is in EFI-mode (the "Legacy" mode is unselected).
Last edited by Head_on_a_Stick (2014-08-12 18:48:49)
Offline
"efivar -l" lists plenty of variables.
If I boot via gummiboot, all I get is: "Arch Linux", "Boot into Default EFI", and "Return to System Menu". If I choose Boot into Default EFI, it shows the same menu with only "Arch Linux" and "Return to System Menu".
Any suggestions?
Offline
EDIT: from your BIOS screenshots, your computer is in EFI-mode (the "Legacy" mode is unselected).
You see that in the image ?
@ philomathean: could you please verify that legacy support is OFF !
and print all
gdisk /dev/sda
output
Offline
Legacy Support was ON. I turned it off as well as Secure Boot, but boot behavior is unchanged.
sudo gdisk /dev/sda
GPT fdisk (gdisk) version 0.8.10
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Command (? for help): p
Disk /dev/sda: 1465149168 sectors, 698.6 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 0AA1A394-7A48-4F4D-A2A0-B75B4DE73082
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 1465149134
Partitions will be aligned on 8-sector boundaries
Total free space is 5805 sectors (2.8 MiB)
Number Start (sector) End (sector) Size Code Name
1 2048 821247 400.0 MiB EF00 EFI System
2 821248 1353727 260.0 MiB 0700
3 1353728 1615871 128.0 MiB 0C01
4 1615872 316191329 150.0 GiB 0700
5 316191330 389576703 35.0 GiB 8300
6 389578260 402161171 6.0 GiB 8200
7 402161664 1465147391 506.9 GiB 8300
Offline
- Legacy Mode is off
- UEFI-Boot-Order is OS Manager at first position
- you have a GPT-Disk
- you have a /boot-mounted partition with vfat-filesystem and Type EFI
- /boot/EFI/Boot/BOOTX64.EFI exist
- /boot/EFI/gummiboot/gummibootx64.efi exist
- /boot/loader/loader.conf exist
- /boot/loader/entries/arch.conf exist
but it still starts Windows 8.1 ?
sorry I've no more ideas
I don't understand /dev/sda2 ? But I don't know windows
Last edited by midixinga (2014-08-13 07:59:52)
Offline
the output of
efibootmgr -v
if there is lots of output after the closing ')' something like
efibootmgr -v | cut -d \) -f 1
should make the output easier to read
Offline
Just to check: did you install Windows first?
The only explanation I can think of is if you installed Arch first and then Windows...
Offline
This computer came with Windows pre-installed and I installed Arch. I wiped /sda1 to use for /boot but I still don't know what /sda2 is for.
If it's relevant, I think I installed GRUB first, but had issues and opted to uninstall GRUB and go with Gummiboot. This did leave an ubuntu boot entry although I don't recall ever having ubuntu installed on this machine.
BootCurrent: 0007
Timeout: 0 seconds
BootOrder: 0004,3004,0005,0007,0008,2001,0000,0001,2002,2003
Boot0000* Network Adapter (IPv4 UEFI) ACPI(a0341d0,0)PCI(4,0)PCI(0,0)MAC(MAC(6c3be58d62da,0)RC
Boot0001* Network Adapter (IPv6 UEFI) ACPI(a0341d0,0)PCI(4,0)PCI(0,0)MAC(MAC(6c3be58d62da,0)030d3c000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000RC
Boot0003* USB Hard Drive (UEFI) - PNY USB 2.0 FD ACPI(a0341d0,0)PCI(10,0)USB(3,0)HD(1,800,3cf0700,00032116)RC
Boot0004* Windows Boot Manager HD(2,c8800,82000,1757c49b-b3b5-4201-b506-dcf15496be2a)File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...a................
Boot0005* ubuntu HD(2,c8800,82000,1757c49b-b3b5-4201-b506-dcf15496be2a)File(\EFI\ubuntu\shimx64.efi)
Boot0007* Linux Boot Manager HD(1,800,c8000,52d738a5-fab3-401f-868e-53a3db7e8e39)File(\EFI\gummiboot\gummibootx64.efi)
Boot0008* EFI HDD Device (HGST HTS541075A9E680) ACPI(a0341d0,0)PCI(11,0)ATAPI(0,0,0)HD(1,800,c8000,52d738a5-fab3-401f-868e-53a3db7e8e39)RC
Boot2001* USB Drive (UEFI) RC
Boot3000* Internal Hard Disk or Solid State Disk RC
Boot3002* Internal Hard Disk or Solid State Disk RC
Boot3004* Internal Hard Disk or Solid State Disk RC
Offline
This should put gummiboot (Boot0007) first then Windows Boot Manager second (Boot0004).
This leaves off all the other entries.
efibootmgr -o 7,4
Offline
efibootmgr -o 7,4
gave me an error "Invalid boot order: 7,4" so I successfully ran
efibootmgr -o 0007,0004
Afterwards, this was my output:
efibootmgr -v
BootCurrent: 0007
Timeout: 0 seconds
BootOrder: 0007,0004
Boot0000* Network Adapter (IPv4 UEFI) ACPI(a0341d0,0)PCI(4,0)PCI(0,0)MAC(MAC(6c3be58d62da,0)RC
Boot0001* Network Adapter (IPv6 UEFI) ACPI(a0341d0,0)PCI(4,0)PCI(0,0)MAC(MAC(6c3be58d62da,0)030d3c000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000RC
Boot0003* USB Hard Drive (UEFI) - PNY USB 2.0 FD ACPI(a0341d0,0)PCI(10,0)USB(3,0)HD(1,800,3cf0700,00032116)RC
Boot0004* Windows Boot Manager HD(2,c8800,82000,1757c49b-b3b5-4201-b506-dcf15496be2a)File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...a................
Boot0005* ubuntu HD(2,c8800,82000,1757c49b-b3b5-4201-b506-dcf15496be2a)File(\EFI\ubuntu\shimx64.efi)
Boot0007* Linux Boot Manager HD(1,800,c8000,52d738a5-fab3-401f-868e-53a3db7e8e39)File(\EFI\gummiboot\gummibootx64.efi)
Boot0008* EFI HDD Device (HGST HTS541075A9E680) ACPI(a0341d0,0)PCI(11,0)ATAPI(0,0,0)HD(1,800,c8000,52d738a5-fab3-401f-868e-53a3db7e8e39)RC
Boot2001* USB Drive (UEFI) RC
Boot3000* Internal Hard Disk or Solid State Disk RC
Boot3002* Internal Hard Disk or Solid State Disk RC
Boot3004* Internal Hard Disk or Solid State Disk RC
However, when I rebooted, it still booted into Windows. Got back into Arch and now "efibootmgr -v" outputs:
BootCurrent: 0007
Timeout: 0 seconds
BootOrder: 0004,3004,0002,0007,0008,2001,0003,0005,2002,2003
Boot0000* USB Hard Drive (UEFI) - PNY USB 2.0 FD ACPI(a0341d0,0)PCI(10,0)USB(3,0)HD(1,800,3cf0700,00032116)RC
Boot0002* ubuntu HD(2,c8800,82000,1757c49b-b3b5-4201-b506-dcf15496be2a)File(\EFI\ubuntu\shimx64.efi)RC
Boot0003* Network Adapter (IPv4 UEFI) ACPI(a0341d0,0)PCI(4,0)PCI(0,0)MAC(MAC(6c3be58d62da,0)RC
Boot0004* Windows Boot Manager HD(2,c8800,82000,1757c49b-b3b5-4201-b506-dcf15496be2a)File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...a................
Boot0005* Network Adapter (IPv6 UEFI) ACPI(a0341d0,0)PCI(4,0)PCI(0,0)MAC(MAC(6c3be58d62da,0)030d3c000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000RC
Boot0007* Linux Boot Manager HD(1,800,c8000,52d738a5-fab3-401f-868e-53a3db7e8e39)File(\EFI\gummiboot\gummibootx64.efi)
Boot0008* EFI HDD Device (HGST HTS541075A9E680) ACPI(a0341d0,0)PCI(11,0)ATAPI(0,0,0)HD(1,800,c8000,52d738a5-fab3-401f-868e-53a3db7e8e39)RC
Boot2001* USB Drive (UEFI) RC
Boot3000* Internal Hard Disk or Solid State Disk RC
Boot3002* Internal Hard Disk or Solid State Disk RC
Boot3004* Internal Hard Disk or Solid State Disk RC
Boot3007* Internal Hard Disk or Solid State Disk RC
Basically, it seems the boot info reverted after I shutdown. Any ideas on how to make this persistent? Thanks for all the help so far as I'm truly stumped.
Offline
Ok, I Learned "OS Bootloader" in your UEFI is NOT your Linux Bootloader :-(
Maybe this: https://wiki.archlinux.org/index.php/Bo … leshooting ?
Offline
Seems similar to this https://bbs.archlinux.org/viewtopic.php?id=171673 and http://reboot.pro/topic/19363-efibootmg … rmanently/
From the above this should make gummiboot the default for the next boot only and should work
efibootmgr -n 0007
Does this code to disable the Windows Boot Manager entry and make gummiboot the sole loader in the list persist after reboot? (It should leave the Windows entry intact just disabled)
efibootmgr -A 0004
efibootmgr -o 0007
Hopefully others may have more suggestions / experience with this issue.
Edit:
Furhter to midixinga's good find
From http://www.rodsbooks.com/efi-bootloader … iples.html
EFI/BOOT/bootx64.efi is tried as a hard coded fallback possibly before EFI/Microsoft/BOOT/bootmgfw.efi
So copying EFI/gummiboot/gummibootx64.efi to EFI/BOOT/bootx64.efi might cause the bios to load gummiboot first if it is ignoring the EFI vars in favor of a hardcoded list and leave EFI/Microsoft/BOOT/bootmgfw.efi intact
Edit2:
I would recommend having the arch live media to hand in case the following leaves your system failing to boot so you can revert the change
If you as a temporary measure renamed bootmgfw.efi to bootmgfw.old or otherwise changed it so the bios could not find it does that cause it to move onto the next entry that should be gummiboot
Last edited by loqs (2014-08-14 16:59:46)
Offline
This computer came with Windows pre-installed and I installed Arch. I wiped /sda1 to use for /boot but I still don't know what /sda2 is for.
I think this may be your problem --- the advice with EFI machines is to share the EFI system partition created by Windows, you have not done this...
As to the efibootmgr entries: the Ubuntu entry persists because you have a /boot/EFI/ubuntu/ folder.
Not sure why the other efibootmgr settings do not stick though.
Offline
Ok, to summarize my recent attempts, I tried disabling the Windows partition ("efibootmgr -A -b 0004") and changing boot order with "efibootmgr -o 0007" and the executed successfully, but didn't persist when I rebooted.
I tried "efibootmgr -n 0007" and even that didn't run properly - I still booted straight into Windows.
Just for good measure, here's my boot directory:
Contents:
EFI > Boot > BOOTX64.EFI
EFI > Gummiboot > gummibootx64.efi
loader > entries > arch.conf
loader > loader.conf
There isn't any ubuntu folder in the directory. The above files are everything under /boot/
There isn't an EFI/Microsoft folder, which seems troubling as well.
I did try copying gummibootx64.efi into EFI/Boot/ and renaming BOOTX64.EFI to BOOTX64.EFI.backup and renaming gummibootx64.efi to BOOTx64.EFI
This didn't change the boot order, but it did give me an extra entry when I went into System Menu on startup (it gave me an extra boot entry, but it only loaded an error message).
I'm gonna try some tweaking on the Windows side as detailed here.
P.S. I always try to keep a USB with Arch loaded for emergencies
Offline
Boot0004* Windows Boot Manager HD(2,c8800,82000,1757c49b-b3b5-4201-b506-dcf15496be2a)File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...a................
Boot0007* Linux Boot Manager HD(1,800,c8000,52d738a5-fab3-401f-868e-53a3db7e8e39)File(\EFI\gummiboot\gummibootx64.efi)
From the HD(2, I would look on sda2 for \EFI\Microsoft\Boot\bootmgfw.efi
Edit:
The two ESPs could be the cause of the issue
Last edited by loqs (2014-08-14 17:51:22)
Offline