10
submitted 11 months ago by laskobar@feddit.de to c/archlinux@lemmy.ml

The first OS on laptop was Windows 10. After that, I have added Manjaro. Manjaro has added a Grub menu, with entry's for Manjaro and Windows. Now I want to switch to Arch. I have installed Arch on a separate partition. Arch has not added a entry in this grub menu, but this was expected. I have used update-grub from Manjaro, what added Arch to the menu.

But for some reason I can't edit the menu from within Arch.

I have tried to understand Arch Wiki what I have to do, to edit this menu from Arch. Can someone please help me to get this to work? I have tried to add my EFI partition /dev/sda1 via fstab to /boot/efi like in Manjaro, but this doesn't help to find the same menu with grub-customizer.

Any idea's?

top 5 comments
sorted by: hot top controversial new old
[-] Heavybell@lemmy.world 2 points 11 months ago

I'm a gentoo user, so I don't know how either manjaro or arch lay out their partitions. But in my case, the grub.cfg (menu) file is actually on the root partition, in /boot. The efi partition contains only the grub loader, which I presume knows where to look for grub.cfg because that's how grub2-setup installed it.

It's possible you have a similar issue. Your manjaro partition may have a /boot dir which is where grub.cfg is located. Even if your arch partition also has /boot it won't matter if the grub loader doesn't read it.

[-] thanksforallthefish@literature.cafe 2 points 11 months ago

You're correct. /boot is the location for grub.cfg for a vanilla manjaro install and a grub using arch install

[-] nitrolife@rekabu.ru 2 points 11 months ago* (last edited 11 months ago)

Show df -h from Manjaro and Arch please.

[-] laskobar@feddit.de 1 points 11 months ago

df -h

Manjaro:

dev             7,8G       0  7,8G    0% /dev
run             7,8G    1,9M  7,8G    1% /run
/dev/sdb3        68G     50G   15G   78% /
tmpfs           7,8G       0  7,8G    0% /dev/shm
tmpfs           7,8G    9,0M  7,8G    1% /tmp
/dev/sdb4       587G    272G  285G   49% /mnt/games
/dev/sda1       296M     56M  241M   19% /boot/efi
tmpfs           1,6G    100K  1,6G    1% /run/user/1000

Arch:

dev             7,8G       0  7,8G    0% /dev
run             7,8G    1,7M  7,8G    1% /run
efivarfs        128K     46K   78K   38% /sys/firmware/efi/efivars
/dev/sdb5        69G     21G   45G   32% /
tmpfs           7,8G       0  7,8G    0% /dev/shm
tmpfs           7,8G    8,6M  7,8G    1% /tmp
/dev/sdb4       587G    272G  285G   49% /mnt/games
/dev/sda1       296M     56M  241M   19% /boot/efi
tmpfs           1,6G    108K  1,6G    1% /run/user/1000
/dev/sdb2       1,2T    796G  332G   71% /mnt/volume
[-] laskobar@feddit.de 3 points 11 months ago

I got it to work...

I have used the command grub-install --target=x86_64-efi --efi-directory=esp --bootloader-id="Arch Linux" before, but without success. This didn't worked before. But now...

I have no idea, whats changed. Anyhow. Im happy.

this post was submitted on 11 Dec 2023
10 points (100.0% liked)

Arch Linux

7175 readers
1 users here now

The beloved lightweight distro

founded 4 years ago
MODERATORS