The Red Hat Customer Portal delivers the knowledge, expertise. Use the grub2-install device command to reinstall GRUB 2 if the system is operating normally. Safely dual boot Windows and Linux from GPT or MBR disks. Grub2Win boots native GNU Grub version 2.04 code. Everything is contained in a single 20 MB directory on your Windows C: drive. On EFI systems a few small modules are installed to your EFI partition. Using the simple Windows GUI and instructions you can install Grub2Win quickly and safely. Jun 26, 2017 Install Grub2 Run Command Prompt under Admin and go to the grub-2.02-for-windows directory. Check the number of hard disk you will install, be it USB or HDD. Grub2 for Windows supports installation and boot on three platforms: i386-pc. Install Grub2 for BIOS (i386-pc): grub-install.exe. Ubuntu and many other Linux distributions use the GRUB2 boot loader. If GRUB2 breaks—for example, if you install Windows after installing Ubuntu, or overwrite your MBR—you won’t be able to boot into Ubuntu.
Active3 years ago
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.
Ali FarooqAli Farooq
closed as off-topic by Quentin, Biffen, Pang, Tsyvarev, u_mulderSep 25 '16 at 17:57
This question appears to be off-topic. The users who voted to close gave this specific reason:
- 'Questions about general computing hardware and software are off-topic for Stack Overflow unless they directly involve tools used primarily for programming. You may be able to get help on Super User.' – Quentin, Biffen, Pang, Tsyvarev, u_mulder
2 Answers
First live boot to your Linux Mint system, using external Live CD/USB Drive, then follow these commands to re-install GRUB on MBR.
- mount your Linux installed partition to some mount point. here XY is the number of your Linux distro partition.
- Now bind some essential live root partition directories to mounted root partition at /mnt.
- Now, change the root to newly mounted partition directory.
- Now, install the GRUB using grub-install command at your HDD MBR.
- Finally update the grub entries to show newly detected partition operating systems.
- And at last unmount all the binded partition directories, and then reboot.
That's it, hope this will help!!
Biffen4,50155 gold badges2323 silver badges3030 bronze badges
U.SwapU.Swap1,41533 gold badges1616 silver badges3030 bronze badges
Windows will overwrite the boot sector whenever you install it. In general install windows first then linux. You can repair the grub by booting from a live disk of linux Mint and there should be an option to repair-boot, which will repair your grub. Restart it and now you should be able to see both the OS.
Or you can boot from a live cd and perform the following steps:
- Boot from a live CD (CD/DVD or flash drive).
- Become root or use sudo with commands below.
- List the available partitions if needed: fdisk -l
- Windows will almost certainly exist on /dev/sda1: mount /dev/sda1 /mnt
- Reinstall GRUB in the MBR: grub-install --root-directory=/mnt/ /dev/sda
- Reboot: shutdown -r now
- Restore the GRUB menu: update-grub
Thanks to @christopher for the above answer.
Ajay PalAjay Pal
Not the answer you're looking for? Browse other questions tagged linuxwindows-10bootloaderlinux-mintgrub or ask your own question.
readme.md
Grub2Win is a tool that lets you boot grub2 from your PC's EFI firmware or MBR. It supports Windows 10, Windows 8, Windows 7, Vista and XP. Download this simple Windows program and instructions that help you get grub2 booting quickly.
All the files for Grub2Win reside on the Windows C: drive. On EFI systems, five small modules are copied to your EFI partition. You don't have to depend on the availability of any Linux partition to boot your computer.
Grub2 supports extremely large disks (over 40 TB) and GPT partitions allowing you to have many OS images on a single physical disk drive. Grub2 also supports search, advanced scripting and many partition types. Supported filesystems include Btrfs, ext4, ext3, ext2, NTFS, Fat and Mac hfsplus. Booting from CD and USB is also supported by grub2.
Boot time help and messages can be displayed in 30 major languages.
This software modifies low level boot code. Make sure you have proper backups of your boot drive and EFI partition. Note that all Grub2Win executables are digitally signed to ensure that they are genuine.
- Download the grub2win.zip file from SourceForge and unzip it.
- Run the unzipped file setup.exe. This will require administrator access.
- Setup will download the most current Grub2Win modules and start the installation. Follow the prompts to select the drive where the grub2 product directory will be installed (usually C:)
- Once the setup program has completed successfully, a Delete the setup files checkbox will appear. The setup files are no longer needed. Check the box if you want the setup program to clean up these files.
- If your machine is running EFI firmware, disable the 'Secure Boot' parameter in your firmware settings. This step is not required for machines running BIOS firmware.
- Click on the Grub2Win desktop shortcut or go to the C:grub2 directory and run grub2win.exe. This will require administrator access.
- If your PC is currently booted in EFI mode, the program sets your machine's firmware to perform a one-time test boot of Grub2Win EFI. This will happen the next time your machine is booted. If the test boot is successful, you may either click the 'Set EFI Firmware Boot Order' button to place Grub2Win at the top of the firmware chain or go your machine's firmware menu to set the boot order.
- The program will prompt you for your graphics preference, Windows boot timeout and grub timeout. You can also set the Grub2 language. The defaults should work fine, but you can change them if desired. Now click 'Manage Boot Menu'.
- Add the partitions you want Grub to display at boot time. Detailed instructions will be found by clicking Help.
- Now click Apply to return to the main Grub2Win screen. When you are satisfied with the options, click OK. Grub2Win will now generate a customized C:grub2grub.cfg file with the systems and options you have selected.
- Shut down and re-boot your machine. On BIOS systems, you can choose to boot either Windows or the Grub2Win menu. On EFI systems, the Grub2Win menu will appear immediately. You can now use the Grub2Win menu to select the OS you would like to boot.
You can run Grub2Win as often as you like to add, change or remove the systems on your boot menu. Many items, including Linux boot parms, icons, timeouts and partition addresses can be tailored.Your choices will preserved across multiple runs.
If you encounter any errors during installation or while running Grub2Win, please open a topic on the discussion board here:
Install Grub2 From Windows 1
I would appreciate the opportunity to address any errors before you post a review.
Install Grub2 From Windows 8
Good luck and enjoy!
Install Grub2 Using Windows
drummerdp