You are not logged in.

#1 2018-04-26 02:56:31

Bull3tM0nk3y
Member
Registered: 2016-11-22
Posts: 24

Cannot set up GRUB to detect Windows 10 UEFI

Here's all the info I think you guys might need: https://pastebin.com/0qaiZTKZ
UEFI is detected, and updated to the latest version on my ThinkPad T420. I followed the wiki, and no install scripts/Antergos/Manjaro/Etc. Both Arch Linux and Win10 boot from UEFI, and both have UEFI partitions on them.

Any advice is greatly appricated!


Noobie to Arch, FLOSS advocate, and geek. Runner and lover of KDE Plasma.

Offline

#2 2018-04-26 03:01:27

Morganamilo
Package Maintainer (PM)
Registered: 2017-12-05
Posts: 77

Re: Cannot set up GRUB to detect Windows 10 UEFI

Check the wiki again. The install command is:

grub-install --target=x86_64-efi --efi-directory=esp --bootloader-id=GRUB

Where esp is your EFI partition.

Offline

#3 2018-04-26 03:03:15

Bull3tM0nk3y
Member
Registered: 2016-11-22
Posts: 24

Re: Cannot set up GRUB to detect Windows 10 UEFI

Morganamilo wrote:

Check the wiki again. The install command is:

grub-install --target=x86_64-efi --efi-directory=esp --bootloader-id=GRUB

Where esp is your EFI partition.

Is that my Arch Linux EFI partition or my Win10 EFI partition? Also, would installing GRUB to the Win10 part mess up my Win10 set up?


Noobie to Arch, FLOSS advocate, and geek. Runner and lover of KDE Plasma.

Offline

#4 2018-04-26 03:08:57

adomol
Member
Registered: 2014-12-18
Posts: 26

Re: Cannot set up GRUB to detect Windows 10 UEFI

Bull3tM0nk3y wrote:

Is that my Arch Linux EFI partition or my Win10 EFI partition? Also, would installing GRUB to the Win10 part mess up my Win10 set up?


You should have only one ESP, use the one that came with Windows and install grub there.

Offline

#5 2018-04-26 03:10:55

Bull3tM0nk3y
Member
Registered: 2016-11-22
Posts: 24

Re: Cannot set up GRUB to detect Windows 10 UEFI

adomol wrote:
Bull3tM0nk3y wrote:

Is that my Arch Linux EFI partition or my Win10 EFI partition? Also, would installing GRUB to the Win10 part mess up my Win10 set up?


You should have only one ESP, use the one that came with Windows and install grub there.

I recall not being told that in the wiki, but I'm probably wrong about that.

So now I'm getting:

sudo grub-install --target=x86_64-efi --efi-directory=sda1 --bootloader-id=GRUB
Installing for x86_64-efi platform.
grub-install: error: failed to get canonical path of `sda1'.

Last edited by Bull3tM0nk3y (2018-04-26 03:13:49)


Noobie to Arch, FLOSS advocate, and geek. Runner and lover of KDE Plasma.

Offline

#6 2018-04-26 03:16:24

adomol
Member
Registered: 2014-12-18
Posts: 26

Re: Cannot set up GRUB to detect Windows 10 UEFI

Bull3tM0nk3y wrote:
adomol wrote:
Bull3tM0nk3y wrote:

Is that my Arch Linux EFI partition or my Win10 EFI partition? Also, would installing GRUB to the Win10 part mess up my Win10 set up?


You should have only one ESP, use the one that came with Windows and install grub there.

I recall not being told that in the wiki, but I'm probably wrong about that.

So now I'm getting:

sudo grub-install --target=x86_64-efi --efi-directory=sda1 --bootloader-id=GRUB
Installing for x86_64-efi platform.
grub-install: error: failed to get canonical path of `sda1'.

You should mount /dev/sda1 to /boot and your grub install would use...

grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=grub --recheck

Offline

#7 2018-04-26 03:22:55

Bull3tM0nk3y
Member
Registered: 2016-11-22
Posts: 24

Re: Cannot set up GRUB to detect Windows 10 UEFI

adomol wrote:
Bull3tM0nk3y wrote:
adomol wrote:

You should have only one ESP, use the one that came with Windows and install grub there.

I recall not being told that in the wiki, but I'm probably wrong about that.

So now I'm getting:

sudo grub-install --target=x86_64-efi --efi-directory=sda1 --bootloader-id=GRUB
Installing for x86_64-efi platform.
grub-install: error: failed to get canonical path of `sda1'.

You should mount /dev/sda1 to /boot and your grub install would use...

grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=grub --recheck

*sigh* And now I get this.

sudo grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=grub --recheck
Installing for x86_64-efi platform.
grub-install: error: failed to get canonical path of `/boot/grub'.

lsblk 
NAME    MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda       8:0    0 465.8G  0 disk 
├─sda1    8:1    0   499M  0 part /boot
├─sda2    8:2    0   100M  0 part 
├─sda3    8:3    0    16M  0 part 
└─sda4    8:4    0 465.2G  0 part /run/media/quentin/8E904CE0904CD07F
sdb       8:16   0 149.1G  0 disk 
├─sdb1    8:17   0     1G  0 part /boot
├─sdb3    8:19   0   7.9G  0 part [SWAP]
└─sdb4    8:20   0 140.2G  0 part /home

Noobie to Arch, FLOSS advocate, and geek. Runner and lover of KDE Plasma.

Offline

#8 2018-04-26 03:27:59

adomol
Member
Registered: 2014-12-18
Posts: 26

Re: Cannot set up GRUB to detect Windows 10 UEFI

sda1 and sdb1 are both mounted to /boot.... umount /dev/sdb1. I would get rid of that 1G partition(sdb1).

Offline

#9 2018-04-26 03:30:18

circleface
Member
Registered: 2012-05-26
Posts: 639

Re: Cannot set up GRUB to detect Windows 10 UEFI

You have two partitions mounted as /boot.  Make sure you only have the one EFI partition mounted, which should be the same as your Windows EFI partition.

Edit: ehhh, I'm a little too slow smile

Last edited by circleface (2018-04-26 03:30:42)

Offline

#10 2018-04-26 03:30:45

Bull3tM0nk3y
Member
Registered: 2016-11-22
Posts: 24

Re: Cannot set up GRUB to detect Windows 10 UEFI

Okay. I did that now. Still the same error.

sudo grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=archy --recheck
Installing for x86_64-efi platform.
grub-install: error: failed to get canonical path of `/boot/grub'.

Last edited by Bull3tM0nk3y (2018-04-26 03:43:05)


Noobie to Arch, FLOSS advocate, and geek. Runner and lover of KDE Plasma.

Offline

#11 2018-04-26 03:49:03

adomol
Member
Registered: 2014-12-18
Posts: 26

Re: Cannot set up GRUB to detect Windows 10 UEFI

Things are complicated by the fact the /dev/sdb1 is in your fstab to mount at /boot. If I was in this situation, I would boot an Arch usb key and chroot in to fix the fstab to reflect sda1 as /boot and then install grub in the chroot.


I'm noticing that your partitions look odd... I don't see a / (root) partition just a /home which is 140GB and swap which is 8GB which take up the whole drive. You should fix the partitions and get rid of the useless extra ESP which takes up 1GB.

Last edited by adomol (2018-04-26 04:02:13)

Offline

#12 2018-04-26 13:14:02

nl6720
The Evil Wiki Admin
Registered: 2016-07-02
Posts: 718

Re: Cannot set up GRUB to detect Windows 10 UEFI

I don't see why he should mount ESP to /boot when using GRUB. The all-knowing wiki suggests a different mountpoint: https://wiki.archlinux.org/index.php/EF … _partition .
Also having multiple EFI system partitions shouldn't cause problems as long as there is only one ESP per disk.

Offline

#13 2018-04-26 14:50:37

SealsRock12
Member
Registered: 2018-04-03
Posts: 83

Re: Cannot set up GRUB to detect Windows 10 UEFI

Did you install os=prober? It is required to detect other operating systems.


-- SealsRock12

Offline

Board footer

Powered by FluxBB