How to install grub for windows

You are here: Home / Windows / How To Install Grub Bootloader In Windows 10? – Complete Guide

Plenty of users have dual boot in their PCs. Most Ubuntu users have a Grub bootloader for booting. However, many users have recently reported that a Windows update overrides their Windows Boot Manager. This prevent users from booting in Ubuntu after updating Windows.

In this article, I have discussed how to install Grub bootloader in Windows 10 after a Windows update overrides it. By following the steps in this article, you will be able to fix Grub after Windows 10 upgrade.

Also learn how to convert MBR to GPT using MBR2GPT Windows 10 tool from here.

It is nuisance that a Windows update overrides the Windows Boot Manager to default boot using NT bootloader. After the Windows Boot Manager is overridden, it cannot recognize Ubuntu and thus cannot boot into it. Not only Windows update, but installing Windows after Ubuntu also does the same thing.

There is another case why your PC won’t boot into Ubuntu and that’s due to a faulty Grub file. In this case, you will have to repair Grub in order to fix this problem. I have given steps for both the cases below. Follow them carefully and you should be able to fix Grub after Windows 10 upgrade, fresh install, or a faulty Grub file.

1) Faulty Windows Boot Manager

The first case is the faulty Windows Boot Manager that occurs due to a Windows update or fresh Windows installation. To fix this issue, you will have to repair Grub from Windows. To do that, follow the steps given below:

  1. Boot into Windows 10.
  2. Press the Windows + R keys to open the Run utility.
  3. Type cmd and press Ctrl + Shift + Enter to open an elevated Command Prompt.
  4. Now, type the following command and press Enter:
    bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi

repair_grub_from_windows

  1. After you run the above command, it will change the bootloader back to Grub.
  2. Restart your PC and you should be greeted with the Grub Menu.

However, there is a chance that after following the above steps you get the “System Bootloader not found” error. To fix this, you will have to disable the secure boot through UEFI firmware. To do it, follow the steps given below:

  1. Reboot the PC.
  2. Press the F2 or F10 key to open the Firmware settings during the boot screen.
  3. Disable the secure boot. This option will differ for each system as the firmware settings will be different.

After you have disabled the secure boot, you should now boot into the Grub menu. From there you can boot into Ubuntu.

2) Repair Faulty Grub File

Sometimes a faulty Windows Boot Manager is not responsible for the Grub bootloader not working. It can also be due to a faulty Grub file. If the above step doesn’t allow you to use the Grub boot loader, it is likely for this reason. Now to fix it, you will have to use the Boot Repair. To use it, you will have to boot into Ubuntu, which you cannot do currently.

So, you will need a bootable USB or Ubuntu live CD. Download the Ubuntu ISO image from here and use any Bootable USB software to flash the image on your USB. Now, plug in the bootable USB or enter the Ubuntu live CD and restart your computer. After the computer restarts, follow the steps given below:

  1. After you restart, select the Try Ubuntu without installing option in the booting screen to boot into Ubuntu.
  2. Once, you boot into Ubuntu, open the Command line.
  3. Type the following command and press Enter after finishing it:
    sudo apt-add-repository ppa:yannubuntu/boot-repair && sudo apt-get update
    This command will add all the Boot Repair tool’s repositories and also update them.
  4. Now, type the following command and press Enter to download the Repair tool:
    sudo apt-get install -y boot-repair
  5. Once the boot-repair file is downloaded, type the following command and press Enter to run it:
    boot-repair

The above steps will run the Boot Repair tool and it will automatically scan the disks in your system. After the scan is finished, the Boot Repair dialog will provide you with two options. Click on the Recommended repair option. Follow the on-screen information to complete the process. Once the repair tool is finished running, restart your PC.

Wrapping Up

That’s it. Now you know how to install Grub bootloader in Windows 10 after a Windows update. The above steps should do the job. If you have any questions related to this article, ask them in the comment section below.

The three interfaces of Grub functions at various levels. The menu interface consists of the list of kernels or the operating systems.

You have the option to select a particular operating system with the help of the arrow keys and you can boot it with the Enter key.

All the Commands in Grub are displayed in the menu entry editor interface. You can change the commands before you load the Operating System.

The Command-Line interface is the basic interface that provides the user with the utmost control. You can execute any command with the help of it.

You may sometimes encounter how to install a grub bootloader in windows 10 issues raised by the corrupted boot directory or the partition.

Restore Grub After Windows Install

