I am trying to dual boot Arch and Ubuntu linux and seem to have somehow ended up with two grub menus, the second of which shows up when I type exit at the grub prompt . Even stranger still is the grub menu that shows up in the first instance is does have a boot entry for Arch linux but it attempts to find the uuid on /dev/sde that does not exist on my system. The Ubuntu entry boots fine.
Dunno why but I find grub to be one of the more confusing aspects of linux.
After installing archlinux I ran
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=ArchLinux --recheck
Added flags for Th3 and then ran, grub-mkconfig -o /boot/grub/grub.cfg
How do I go about fixing this, and why did I end up with a strange configuration?
I think all of the other pertinent info is below, but if I missed anything please let me know.
Output of tree:
/boot/efi/
|-- EFI
| |-- ArchLinux
| | `-- grubx64.efi
| |-- BOOT
| | |-- BOOTX64.EFI
| | |-- fbx64.efi
| | `-- mmx64.efi
| `-- ubuntu
| |-- BOOTX64.CSV
| |-- grub.cfg
| |-- grubx64.efi
| |-- mmx64.efi
| `-- shimx64.efi
`-- System\ Volume\ Information
|-- AadRecoveryPasswordDelete
`-- ClientRecoveryPasswordRotation
My boot media layout [Ubuntu**] added by me.
lsblk /dev/nvme0n1
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
nvme0n1 259:0 0 476.9G 0 disk
|-nvme0n1p1 259:1 0 487M 0 part /boot/efi
|-nvme0n1p2 259:2 0 274.4G 0 part [Ubuntu**]
|-nvme0n1p3 259:3 0 122.1G 0 part [SWAP]
`-nvme0n1p4 259:4 0 80G 0 part /