For windows no problem. On the other hand, what do you recommend for archlinux? Does Grub matter because you can install archlinux either with grub or grub2?
For Arch you should either chainload it or create a manual boot entry. Don’t try to use os-prober.
Arch requires loading 2 boot images, one for the microcode and another for the initramfs.
You must add the Arch entry to this 40_custom file located in the /etc/grub.d/ directory.
sudo grep ^menuentry /boot/grub/grub.cfg
menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-fe1c3047-b26d-4ea8-b034-f0c47b3f7623' {
menuentry “Arch Linux”{–class arch --class gnu-linux --class gnu --class os $menuentry_id_option ‘gnulinux-simple-fe1c3047-b26d-4ea8-b034-f0c47b3f7623’}
sudo fdisk -l
[sudo] password for gg:
Disk /dev/nvme0n1: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: Samsung SSD 980 PRO 1TB
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 3A12D5F5-E900-480B-AB4C-B0F74C9B23E1
Device Start End Sectors Size Type
/dev/nvme0n1p1 2048 206847 204800 100M EFI System
/dev/nvme0n1p2 206848 239615 32768 16M Microsoft reserved
/dev/nvme0n1p3 239616 522737663 522498048 249.1G Microsoft basic data
/dev/nvme0n1p4 522737664 523352063 614400 300M EFI System
/dev/nvme0n1p5 523352064 1047640063 524288000 250G Linux LVM
Disk /dev/nvme2n1: 232.89 GiB, 250059350016 bytes, 488397168 sectors
Disk model: Samsung SSD 970 EVO Plus 250GB
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 53AE3AA7-0393-44FB-AE71-19EB774F9DB1
Device Start End Sectors Size Type
/dev/nvme2n1p1 2048 1230847 1228800 600M EFI System
/dev/nvme2n1p2 1230848 3327999 2097152 1G Linux filesystem
/dev/nvme2n1p3 3328000 488396799 485068800 231.3G Linux LVM
Disk /dev/mapper/rootvg-rootlv: 60 GiB, 64424509440 bytes, 125829120 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/zram0: 8 GiB, 8589934592 bytes, 2097152 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/mapper/rootvg-homelv: 171.3 GiB, 183928619008 bytes, 359235584 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
=============================================================================
efibootmgr -v
BootCurrent: 0001
Timeout: 1 seconds
BootOrder: 0001,0002,0000,0004,0003,0005,0006,0007,0008,0009,000A
Boot0000* Windows Boot Manager HD(1,GPT,7df34fbb-ac24-48a8-ba56-2920b7e50820,0x800,0x32000)/File(\EFI\MICROSOFT\BOOT\BOOTMGFW.EFI)57494e444f5753000100000088000000780000004200430044004f0042004a004500430054003d007b00390064006500610038003600320063002d0035006300640064002d0034006500370030002d0061006300630031002d006600330032006200330034003400640034003700390035007d00000061000100000010000000040000007fff0400
dp: 04 01 2a 00 01 00 00 00 00 08 00 00 00 00 00 00 00 20 03 00 00 00 00 00 bb 4f f3 7d 24 ac a8 48 ba 56 29 20 b7 e5 08 20 02 02 / 04 04 46 00 5c 00 45 00 46 00 49 00 5c 00 4d 00 49 00 43 00 52 00 4f 00 53 00 4f 00 46 00 54 00 5c 00 42 00 4f 00 4f 00 54 00 5c 00 42 00 4f 00 4f 00 54 00 4d 00 47 00 46 00 57 00 2e 00 45 00 46 00 49 00 00 00 / 7f ff 04 00
data: 57 49 4e 44 4f 57 53 00 01 00 00 00 88 00 00 00 78 00 00 00 42 00 43 00 44 00 4f 00 42 00 4a 00 45 00 43 00 54 00 3d 00 7b 00 39 00 64 00 65 00 61 00 38 00 36 00 32 00 63 00 2d 00 35 00 63 00 64 00 64 00 2d 00 34 00 65 00 37 00 30 00 2d 00 61 00 63 00 63 00 31 00 2d 00 66 00 33 00 32 00 62 00 33 00 34 00 34 00 64 00 34 00 37 00 39 00 35 00 7d 00 00 00 61 00 01 00 00 00 10 00 00 00 04 00 00 00 7f ff 04 00
Boot0001* Fedora HD(1,GPT,3232163d-15bd-4ff1-ab24-12adc2a6f18d,0x800,0x12c000)/File(\EFI\FEDORA\SHIMX64.EFI)0000424f
dp: 04 01 2a 00 01 00 00 00 00 08 00 00 00 00 00 00 00 c0 12 00 00 00 00 00 3d 16 32 32 bd 15 f1 4f ab 24 12 ad c2 a6 f1 8d 02 02 / 04 04 34 00 5c 00 45 00 46 00 49 00 5c 00 46 00 45 00 44 00 4f 00 52 00 41 00 5c 00 53 00 48 00 49 00 4d 00 58 00 36 00 34 00 2e 00 45 00 46 00 49 00 00 00 / 7f ff 04 00
data: 00 00 42 4f
Boot0002* Arch_Grub HD(4,GPT,d959d42f-b37e-498d-8043-13cffb4728f8,0x1f285800,0x96000)/File(\EFI\Arch_Grub\grubx64.efi)
dp: 04 01 2a 00 04 00 00 00 00 58 28 1f 00 00 00 00 00 60 09 00 00 00 00 00 2f d4 59 d9 7e b3 8d 49 80 43 13 cf fb 47 28 f8 02 02 / 04 04 3a 00 5c 00 45 00 46 00 49 00 5c 00 41 00 72 00 63 00 68 00 5f 00 47 00 72 00 75 00 62 00 5c 00 67 00 72 00 75 00 62 00 78 00 36 00 34 00 2e 00 65 00 66 00 69 00 00 00 / 7f ff 04 00
Boot0003* UEFI: SanDisk, Partition 1 PciRoot(0x0)/Pci(0x14,0x0)/USB(25,0)/USB(0,0)/HD(1,GPT,13da7661-226b-040f-12a6-9a89d96c5de5,0x800,0x1c93570)0000424f
dp: 02 01 0c 00 d0 41 03 0a 00 00 00 00 / 01 01 06 00 00 14 / 03 05 06 00 19 00 / 03 05 06 00 00 00 / 04 01 2a 00 01 00 00 00 00 08 00 00 00 00 00 00 70 35 c9 01 00 00 00 00 61 76 da 13 6b 22 0f 04 12 a6 9a 89 d9 6c 5d e5 02 02 / 7f ff 04 00
data: 00 00 42 4f
How to know display the current Grub2 boot order?
RESOLVED
In Arch open /boot/grub/grubg.cfg
Copy menuentry
And stick in /etc/grub.d/40_custom
Thanks dalto.
Too simple that’s why almost no one helped me