You are not logged in.
Pages: 1
Good afternoon gents,
I have been able to muck my way around with UEFI booting. However, i seek some expertise on how i can get it working correctly and cleanly.
First challenge,
Installed Win10 and Arch on UEFI drive, configured grub bootloader. However it would only boot into win10.
* Decided to try systemd-boot instead, same results
* Implemented the following fix inside Win10 OS.
bcdedit /set {bootmgr} path \EFI\systemd\systemd-bootx64.efi
* This got systemd-boot loader to work but it couldnt find the kernel with the following error "Error loading \vmlinuz-linux: Not Found
Failed to execute Arch Linux (\vmlinuz-linux): Not Found". Now a good outcome is that grub loads after the error and everything is fine.
Personally, i would prefer to use grub instead of systemd-boot if possible. Any help would be great...
Here is a look at the Arch system
[root@thor ~]# df -h
Filesystem Size Used Avail Use% Mounted on
dev 16G 0 16G 0% /dev
run 16G 1.3M 16G 1% /run
/dev/mapper/archvol-root 98G 4.1G 89G 5% /
tmpfs 16G 0 16G 0% /dev/shm
tmpfs 16G 0 16G 0% /sys/fs/cgroup
/dev/nvme0n1p2 96M 42M 55M 43% /boot/efi
tmpfs 16G 12K 16G 1% /tmp
/dev/mapper/archvol-home 195G 286M 185G 1% /home
tmpfs 3.2G 0 3.2G 0% /run/user/620
tmpfs 3.2G 0 3.2G 0% /run/user/1000
[root@thor ~]# ls -la /boot
total 46205
drwxr-xr-x 4 root root 4096 Aug 4 13:25 .
drwxr-xr-x 19 root root 4096 Aug 3 20:49 ..
drwxr-xr-x 4 root root 1024 Dec 31 1969 efi
drwxr-xr-x 6 root root 4096 Aug 4 13:42 grub
-rw-r--r-- 1 root root 29656614 Aug 4 13:41 initramfs-linux-fallback.img
-rw-r--r-- 1 root root 12198336 Aug 4 13:41 initramfs-linux.img
-rw-r--r-- 1 root root 5437712 Jul 22 10:33 vmlinuz-linux
[root@thor ~]# efibootmgr -v
BootCurrent: 0004
Timeout: 1 seconds
BootOrder: 0002,0004,0007,0001
Boot0001* Hard Drive BBS(HD,,0x0)/VenHw(5ce8128b-2cec-40f0-8372-80640e3dc858,0200)..GO..NO..........W.D.C. .W.D.S.5.1.2.G.1.X.0.C.-.0.0.E.N.X.0...................\.,.@.r.d.=.X.........A............................DJDF......B..Gd-.;.A..MQ..L.W.D.C. .W.D.S.5.1.2.G.1.X.0.C.-.0.0.E.N.X.0.......BO..NO..........H.i.t.a.c.h.i. .H.D.S.7.2.1.0.1.0.C.L.A.3.3.2...................\.,.@.r.d.=.X.........A..........................>..Gd-.;.A..MQ..L. . . . . . .P.J.9.2.0.4.D.H.N.0.D.0.C.S.......BO..NO..........H.i.t.a.c.h.i. .H.D.S.7.2.1.0.1.0.C.L.A.3.3.2...................\.,.@.r.d.=.X.........A..........................>..Gd-.;.A..MQ..L. . . . . . .P.J.9.2.0.4.D.H.M.0.K.H.C.D.......BO..NO..........W.D.C. .W.D.4.0.E.F.R.X.-.6.8.N.3.2.N.0...................\.,.@.r.d.=.X.........A..........................>..Gd-.;.A..MQ..L. . . . .W. .-.D.C.W.7.C.3.K.S.S.C.7.H.P.......BO..NO..........W.D.C. .W.D.4.0.E.F.R.X.-.6.8.W.T.0.N.0...................\.,.@.r.d.=.X.........A..........................>..Gd-.;.A..MQ..L. . . . .W. .-.D.C.W.4.C.4.E.Y.8.7.5.K.4.......BO..NO..........W.D.C. .W.D.2.0.E.F.R.X.-.6.8.A.X.9.N.0...................\.,.@.r.d.=.X.........A..........................>..Gd-.;.A..MQ..L. . . . .W. .-.D.M.W.1.C.1.T.7.0.0.2.3.9.......BO..NO..........W.D.C. .W.D.2.0.E.F.R.X.-.6.8.A.X.9.N.0...................\.,.@.r.d.=.X.........A..........................>..Gd-.;.A..MQ..L. . . . .W. .-.D.M.W.1.C.1.T.7.0.8.0.5.1.......BO
Boot0002* Linux Boot Manager HD(2,GPT,6f3fb9f3-b471-4365-b68c-12cef205de1a,0xe1800,0x32000)/File(\EFI\SYSTEMD\SYSTEMD-BOOTX64.EFI)
Boot0004* archlinux HD(2,GPT,6f3fb9f3-b471-4365-b68c-12cef205de1a,0xe1800,0x32000)/File(\EFI\ARCHLINUX\GRUBX64.EFI)
Boot0007* Windows Boot Manager HD(2,GPT,6f3fb9f3-b471-4365-b68c-12cef205de1a,0xe1800,0x32000)/File(\EFI\MICROSOFT\BOOT\BOOTMGFW.EFI)..BO
Thanks in advance...
Offline
You should post your bootloader config, be it grub or systemd-boot, and output of 'lsblk'.
Also, please use [code] bbcode-tags when pasting configs, console output etc.
https://wiki.archlinux.org/index.php/Co … s_and_code
Offline
cat /boot/efi/loader/entries/arch-lvm.conf
title Arch Linux
linux /vmlinuz-linux
initrd /initramfs-linux.img
options root=/dev/mapper/archvol-root rw
GRUB
menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnul
inux-simple-d78d9e3e-9f72-48e4-ba63-684efeccc5de' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod lvm
insmod ext2
set root='lvmid/775Ivu-FqpB-z5Dt-S7n9-4OUH-gkcz-FBLf3e/Gj6ZaG-N3X7-ulMJ-NF9u-ms20-J4zH-dtLV1M'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='lvmid/775Ivu-FqpB-z5Dt-S7n9-4OUH-gkcz-FBLf3e/
Gj6ZaG-N3X7-ulMJ-NF9u-ms20-J4zH-dtLV1M' d78d9e3e-9f72-48e4-ba63-684efeccc5de
else
search --no-floppy --fs-uuid --set=root d78d9e3e-9f72-48e4-ba63-684efeccc5de
fi
echo 'Loading Linux linux ...'
linux /boot/vmlinuz-linux root=/dev/mapper/archvol-root rw quiet
echo 'Loading initial ramdisk ...'
initrd /boot/initramfs-linux.img
}
submenu 'Advanced options for Arch Linux' $menuentry_id_option 'gnulinux-advanced-d78d9e3e-9f72-48e4-ba
63-684efeccc5de' {
menuentry 'Arch Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os
$menuentry_id_option 'gnulinux-linux-advanced-d78d9e3e-9f72-48e4-ba63-684efeccc5de' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod lvm
insmod ext2
set root='lvmid/775Ivu-FqpB-z5Dt-S7n9-4OUH-gkcz-FBLf3e/Gj6ZaG-N3X7-ulMJ-NF9u-ms20-J4zH-
dtLV1M'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='lvmid/775Ivu-FqpB-z5Dt-S7n9-4OUH-gkcz
-FBLf3e/Gj6ZaG-N3X7-ulMJ-NF9u-ms20-J4zH-dtLV1M' d78d9e3e-9f72-48e4-ba63-684efeccc5de
else
search --no-floppy --fs-uuid --set=root d78d9e3e-9f72-48e4-ba63-684efeccc5de
fi
echo 'Loading Linux linux ...'
linux /boot/vmlinuz-linux root=/dev/mapper/archvol-root rw quiet
echo 'Loading initial ramdisk ...'
initrd /boot/initramfs-linux.img
}
menuentry 'Arch Linux, with Linux linux (fallback initramfs)' --class arch --class gnu-linux --
class gnu --class os $menuentry_id_option 'gnulinux-linux-fallback-d78d9e3e-9f72-48e4-ba63-684efeccc5de
' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod lvm
insmod ext2
set root='lvmid/775Ivu-FqpB-z5Dt-S7n9-4OUH-gkcz-FBLf3e/Gj6ZaG-N3X7-ulMJ-NF9u-ms20-J4zH-
dtLV1M'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='lvmid/775Ivu-FqpB-z5Dt-S7n9-4OUH-gkcz
-FBLf3e/Gj6ZaG-N3X7-ulMJ-NF9u-ms20-J4zH-dtLV1M' d78d9e3e-9f72-48e4-ba63-684efeccc5de
else
search --no-floppy --fs-uuid --set=root d78d9e3e-9f72-48e4-ba63-684efeccc5de
fi
echo 'Loading Linux linux ...'
linux /boot/vmlinuz-linux root=/dev/mapper/archvol-root rw quiet
echo 'Loading initial ramdisk ...'
initrd /boot/initramfs-linux-fallback.img
menuentry 'Ubuntu 16.04.2 LTS (16.04) (on /dev/sdb6)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-81b686aa-60cb-4b3d-b32f-eb98f0603964' {
insmod part_msdos
insmod ext2
set root='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 561723cc-640e-439c-9fe7-f418b27249c6
else
search --no-floppy --fs-uuid --set=root 561723cc-640e-439c-9fe7-f418b27249c6
fi
linux /vmlinuz-4.4.0-83-generic root=UUID=81b686aa-60cb-4b3d-b32f-eb98f0603964 ro nomdmonddf nomdmonisw
initrd /initrd.img-4.4.0-83-generic
}
submenu 'Advanced options for Ubuntu 16.04.2 LTS (16.04) (on /dev/sdb6)' $menuentry_id_option 'osprober-gnulinux-advanced-81b686aa-60cb-4b3d-b32f-eb98f0603964' {
menuentry 'Ubuntu (on /dev/sdb6)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz-4.4.0-83-generic--81b686aa-60cb-4b3d-b32f-eb98f0603964' {
insmod part_msdos
insmod ext2
set root='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 561723cc-640e-439c-9fe7-f418b27249c6
else
search --no-floppy --fs-uuid --set=root 561723cc-640e-439c-9fe7-f418b27249c6
fi
linux /vmlinuz-4.4.0-83-generic root=UUID=81b686aa-60cb-4b3d-b32f-eb98f0603964 ro nomdmonddf nomdmonisw
initrd /initrd.img-4.4.0-83-generic
}
menuentry 'Ubuntu, with Linux 4.4.0-83-generic (on /dev/sdb6)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz-4.4.0-83-generic--81b686aa-60cb-4b3d-b32f-eb98f0603964' {
insmod part_msdos
insmod ext2
set root='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 561723cc-640e-439c-9fe7-f418b27249c6
else
search --no-floppy --fs-uuid --set=root 561723cc-640e-439c-9fe7-f418b27249c6
fi
linux /vmlinuz-4.4.0-83-generic root=UUID=81b686aa-60cb-4b3d-b32f-eb98f0603964 ro nomdmonddf nomdmonisw
initrd /initrd.img-4.4.0-83-generic
}
menuentry 'Ubuntu, with Linux 4.4.0-83-generic (upstart) (on /dev/sdb6)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz-4.4.0-83-generic--81b686aa-60cb-4b3d-b32f-eb98f0603964' {
insmod part_msdos
insmod ext2
set root='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 561723cc-640e-439c-9fe7-f418b27249c6
else
search --no-floppy --fs-uuid --set=root 561723cc-640e-439c-9fe7-f418b27249c6
fi
linux /vmlinuz-4.4.0-83-generic root=UUID=81b686aa-60cb-4b3d-b32f-eb98f0603964 ro nomdmonddf nomdmonisw init=/sbin/upstart
initrd /initrd.img-4.4.0-83-generic
}
menuentry 'Ubuntu, with Linux 4.4.0-83-generic (recovery mode) (on /dev/sdb6)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz-4.4.0-83-generic--81b686aa-60cb-4b3d-b32f-eb98f0603964' {
insmod part_msdos
insmod ext2
set root='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 561723cc-640e-439c-9fe7-f418b27249c6
else
search --no-floppy --fs-uuid --set=root 561723cc-640e-439c-9fe7-f418b27249c6
fi
linux /vmlinuz-4.4.0-83-generic root=UUID=81b686aa-60cb-4b3d-b32f-eb98f0603964 ro recovery nomodeset
initrd /initrd.img-4.4.0-83-generic
}
menuentry 'Ubuntu, with Linux 4.4.0-81-generic (on /dev/sdb6)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz-4.4.0-81-generic--81b686aa-60cb-4b3d-b32f-eb98f0603964' {
insmod part_msdos
insmod ext2
set root='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 561723cc-640e-439c-9fe7-f418b27249c6
else
search --no-floppy --fs-uuid --set=root 561723cc-640e-439c-9fe7-f418b27249c6
fi
linux /vmlinuz-4.4.0-81-generic root=UUID=81b686aa-60cb-4b3d-b32f-eb98f0603964 ro nomdmonddf nomdmonisw
initrd /initrd.img-4.4.0-81-generic
}
menuentry 'Ubuntu, with Linux 4.4.0-81-generic (upstart) (on /dev/sdb6)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz-4.4.0-81-generic--81b686aa-60cb-4b3d-b32f-eb98f0603964' {
insmod part_msdos
insmod ext2
set root='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 561723cc-640e-439c-9fe7-f418b27249c6
else
search --no-floppy --fs-uuid --set=root 561723cc-640e-439c-9fe7-f418b27249c6
fi
linux /vmlinuz-4.4.0-81-generic root=UUID=81b686aa-60cb-4b3d-b32f-eb98f0603964 ro nomdmonddf nomdmonisw init=/sbin/upstart
initrd /initrd.img-4.4.0-81-generic
}
menuentry 'Ubuntu, with Linux 4.4.0-81-generic (recovery mode) (on /dev/sdb6)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz-4.4.0-81-generic--81b686aa-60cb-4b3d-b32f-eb98f0603964' {
insmod part_msdos
insmod ext2
set root='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 561723cc-640e-439c-9fe7-f418b27249c6
else
search --no-floppy --fs-uuid --set=root 561723cc-640e-439c-9fe7-f418b27249c6
fi
linux /vmlinuz-4.4.0-81-generic root=UUID=81b686aa-60cb-4b3d-b32f-eb98f0603964 ro recovery nomodeset
initrd /initrd.img-4.4.0-81-generic
}
}
lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 931.5G 0 disk
|-sda1 8:1 0 100M 0 part
|-sda2 8:2 0 624.9G 0 part
|-sda3 8:3 0 1K 0 part
|-sda5 8:5 0 2G 0 part
|-sda6 8:6 0 46.6G 0 part
|-sda7 8:7 0 74.5G 0 part
|-sda8 8:8 0 18.6G 0 part
|-sda9 8:9 0 46.6G 0 part
|-sda10 8:10 0 7.5G 0 part
`-sda11 8:11 0 18.6G 0 part
sdb 8:16 0 931.5G 0 disk
|-sdb1 8:17 0 100M 0 part
|-sdb2 8:18 0 624.9G 0 part
|-sdb3 8:19 0 1K 0 part
|-sdb5 8:21 0 2G 0 part
|-sdb6 8:22 0 46.6G 0 part
|-sdb7 8:23 0 74.5G 0 part
|-sdb8 8:24 0 18.6G 0 part
|-sdb9 8:25 0 46.6G 0 part
|-sdb10 8:26 0 7.5G 0 part
`-sdb11 8:27 0 18.6G 0 part
sdc 8:32 0 3.7T 0 disk
`-md10 9:10 0 3.7T 0 raid1
`-datavg-datalv 254:3 0 5.5T 0 lvm /data
sdd 8:48 0 3.7T 0 disk
sde 8:64 0 1.8T 0 disk
`-sde1 8:65 0 1.8T 0 part
`-md20 9:20 0 1.8T 0 raid1
`-datavg-datalv 254:3 0 5.5T 0 lvm /data
sdf 8:80 0 1.8T 0 disk
`-sdf1 8:81 0 1.8T 0 part
`-md20 9:20 0 1.8T 0 raid1
`-datavg-datalv 254:3 0 5.5T 0 lvm /data
nvme0n1 259:0 0 477G 0 disk
|-nvme0n1p1 259:1 0 450M 0 part
|-nvme0n1p2 259:2 0 100M 0 part /boot/efi
|-nvme0n1p3 259:3 0 16M 0 part
|-nvme0n1p4 259:4 0 146G 0 part
`-nvme0n1p5 259:5 0 330.5G 0 part
|-archvol-root 254:0 0 100G 0 lvm /
|-archvol-swap 254:1 0 32G 0 lvm [SWAP]
`-archvol-home 254:2 0 198.5G 0 lvm /home
Mod Note: Fix code tags -- V1del
Last edited by V1del (2017-08-05 02:50:02)
Offline
Is windows in the same hard drive with archlinux?
Offline
I took the liberty of fixing your code tags you have to actually write out [ code ]yourcode[ /code ] (without the spaces) simply adding the brackets is insufficient
Offline
Good afternoon gents,
I bid you good day on behalf of the non-male gendered peoples of this community
/dev/nvme0n1p2 96M 42M 55M 43% /boot/efi
Why did you do this?
Your current bootmanager (systemd-boot) requires that the kernel be located on the EFI system partition, this is why the installation guide recommends mounting that to /boot
See https://wiki.archlinux.org/index.php/EF … unt_Points for workarounds (or mount the ESP to /boot instead).
To get GRUB working, issue this command from a Windows Administrator prompt:
bcdedit /set {bootmgr} path \EFI\ARCHLINUX\GRUB64.EFI
Jin, Jîyan, Azadî
Offline
Eureka,
For some reason the EFI partition mounted on /boot/efi which i created during install. Must of been reading some other post, but it makes sense to just use /boot.
# /dev/nvme0n1p2
UUID=9647-9F5C /boot/efi vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 2
I was able to get GRUB to supercede systembootd by modifying the bootmgr variable in windows....
bcdedit /set {bootmgr} path \EFI\ARCHLINUX\GRUB64.EFI
Many thanks to all the ladies and gents for the prompt advice... :-)
Moving on to printing issues...
Offline
Pages: 1