Restore Grub After Windows Install

Aug 03, 2019  Its is always an issue when you install Windows over Linux or after a Linux installation. The boot-loader record is altered and Windows boots without giving option for Linux. The default boot-loader for Fedora and most Linux OS is Grub. This is how to fix such problems. Lets guide you on step-step procedures to fix. Restore GRUB bootloader after Windows installation on multi-boot system Windows operating systems have the habit of installing their own bootloader on every installation - this wouldn't be a problem, if they would recognize all present operating systems. Fix Grub Not Showing For Windows 10 Linux Dual Boot. It seemed like as if there is no way to access Ubuntu at all. The Ubuntu install on the other partition was fine. It was just the UEFI settings that were different in the boot manager. I verified everything by accessing UEFI firmware settings in Windows 10.

Active5 years, 9 months ago

So, I had a laptop with Windows 8 OEM copy obviously installed in UEFI configuration with GPT partitioning. A little while ago I installed Ubuntu 13.xx(the latest one) alongside it and GRUB fortunately detected Windows and everything was fine until now.

So yesterday, I updated to Windows 8.1 and it apparently rewrote the boot-loader and quite naturally I cannot boot into Ubuntu. It takes me straight to Windows.

How do I repair GRUB? Most of the help pages/articles talk about MBR partitioning which is quite different case from UEFI+GPT AFAIK. And the articles that do talk about UEFI are about fixing non-bootable Windows installation after installing linux which is not my case.

Any tried and tested method to get Ubuntu up again? Wonder woman fausta episode script.

PS: Before you recommend it, No; EasyBCD or similar tools cannot add linux to Windows bootloader if Windows is installed with UEFI.

tumchaadityatumchaaditya
3,2494 gold badges32 silver badges55 bronze badges

2 Answers

Using Boot Repair, as MariusMatutiae suggests, may work; however, that program sometimes does more than is wise, so I prefer to avoid it. There are at least three less radical solutions:

Solution 1: Use the Firmware

Many EFIs provide a built-in boot manager that enables you to adjust the boot order. Your Ubuntu/GRUB entry probably still exists, so all you need to do is to adjust the boot order using the firmware. The trouble with this approach is that the EFI setup utilities vary so much that it's impossible to provide universally-applicable instructions for how to do this. If your firmware supports this feature, though, it's likely to be the simplest way to do it -- once you figure out how to get to the option!

Solution 2: Use bcdedit in Windows

The Windows bcdedit tool can add a non-Windows boot loader to the boot list. The trick is figuring out what the file is. You can do it this way:

  1. Boot to Windows
  2. Open an Administrator Command Prompt window. (Don't use a third-party shell for this, either; I've seen reports that bcdedit won't work correctly with some of them.)
  3. Type mountvol S: /S to mount the ESP as S:. (You can change S: to something else if you like.)
  4. Using the Command Prompt, check S: to locate your Ubuntu boot loader. It's probably either S:EFIubuntugrubx64.efi or S:ubuntushimx64.efi. If you see the latter, it should be safe to use it, and it may be necessary to use it -- shim is how Ubuntu deals with Secure Boot (SB), but on a non-SB computer, it will have little effect. If Secure Boot is inactive, then shim may or may not be installed, so you may need to refer to grubx64.efi directly.
  5. Type bcdedit /set {bootmgr} path EFIubuntushimx64.efi, changing shimx64.efi to grubx64.efi if shimx64.efi isn't present. Change the path if it's something else, which is unlikely.
  6. Optionally, type bcdedit /set {bootmgr} description 'Ubuntu' to set the name that appears in the EFI's own boot manager list. Change Ubuntu to whatever you like.

If you already know the filename for your boot loader, you can skip steps #3 and #4. (The ESP doesn't need to be mounted to use bcdedit in this way.)

This method has the advantage that it keeps Windows from messing with the boot order -- sometimes Windows will try to adjust the boot order unbidden. I don't know if this would prevent a repeat of this problem if/when you upgrade to whatever comes after Windows 8.1, though.

Install

Solution 3: Boot to Linux and Use efibootmgr

Restore Linux After Windows Install

You can probably boot to Linux by using the firmware's own boot manager, which you can access on most computers by hitting Esc or a function key at boot time, although which key varies from one computer to another. Alternatively, you may be able to use rEFInd on a USB flash drive or CD-R as a boot manager if yours is inadequate. You can also boot using a Linux live CD or emergency disk, but be sure you boot in EFI mode -- a BIOS-mode boot won't be adequate. Once you're in Linux, you can use efibootmgr to adjust the boot order:

  1. Open a Terminal window.
  2. Type sudo efibootmgr -v to obtain a list of boot programs. One will be for Linux, and will launch either shim or GRUB. Note the BootOrder list. Chances are the Windows entry is now first, and the Ubuntu entry comes later in the list. Some entries may be confusing. Just ignore them; focus on finding the Ubuntu entry and identifying its number (in the Boot#### entry at the start of the line).
  3. Type sudo efibootmgr -o {list}, changing {list} to a comma-separated list of boot numbers, as in sudo efibootmgr -o 5,0 if Boot0005 is for Ubuntu and Boot0000 is for Windows. You can add more entries if you like, but the first one is the most important, since that's what will be booted first.

If an Ubuntu entry does not exist, you can create one with efibootmgr, as in:

Change -d /dev/sda to point to your whole-disk device and -c 1 to specify the partition number. (In fact, /dev/sda and 1 are the defaults, so you really need these only if your ESP is not /dev/sda1.)

Rod SmithRod Smith
18k2 gold badges22 silver badges46 bronze badges

There are many different solutions for this. One set of solutions surely requires the use of a Linux live distro, like for instance Ubuntu's. Burn a Ubuntu image to a USB stick, boot from it choosing Try Ubuntu without installing .., open a terminal, then install and use Boot-Repair, following the instructions on the Web page which belongs to Ubuntu's Official Documentation. This is generally enough to fix most booting problems.

Cyberlink powerdirector effect download. Dec 27, 2017  hello Frieds is video main apko btaya jayega cyberlink power director ke effects kaise download karte hain or kaise instal karte hain. Hit Like & Subscribe Button Don't Forget to Subscribe https. Download free video effects, templates, audio effects for your videos. Create Amazing, Effect-rich Videos. Directorzone.cyberlink.com uses analytical cookies and other tracking technologies to offer you the best possible user experience on our website. By using our website, you acknowledge and agree to our cookie policy. Sep 07, 2017  powerdirector effects pack free download. PD Studio Cam V2. Another FREE Powerdirector Template for members! Another free Theme Designer photo template. CyberLink PowerDirector. Powered by Green Power. This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.

Restore Grub After Windows Install Key

Alternatively, instead of downloading Boot-Repair, you can mount your HDD disk from the terminal, for instance by issuing

where X is the number of the partition on which you have placed Ubuntu's /. If you are not sure, before the command above,

will tell you which partition is which. Then issue these command:

Fix Grub From Windows

and, when this is done, Ctrl+D.

MariusMatutiaeMariusMatutiae

Restore Grub After Installing Windows 10

40.3k9 gold badges59 silver badges103 bronze badges

Restore Grub After Windows 10 Install Debian

Not the answer you're looking for? Browse other questions tagged ubuntuwindows-8multi-bootbootloaderuefi or ask your own question.