The Grub Bootloader is particularly important as you cannot start the Operating System without it.

While you switch on the program, this is the first program that gets started. Then the Bootloader transfers the control it has to the Operating System Kernel.

When you are stuck with how to install a grub bootloader in Windows 10, you can go for a clean installation of Windows 10 or reset your BIOS settings. These may help you to resolve the problem.

You also have other options to fix it like rebuilding the BCD or simply replacing your damaged hard drive.

Through this article let us address the possibilities to fix the Grub related problem effectively.

Solution 1: Setting The Correct Partition 

If the correct partition gets deactivated somehow, you face this grub related problem and need to go for restoring grub after windows install.

This happens as the boot loader gets initiated by the BIOS from the active partition.

We suggest you verify whether the active partition is incorrect. Then you will have to get the proper partition activated.

This process works wonder to fix the grub related issues swiftly. Follow the steps mentioned below to execute the process:

Step 1: First of all you need to connect a DVD or USB Flash Player bootable media to your PC.

Step 2: Then give your system a fresh restart to execute the Automatic Repairing Process.

Step 3: Select to Troubleshoot and go to the Advanced options. Now, launch Command Prompt and enter diskpart and hit the Enter button.

Step 4: Input the commands mentioned below one after another:

  • list disk: This will give you the list of all your hard drives
  • select disk n: n denotes the disk where you have installed the operating system.
  • list volume: All the Volumes on Disk 0 will be enlisted here.
  • select volume n: he will give you the number of system partitions
  • active: this will show you the active system partition. Identify the specific partition from the displayed list that ought to be active.

Step 5: Now, enter the commands given below and after inputting each one, press the Enter Key.

  • select partition d
  • active
  • quit

Step 6: After you have finished the above step give your Computer a fresh restart.

Check whether your Grub related problem is solved this way.

Solution 2: Resetting the BIOS Settings

Resetting BIOS is another effective way to fix grub after windows 10 upgrade.

Here I am providing you a complete guideline to execute the task. Follow the steps:

Step 1: Turn off your computer and wait for a couple of minutes, then give it a fresh restart.

Step 2: Now, press F2 and repeat the process till you see the System Screen Window.

The function key may vary from system to system. Give it a check while you start your system.

Step 3: Now with the help of the Right Arrow Key go to the Exit menu bar.  Then move on to the Load Optimized Defaults.

Step 4: After you pressed the Load Optimized Device option, hit the Enter button.

After you accomplished the entire procedure check whether this has helped. You also have the option to flash the BIOS of your computer to fix the issue.

Solution 3: Using the Automatic Repair and restoring the Boot Sector Code

You may use your automatics repair system provided by Windows 10 and run are repairing process for restoring grub after windows install.

The boot sector code may be damaged and this may create the problem. So, you need to restore the boot sector code so that the grub rescue error is not prompted.

For this, I am describing the process that you are required to follow meticulously.

Step 1: Give your PC a fresh restart for repeated times and then select to Troubleshoot. From the displayed panel, choose Advanced and from there move on to Start-up Repair.

Step 2: Now, the repairing process will commence. Wait till the procedure gets completed.

We recommend you not to proceed for any operation in between. After that check, if that was good enough to address your problem.

Step 3: You have another option to use DVD or USB Flash Drive for resting the boot Sector Code.

For this, connect the bootable USB or DVD to your PC give your computer a fresh restart to go to the Automatic Repair Mode.

Step 4: Now proceed to Troubleshoot and then go to the Advanced Tab.

Step 5: Now Enter cmd to launch Command Prompt. Input the given commands in the Command Prompt. Do not forget to hit the Enter button after you type them.

diskpart

select disk 0

list volume

This way you will get all the volumes displayed. In the Type section, you will get to see DVD-ROM.

Make sure to remember the letter for the drive of the DVD or USB Flash Drive that you have connected to your Device. Like D or E.

Step 6: Now, enter the commands that I am providing below and click Enter.

Exit

D: or E:

CD Boot

Dir

Step 7: Scrutinize whether there is bootsect.exe file in the provided list. On finding it input the given command and then hit the enter button.

bootsect /nt60 SYS /mbr

Exit

Step 8: Now reboot your Computer and hope this will solve the problem you are muddling with.

Solution 4: Clean Installation Of Windows 10

To repair grub from windows, install Windows 10 afresh so that the installations done previously completely get removed.

For this, you will have to download the ISO file of Windows 10 on another device and get it burned on a DVD. You may also proceed with creating a USB drive that you can boot.

