824 B
824 B
repair grub after installing windows
https://www.youtube.com/watch?v=Zr9oyWjD6IA https://askubuntu.com/questions/88384/how-can-i-repair-grub-how-to-get-ubuntu-back-after-installing-windows
- use
sudo fdisk -lto find efi and main linux partition - Mount linux partition to mnt.
sudo mount /dev/sdxy .mntand then mount efi partition to/mnt/boot/efi.sudo mount /dev/sdab .mnt/boot/efi. - chroot to /mnt to access linux partition and then
update-grub. Though most probably have to do this step toogrub-install /dev/sdasda here but it have to be the drive where efi is installed - finally exit and reboot
and if installed distri is arch based then
while in chroot do following
grub-mkconfig -o /boot/grub/grub.cfg
then
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB