Ali Farooq Ali Farooq - 25 days ago 5x
Linux Question

How to install grub after installing Windows 10

I recently install Linux Mint (KDE Plasma) on my SSD (30GB Partition) after that I install Windows 10 on remaining storage. But when I tried to boot in Linux Mint my Computer automatically boot Windows 10 without showing Boot options for selecting OS. Now, how to install GRUB on Master Boot Record (MBR) of my SSD to boot both OS.


First live boot to your Linux Mint system, using external Live CD/USB Drive, then follow these commands to re-install GRUB on MBR.

  1. mount your Linux installed partition to some mount point. here XY is the number of your Linux distro partition.

    sudo mount <root-partition[e.g. /dev/sdaXY]> <mount-point[e.g. /mnt/]>
  2. Now bind some essential live root partition directories to mounted root partition at /mnt.

    sudo mount --bind /dev /mnt/dev && sudo mount --bind /dev/pts /mnt/dev/pts && sudo mount --bind /proc /mnt/proc && sudo mount --bind /sys /mnt/sys
  3. Now, change the root to newly mounted partition directory.

    sudo chroot <mount-point[e.g. /mnt/]>
  4. Now, install the GRUB using grub-install command at your HDD MBR.

    grub-install /dev/sda
  5. Finally update the grub entries to show newly detected partition operating systems.

  6. And at last unmount all the binded partition directories, and then reboot.

    sudo reboot

That's it, hope this will help!!