You may take the help of a third-party utility or you may also fix the boot related error if you create a bootable media.

That will automatically help you launching the program, selecting the proper partition, etc.

Solution 5: Rebuilding BCD With The Help Of Windows 10 Automatic Repair

If you cannot find bootsect.exe file, then you may need to rebuild BCD to combat your Grub issue.

Many users have reported that by using this rebuilding BCD technique they could easily fix the Grub related issue.

Follow the given process described below to rebuild the BCD:

Step 1: First of all you will have to connect bootable USB Flash Drive DVD to your system.

Step 2: Then reboot your PC and go to the Automatic Repair Mode.

Then from the advanced window choose Command Prompt for initiating BCD Files.

Step 3: Enter the below-given commands in the Command Prompt and when you have finished press Enter:

  • Bootrec /Fixmbr
  • Bootrec /Fixboot
  • Bootrec /Rebuildbcd

Step 4: When you complete the process, exit from Command Prompt and then give your device a fresh restart.

Solution 6: Replace The Hard Drive

Sometimes you may face several issues with your hard drive. Your hard drive may get damaged somehow and this may lead to the Grub rescue issue along with other burning issues for your system.

In case you discover that your hard drive is damaged, we suggest you replace it immediately.

Hard Drives are available on your manufacturer’s website or from the retail sites then replace your drive and clean install Windows 10 to get rid of the Grub related problem.

Winding Up

Hope the resolutions provided could give you the answer to how to install grub bootloader in Windows 10.

If you still have queries or issues with the related files, feel free to intimate us in the comments section or may shoot us a mail.

We always look forward to hearing back from you.

GNU GRUB is a powerful bootloader that can be used to boot almost any operating system on your computer. It can even boot operating systems directly from an ISO file stored on your hard drive. It is regularly updated by open-source community of developers and is completely safe to use on your Windows PC. The only problem with GRUB is that is it not so easy to install on a system that already has Windows installed.

Fortunately, you can manage to install GRUB on any Windows PC running Windows 10 without any hassles using an open-source tool called Grub2Win. From the installation to the setup of boot menu, it makes everything easy for users of all experience levels. It supports both 32-bit and 64-bit versions of Windows. It supports older BIOS and newer EFI systems. It supports both GPT and MBR partitions.

Grub2Win

Based on your hardware and operating system, it downloads the relevant GRUB files automatically saving  the user from all the headache. During the setup, you can choose a folder on your system drive where GRUB files are kept, you can choose to create a desktop shortcut and if you want to copy GRUB modules to the EFI partition.

Grub2Win

After the installation, you can launch Grub2Win and it will display you the GRUB menu as it appears at the boot. From this interface, you can change the order of the menu entries as they are displayed at boot time. You can also manage, add, edit or delete entries from this list.

You can add entries for a number of supported operating systems like Windows, Android, Debian, Fedora, Manjaro, Mint, Slackware, Suse, Ubuntu, etc. You can also add many tools like BootInfo and Clover to the boot menu. It supports IsoBoot using which you can boot directly from an ISO file containing Linux.

Using Grub2Win makes is very easy to install GRUB on Windows. Furthermore, it helps you manage all the GRUB entries and settings. This way you can boot into dozens of operating systems on the same PC without any hassles.

You can download Grub2Win from https://sourceforge.net/projects/grub2win/.

How do I install GRUB on Windows?

2 Answers

  1. mount your Linux installed partition to some mount point. …
  2. Now bind some essential live root partition directories to mounted root partition at /mnt. …
  3. Now, change the root to newly mounted partition directory. …
  4. Now, install the GRUB using grub-install command at your HDD MBR.

How do I set up grub?

Installing GRUB2 on a BIOS system

  1. Create a configuration file for GRUB2. # grub2-mkconfig -o /boot/grub2/grub.cfg.
  2. List block devices available on the system. $ lsblk.
  3. Identify the primary hard disk. …
  4. Install GRUB2 in the MBR of the primary hard disk. …
  5. Reboot your computer to boot with the newly installed bootloader.

How do I install GRUB on startup?

With BIOS, quickly press and hold the Shift key, which will bring up the GNU GRUB menu. (If you see the Ubuntu logo, you’ve missed the point where you can enter the GRUB menu.) With UEFI press (perhaps several times) the Escape key to get grub menu. Select the line which starts with “Advanced options”.

How do I purge and reinstall grub?

