Arch - Boot === ###### tags: `Arch` `Boot` ### BOOT - EFI Boot Manager ```bash sudo efibootmgr -c -d /dev/nvme0n1 -p 1 -L "rEFInd" -l /EFI/refind/refind_x64.efi sudo efibootmgr -c -d /dev/nvme0n1 -p 1 -L "Arch" -l /EFI/Arch/grubx64.efi sudo efibootmgr -c -d /dev/nvme0n1 -p 1 -L "W10" -l EFI/Microsoft/Boot/bootmgfw.efi sudo efibootmgr -c -d /dev/nvme0n1 -p 1 -L "W11" -l EFI/Microsoft/Boot/bootmgfw.efi sudo efibootmgr -c -d /dev/nvme0n1 -p 1 -L "GRUB" -l /EFI/Boot/grubx64.efi sudo efibootmgr -v #display Info sudo efibootmgr -D #remove duplicate values sudo efibootmgr -B -b 7 #delete Boot0007 ``` ### UEFI - reEFInd ```bash #install pacman -S refind refind-install #config sudo vim /boot/refind_linux.conf sudo vim /boot/efi/EFI/refind/refind.conf sudo vim /boot/efi/EFI/refind/S9yN37.conf ``` ### UEFI - GRUB ```bash pacman -S grub os-prober efibootmgr dosfstools mtools ntfs-3g #uncomment #GRUB_DISABLE_OS_PROBER=false sudo vim /etc/default/grub #install grub #when you run grub-install by default it assumes the EFI system is mounted as /boot/efi grub-install --target=x86_64-efi --bootloader-id=Arch --recheck #--efi-directory=/boot/efi sudo vim /etc/default/grub sudo vim /etc/grub.d/40_custom grub-mkconfig -o /boot/grub/grub.cfg grub-mkconfig -o /boot/efi/EFI/GRUB/grub.cfg ls /boot/efi/EFI/ ``` ### UEFI - systemd-boot ```bash bootctl install #PARTUUID of the /root partition blkid -s PARTUUID -o value /dev/nvme0n1p6 sudo vim /boot/loader/entries/arch.conf title Arch Linux linux /vmlinuz-linux initrd /intel-ucode.img initrd /initramfs-linux.img options root=PARTUUID=rootUUID rw #or options root=PARTUUID="LABEL=arch" rw ``` ### Update GPT Partition Number ```bash Run sudo gdisk /dev/sdc Option s to sort the partitions Review changes by using option p And finally write the changes to the disk with option w ```