Grub Setup
Grub Setup
● lsblk
● sudo mount /dev/nvme0n1p4 /mnt (root partition)
● sudo mount /dev/nvme0n1p3 /mnt/boot (boot partition)
● sudo mount - -bind /dev /mnt/dev
● sudo mount - -bind /proc /mnt/proc
● sudo mount - -bind /sys /mnt/sys
● sudo mount - -bind /sys/firmware/efi/efivars /mnt/sys/firmware/efi/efivars
● sudo chroot /mnt
● sudo grub-install - -target=x86_64-efi - -efi-directory=/boot/efi - -bootloader-id=GRUB
● sudo grub-mkconfig -o /boot/grub/grub.cfg
● exit
● sudo umount -R /mnt
● reboot
➔ Then boot into your system and regenerate the grub configuration file so that
GRUB can detect other operating systems.
● sudo grub-mkconfig -o /boot/grub/grub.cfg
● sudo reboot now