Uninstalling GRUB 2

  1. Open a terminal: Applications, Accessories, Terminal.
  2. Optional: Make backup copies of the main GRUB 2 directories and files. sudo cp /etc/default/grub /etc/default/grub.old. …
  3. Remove GRUB 2. sudo apt-get purge grub-pc. …
  4. Install GRUB 0.97. …
  5. With grub installed, the user must still create the menu. …
  6. Reboot.

How do I remove grub from BIOS?

Type “rmdir /s OSNAME” command, where OSNAME will be replaced by your OSNAME, to delete the GRUB bootloader from your computer. If prompted press Y. 14. Exit the command prompt and restart the computer the GRUB bootloader is not longer available.

How do I boot from GRUB command line?

Booting From grub>

The first line sets the partition that the root filesystem is on. The second line tells GRUB the location of the kernel you want to use. Start typing /boot/vmli , and then use tab-completion to fill in the rest. Type root=/dev/sdX to set the location of the root filesystem.

What can you do in GRUB rescue mode?

  1. The process to do that is simple. on start menu, select run and type msconfig. …
  2. set boot=(hd0,msdos6)
  3. set prefix=(hd0,msdos6)/boot/grub.
  4. insmod normal.
  5. normal.
  6. sudo update-grub.
  7. sudo grub-install /dev/sda.
  8. grub rescue> ls.

What is GRUB command line?

GRUB provides maximum flexibility in loading the operating systems with required options using a command based, pre-operating system environment. The booting options such as kernel parameters can be modified using the GRUB command line. There is no need to specify the physical location of the Linux kernel for GRUB.

How do I change GRUB boot options?

Use the arrow keys to select the boot entry to edit, then type e to access the GRUB edit menu. Use the arrow keys to select the kernel or kernel$ line in this menu. Type e to add boot arguments to the line. Type any additional boot arguments that you want to specify.

Should I install GRUB?

The UEFI firmware (“BIOS”) can load the kernel, and the kernel can set itself up in memory and start running. The firmware also contains a boot manager, but you can install an alternative simple boot manager like systemd-boot. In short: there is simply no need for GRUB on a modern system.

How do I get to GRUB menu?

Menu will appear if you press and hold Shift during loading Grub, if you boot using BIOS. When your system boots using UEFI, press Esc .

Can you install grub with Windows 10?

After installing or upgrading to Windows 10, you’ll need to reboot to Ubuntu to update GRUB so it includes Windows Boot Manager on its list.

How do I fix grub on Windows?

How do I fix Windows 10 Grub Rescue errors?

  1. Clean Install Windows 10. …
  2. Set the correct partition. …
  3. Reset BIOS Settings. …
  4. Use Windows 10 Automatic Repair to restore the Boot Sector Code. …
  5. Rebuild BCD using Windows 10 Automatic Repair. …
  6. Clean Install Windows 10. …
  7. Replace Hard Drive.

Can I install grub without Linux?

Yes it is. G As GRUB is a stand-alone boot loader and can be installed onto a computer that doesn’t have Linux installed, to boot those operating systems that are installed.

How do I skip grub in rescue mode?

Simply type “set prefix=(hd0,msdos6)/PathToGrubFiles”, “insmod normal”, then “normal”. Again, this will be different for every computer. For example, you may have to type “set prefix=(hd0,msdos6)/grub2/ insmod normal normal “, or “set prefix=(hd1,msdos6)/boot/grub/”.

How do I fix grub rescue mode?

You could do either of two things:

  1. Use a Windows 7 installation CD, boot it, and search for the repair option. After that you will get many options; then search for ‘command prompt’. …
  2. If you have any Linux installation CD/DVD or USB pendrive then live boot it and follow the steps shown on the page Boot-Repair.

Do you want all GRUB 2 files removed from boot grub?

Re: Do you want to have all GRUB 2 files removed from /boot/grub? Yes. For some reason Mint is listed there too, but I never finished the install.

How do I find my GRUB kernel?

Set GRUB’s root device to the drive where the OS images are stored by the command @command{root} (see section root). Load the kernel image by the command @command{kernel} (see section kernel).

How do I boot from GRUB shell?

If you are practicing on a functioning system, press C when your GRUB boot menu appears to open the GRUB command shell. You can stop the bootup countdown by scrolling up and down your menu entries with the arrow keys. It is safe to experiment at the GRUB command line because nothing you do there is permanent.

How do I remove Grub from UEFI?

