Installing dualboot or multiboot operating system sometimes can damage the boot loader and make the pc fail to boot as it happened to me when I was installing multiple linux distros a few days ago.
But do not worry because installing grub boot loader is very easy and I use Archlinux live usb to reinstall grub in my laptop.
Here is my way to fix it and reinstall grub using archlinux live usb.
First, I restart my computer and boot from live archlinux usb and I get todefault archlinux shell.
1. Create a root point for root disk in /mnt/root
mkdir /mnt/root
2. Mount root partition to this point
mount /dev/sdXX /mnt/root
3. Now I have to change the root
arch-chroot /mnt/root
4. Now is the time to regenerate grub.cfg
grub-mkconfig -o /boot/grub/grub.cfg
5. The last only install grub back in the MBR
grub-install /dev/sdX
Then reboot the computer and it was working and I can see boot menu to choose which os I will use.
But do not worry because installing grub boot loader is very easy and I use Archlinux live usb to reinstall grub in my laptop.
Here is my way to fix it and reinstall grub using archlinux live usb.
First, I restart my computer and boot from live archlinux usb and I get todefault archlinux shell.
1. Create a root point for root disk in /mnt/root
mkdir /mnt/root
2. Mount root partition to this point
mount /dev/sdXX /mnt/root
3. Now I have to change the root
arch-chroot /mnt/root
4. Now is the time to regenerate grub.cfg
grub-mkconfig -o /boot/grub/grub.cfg
5. The last only install grub back in the MBR
grub-install /dev/sdX
Then reboot the computer and it was working and I can see boot menu to choose which os I will use.
No comments:
Post a Comment