You are not logged in.

#1 2016-04-07 13:30:42

Magnus2552
Member
Registered: 2016-04-07
Posts: 63

[Solved] Grub can't find ESP (Dual Boot installation with Windows)

Hello there, I am having troubles installing Arch on my Laptop. Previously my Laptop was running a dual boot setup with Windows 10 (clean installed) and latest Kubuntu. It also already had Grub installed. Now I want to change Kubuntu to Arch Linux with KDE and I still want to dual boot Windows. I am following the Beginners guide, the installation guide, and have watched some videos in advance. But when it comes to setting up grub, it always fails. My EFI system partition, which was originally created by Windows installation, is sda2 and if I mount it at /boot, following error occurs, when I try to setup grub:
Cannot open /boot/grub/device.map (the file does not exist). It also says: "Failed to get canonical path of esp". I double checked btw, that the boot flag for sda2 is set.
Here is the command, that produces the error:

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

Sometimes they say on the internet, that you should mount at /boot/efi, but when I do this, it produces even more errors. Grub reports similar errors and in addition to this, also initramfs doesn't work anymore, so I suppose that is not correct.
What do I have to do now?

Last edited by Magnus2552 (2016-05-15 17:02:22)

Offline

#2 2016-04-07 13:44:27

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,868
Website

Re: [Solved] Grub can't find ESP (Dual Boot installation with Windows)

Not an installation issue, moving to NC.


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

#3 2016-04-07 14:15:02

EmilyShepherd
Member
From: Bucks, UK
Registered: 2016-03-20
Posts: 45
Website

Re: [Solved] Grub can't find ESP (Dual Boot installation with Windows)

Are you running this from your root directory? If not the flag should be '--efi-directory=/esp' (with the forward slash at the start), assuming you've mounted your ESP on /esp - could you post the output of running "mount" to confirm that it is mounted correctly?

Offline

#4 2016-04-07 14:51:20

Xabre
Member
From: Serbia
Registered: 2009-03-19
Posts: 750

Re: [Solved] Grub can't find ESP (Dual Boot installation with Windows)

Well, you might use actual directory instead of esp. If you've been reading the wiki on grub, might want to read it more carefully. You are supposed to replace esp with the actually path to the location where your EFI system partition is mounted.

Last edited by Xabre (2016-04-07 14:54:51)

Offline

#5 2016-04-24 07:57:13

Magnus2552
Member
Registered: 2016-04-07
Posts: 63

Re: [Solved] Grub can't find ESP (Dual Boot installation with Windows)

Sry for late reply
Thank you for the answers, it actually just was that I had to replace esp with the directory and now I have a stable Arch Linux installed smile
Stable, except that it sometimes does not shutdown when I press shutdown. Instead it says that there is a stop job running, waits 90 s and then shutsdown.
How can I fix this? The internet says that I should downgrade systemd, but is that really recommended?

Edit: I found the solution, in case it is useful to anyone:
Just run this command to disable coredump:

ln -s /dev/null /etc/sysctl.d/50-coredump.conf

Last edited by Magnus2552 (2016-05-15 17:01:25)

Offline

Board footer

Powered by FluxBB