12 Answers

  1. Run a cmd.exe process with administrator privileges.
  2. Run diskpart.
  3. Type: list disk then sel disk X where X is the drive your boot files reside on.
  4. Type list vol to see all partitions (volumes) on the disk (the EFI volume will be formatted in FAT, others will be NTFS)

How do I restore Windows 10 bootloader after deleting Linux and Grub loader?

Step-by-step Procedure

  1. Run Windows. Start computer and select Windows OS from bootloader. …
  2. Delete Linux drive. Right-click on “Start” button and select “Data Management”. …
  3. Assign unallocated space to Windows 10. …
  4. Open Command Line in Boot mode. …
  5. Fix MBR. …
  6. Fix boot. …
  7. Scan Windows disks. …
  8. Rebuild BCD.

How do I remove Grub boot menu?

Step 2: Scan through the list to locate the Grub entry you’re looking to get rid of. When you’ve found it, right-click on it to open up the right-click menu. Step 3: Look through the right-click menu for the “Remove” button to instantly delete the menu entry from your Grub bootloader list.

2 Answers

  1. Boot to your Linux.
  2. Open a Terminal window.
  3. Type: sudo os-prober.
  4. If the results identify a Windows 10 install, type sudo update-grub which will update the GRUB entries and add it.

Does Windows 10 have a bootloader?

The Windows 10 Boot Loader does become the default when Windows 10 is installed. You can adjust this from within Windows 10 by going to Control Panel > System > Advanced System Settings. On the Advanced Tab, you have a Settings Button under Startup and Recovery.

How do I install GRUB menu?

Reinstall the GRUB boot loader by following these steps:

  1. Place your SLES/SLED 10 CD 1 or DVD in the drive and boot up to the CD or DVD.
  2. Enter the command “fdisk -l”.
  3. Enter the command “mount /dev/sda2 /mnt”.
  4. Enter the command “grub-install –root-directory=/mnt /dev/sda”.

How do I reinstall GRUB after installing Windows?

To recover grub: Open the live version. Open the terminal and run sudo fdisk -l to see where Linux is installed….6 Answers

  1. Boot from LiveCD ⋯ please try to use a LiveCD that has the same version of Grub2 as the installed version.
  2. Mount the root of the installed Ubuntu at /mnt.
  3. Change root.
  4. Update grub.
  5. Install grub.
  6. Reboot.

How do I restore Windows 10 bootloader after deleting Linux and Grub loader?

Step-by-step Procedure

  1. Run Windows. Start computer and select Windows OS from bootloader.
  2. Delete Linux drive. Right-click on “Start” button and select “Data Management”.
  3. Assign unallocated space to Windows 10.
  4. Open Command Line in Boot mode.
  5. Fix MBR.
  6. Fix boot.
  7. Scan Windows disks.
  8. Rebuild BCD.

Should I install grub boot loader?

The UEFI firmware (“BIOS”) can load the kernel, and the kernel can set itself up in memory and start running. The firmware also contains a boot manager, but you can install an alternative simple boot manager like systemd-boot. In short: there is simply no need for GRUB on a modern system.

Can you run Ubuntu on Windows 10?

Yes, you can run desktop Linux apps in Windows 10 thanks to Ubuntu on Windows. One of the most surprising new features coming to Windows 10 this summer is “Ubuntu on Windows,” which basically brings a complete Ubuntu Linux file system to Microsoft’s operating system and allows developers to run Bash and command-line apps.

How should I install Ubuntu Linux on Windows 10?

How to Install Ubuntu on Windows 10 Download VirtualBox for Windows and install it on your computer. Download the Ubuntu ISO file you want to install from the Ubuntu download page . The current version of Ubuntu only works on 64-bit machines Open VirtualBox and select New in the top taskbar. Give your VM a name, choose Linux as the Type , then choose Ubuntu as the Version and select Next . If you’re using a 32-bit version of Windows Choose how much RAM you want to assign to the virtual machine and select Next . The recommended minimum is 1024 MB . The amount of memory you set See More….

What is Grub PC?

grub – Computer Definition. ( GRand Unified Bootloader ) A program that calls a Unix/Linux operating system into memory. Officially GNU GRUB, GRUB is a popular boot loader due to its flexibility and configuration capabilities, allowing changes to be made at boot time and support for boot images from the network.

  • How to install npm on windows
  • How to install google test windows
  • How to install windows 10 windows phone
  • How to install git for windows
  • How to install node js windows 10