#Yet another issue with grub
96 messages · Page 1 of 1 (latest)
I installed the Linux-firmware, Linux and base with the package manager if that’s what you mean
im talking about the firmware of your device
(aka the UEFI you are using)
Oh, you mean like the manufacturer? Sorry I’m not sure I follow. The motherboard is by MSI
And it supports UEFI
okay I don't know MSI
and how it interacts with Linux
im sorry
Oh, but when I dual booted Ubuntu it worked
Both Ubuntu and windows were on the menu
So I know it’s capable of working
@thorn tree are you able to chroot?
Yes
run grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=grub
I’ve done that multiple times already
I’m doing the process exactly as documented
Everything is mounted properly
run this after it:
And that too, I’ve done
Yes
alright cool, you want to install arch on the entire drive right?
dont type a whole ass paragraph
No, let me give you the full background. So the last couple days I’ve installed arch on my laptop, had some issues with grub on that too, also dual booting windows and arch, still don’t know how it fixed itself when the method didn’t change. I’m now trying to do the same dual boot of windows and arch on my main desktop PC. The windows boot manager is on my C drive, and all of that space is dedicated to windows. On my D drive, there is a large partition also for windows, however there’s ~200G free space I want to use for arch on the drive. The process I’ve done is to make 3 partitions with that free space, a swap, efi and filesystem. I’ve done the documented process on the wiki, and installed grub and set it up exactly like the wiki detailed and how you described, yet no entries appear.
can you reinstall windows?
Not easily, I’ve got quite a lot on there and I’d rather not have to reinstall everything
Not worth the effort
I mean it would be alot easier to do it that way
to format the drive and install arch and then reinstall windows on top of it
I’d rather not, arch isn’t that important to me
I really don’t see where I’ve gone wrong
me neither tbh
I’ll try start from scratch and hope it works, but grub has always been temperamental for me
@sinful bane just to double check, it’s okay to mount the windows efi and the arch efi to the same location right
why are you even messing with the windows partitions
I’m not, I’m just mounting the windows efi so that grub can detect it
I'd rather select them from the BIOS
How would you do that?
select from the boot menu?
From the grub menu? But the whole problem is there’s nothing there
Oh the bios boot menu
from the boot menu of your system
yeah
But you can’t add stuff to grub from the bios can you?
I’d rather not change the boot order every time I wanna switch os
you dont have to switch the boot order
just go to the boot menu and select the partition you want to boot in
I’d rather do it through grub though
alright good luck
Is this a concern when running mkinitcpio?
Infact most my commands are saying this now, god what’s going on
I did it from scratch, no differently, this actually makes 0 sense
df -h
Your EFI partition is too small
I suggest you mount it as /boot/efi rather than /boot, unless you have special requirements such as full system encryptionp
Oh, I thought 500M would be enough, thanks
Senatvs Popvlvsqve Romanvs received a thank you cookie!
Or are you on about the windows one? If so I can’t really resize that that easily
If you cannot easily change the size of the ESP, the previous suggestion still applies.
👍
I’m not really sure what difference changing the directory makes, but you know more than me so I’ll take your word for it
The initramfs, including the fallback, typically around 80 to 100 MiB, and vmlinuz, around 10 to 10 MiB, would be placed in /boot by default.
ahh I see
They would definitely not be stored on the 100MiB ESP.
So is it the ~100MiB nvme efi partition that’s causing the issues right
Not the 500MiB sda one
Grub has the ability to read common Linux file systems, so loading the kernel from ext4, xfs and btrfs is no problem for it.
I’m still getting this issue
I’m really confused as to why, what partition is out of space? I gave it 1GB for efi
Ignore all the extra lines, that was just so I could fit the picture on the monitor
This is so confusing
What have you done?
I mounted the windows efi and the arch efi to /boot/efi like you said and still had problems with grub-install
Do I need to resize the windows efi, and if so, how?
mounted the windows efi and the arch efi to /boot/efi
Do not mount multiple ESPs to the same mount point.
findmnt /boot/efi
Oh, I see, so how should I conduct the grub-install if there’s 2 different mount points when the efi-directory only supplies one
Only one ESP should be mounted as /boot/efi,
- run
umount /boot/efitwice - clean up the old vmlinuz and initramfs.
- reinstall grub with the new ESP path
- copy vmlinuz from /lib/modules to /boot in the target filesystem
- rebuild initramfs
So where should the other esp be mounted then?
The other ESP shall not be mounted.
That’s what I did Initially, however it just didn’t detect windows at all when I did thst
Mounting two different ESPs on the same mounting point would effectively shadow the first ESP mounted.
Oh right
I’ll give it another go and let you know, Ty
Okay so I’ve done the installation and I’m now at the grub menu, the grub menu displays arch ad expected, however no windows, how do I go about getting os prober to detect the windows efi? It is enabled
Should I now mount the windows efi somewhere else then use os prober?
That did it, thanks for all the help