Ubuntu dual boot: grub doesn’t start

Ubuntu dual boot windows: desperation

When you want to install Ubuntu in dual boot with Windows 8, you need to take into account that you can encounter some problems. Today I’ll tell you an anecdote and explain how you can fix the following problem: grub doesn’t start on a Ubuntu 14.04 dual boot with Windows 8.1.

The story

A week ago I installed Ubuntu 14.04, codenamed Trusty Tahr, alongside Windows 8.1 on a friend of mine’s computer. I did not install the available updates upon installation, to make it faster. Everything worked well: UEFI did not cause any trouble, both Ubuntu and Windows started as expected. I then installed the Italian locale packages and postponed the updates.

Today I finally found the time to update the installed packages. Once installed, I restarted the computer in order to apply and test the update. And here comes the surprise: grub didn’t start, the pc booted Windows directly.

Solve the problem: grub doesn’t start

We have a problem, but fortunately Windows is not compromised. So, let’s go and fix the problem.

What you need

If grub doesn’t start, we can’t access Ubuntu directly. Here’s what you need:

  • a live Linux distribution either on a CD/DVD or on an USB stick;
  • a little bit of patience.

Nothing else? Exactly, that’s it.

First try: Boot Repair

The first thing you can do is using Boot Repair to reinstall grub with all the options you need. You can find instructions about how to install and use Boot Repair in the Ubuntu Community Help Wiki.

How to solve the problem

Most probably the first attempt with Boot Repair didn’t solve the problem. But we are Linux users, so we can find a solution by searching in the Web and with a little bit of luck.

Boot into your live Linux distro (from now on we’re going to call it just “Live”) and open GParted or any other partition manager it has. Look for your Ubuntu system partition and write down somewhere its file name (that in the form /dev/sdxn, in my case /dev/sda7) and its filesystem. We’ll call it /dev/sda7, but keep in mind to change it when you type down the commands.

Chroot into your system

First things first: chroot into your system to execute the actions needed to fix the issue. Open the terminal, login as root and mount Ubuntu. Replace /dev/sda7 with your partition, and ext4 with the filesystem of your partition.

sudo su
cd /
mount -t ext4 /dev/sda7 /mnt
mount -t proc proc /mnt/proc
mount -t sysfs sys /mnt/sys
mount -o bind /dev /mnt/dev

If your /boot directory is on a different partition from your /, you’ll also need to mount that partition with the following command (remember to replace ext4 and /dev/sda2:

mount -t ext4 /dev/sda2 /mnt/boot

Now it’s time to move into the mounted system, which is your Ubuntu installation:

chroot /mnt /bin/bash

If it returns the error chroot: cannot run command '/bin/bash': Exec format error, this usually indicates that you booted with one architecture (e.g. 32bit) and are trying to chroot into another (e.g. x86_64), so you need to use a Live that has the same architecture.

At this point it is useful to add a remainder to the prompt:

source /etc/profile
export PS1="(chroot) $PS1"

And make sure /etc/mtab is up to date:

grep -v rootfs /proc/mounts > /etc/mtab

Change UEFI boot order

Here the point is to change the order in which UEFI boots the system. First of all, have a look at the current order:

efibootmgr -v

This will output something like this:

BootCurrent: 0005
Timeout: 0 seconds
BootOrder: 2002,0004,0000,0001,2003,2001
Boot0000* ubuntu   HD(2,e1800,82000,0a543b96-7861-11e2-8d38-d60b12dec0bc)File(EFIubuntushimx64.efi)
Boot0001* Ubuntu   HD(2,e1800,82000,0a543b96-7861-11e2-8d38-d60b12dec0bc)File(EFIubuntugrubx64.efi)RC
Boot0002* EFI Network 0 for IPv6 (7C-05-07-9C-F6-18)    ACPI(a0341d0,0)PCI(1c,2)PCI(0,0)MAC(7c05079cf618,0)030d3c000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000RC
Boot0003* EFI Network 0 for IPv4 (7C-05-07-9C-F6-18)    ACPI(a0341d0,0)PCI(1c,2)PCI(0,0)MAC(7c05079cf618,0)IPv4(0.0.0.0:00.0.0.0:0,0, 0RC
Boot0004* Windows Boot Manager   HD(2,e1800,82000,0a543b96-7861-11e2-8d38-d60b12dec0bc)File(EFIMicrosoftBootbootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}....................
Boot0005* EFI DVD/CDROM (TSSTcorp CDDVDW SN-208DN)   ACPI(a0341d0,0)PCI(1f,2)03120a00020000000000CD-ROM(1,11a6,1680)RC
Boot2001* EFI USB Device   RC
Boot2002* EFI DVD/CDROM   RC
Boot2003* EFI Network   RC

Here you can identify the names of the devices and operating systems that are recognized by UEFI. In the example above, we want to prioritize shim, which is the first signed bootloader for Ubuntu, the component responsible for loading grub.

How can we achieve this? By simply typing the following command into our terminal:

efibootmgr -o 0000

Be sure to replace 0000 with the number in BootXXXX on the same line of the file directive EFIubuntushimx64.efi.

Conclusion

We did it! Exit your terminal, reboot the computer. If all went well, you will now be able to see grub at the startup.

If something went wrong, please report it in a comment below.

 

Sources:

Photo courtesy of ryneslat

CC BY-SA 4.0 Ubuntu dual boot: grub doesn’t start by Mattia Migliorini is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

deshack

Web Designer freelance, Ubuntu Member, Linux evangelist. Loves working on clear and minimal designs and wants to create beautiful things for different devices.

deshack wrote 82 posts

Post navigation


Comments

  • Ath J

    followed all the steps but still Laptop boots directly into Win.I am able to pause boot and then change the boot loader to grub and boot into Ubuntu but the grub menu doesn’t appear on its own.Can you suggest any other ways to make it work ?
    I am dual booting Ubuntu 16.04 with Win 8.1.

  • Anirudh Krishnan

    Hi !

    I have a slightly different problem. I installed Ubuntu 16.0.4 on my Lenovo pc that already had windows 10 . But since installing it , once I choose windows in the grub menu , my boot just goes on forever. I can see a rotating circle , but it doesn’t boot into Windows . Whereas a boot into Linux is perfectly fine. I would have wished it to be the other way around. I have tried boot-repair in Ubuntu but to no avail. Would really appreciate any help.

    • deshack

      Hi, I never experienced an issue like the one you’re describing. Did you try asking on ubuntuforums.org?

  • valmen

    Hi there,
    Kinda opposite one problem actually… I can boot on my Windows but can’t boot on my Kubuntu anymore.

    Before, I had a Windows 10 on Disk 0 and 1 and then I installed Kubuntu on my Disk 3.
    It worked until I tryed to change the boot order on my BIOS (to make Kubuntu first and access the Grub2). But once I did it, I was unable to access either Windows either Kubuntu.
    I had the same “underscore problem” for windows and my Kubuntu wasn’t even bootable. So I have tryed to reinstall my Windows first (I had to format the disk with format fs=ntsf because the quick one didn’t succeed). Once installed, I can now access my newly installed Windows 10 pro. My Kubuntu Disk is back to the bootable menu but … I can’t boot on it anymore.
    Have you ever seend a PC that can boot on Windows and not anymore on (K)Ubuntu ? I know Windows is oftendestroying Grub but now, I can’t even access the Kubuntu Disk.
    I’m using an MSI Ge60 2PC Apache
    It has 1 SSH for windows system, 1 SATA for my files, 1 SSD for Kubuntu.
    My boot menu is a Aptio Setup Utility

  • yamini

    I have quiet opposite problem.I am using toshiba satellite c55-A . I have a dual OS of ubuntu 14.04 and Windows 8.When i first log on to my computer ,automatically ubuntu opens.I used to log onto windows by going to boot menu(pressing F12). But now,it is not working.I really have important files in Windows.Can you please help me?
    Thank You!

    • deshack

      The first thing I’d try is boot repair. It seems like either GRUB is not correctly installed or it doesn’t know about Windows. Either way Boot Repair could fix your issue.

  • dh

    Dear deshack,

    I have an HP Envy Computer with Windows 10 and I installed
    Ubuntu Linux 16.04 LTS next to Windows, and it seems to me I’m
    running into exactly the problem you are describing here.

    I’m booting then with the Ubuntu 16.04 LTS disk.

    Running gparted my partition table reads as:

    Partition Name FileSystem Label
    /dev/sda1 EFI system partition fat32
    /dev/sda2 Microsoft reserved partition unknown
    /dev/sda3 Basic data partition ntfs Windows
    /dev/sda6 ext4 Linux
    /dev/sda7 linux-swap
    /dev/sda4 Basic data partition ntfs WINRE
    /dev/sda5 Basic data partition ntfs RECOVERY

    I’m running the commands

    sudo su
    cd /
    mount -t ext4 /dev/sda6 /mnt
    mount -t proc proc /mnt/proc
    mount -t sysfs sys /mnt/sys
    mount -o bind /dev /mnt/dev
    mount -t vfat /dev/sda1 /mnt/boot
    chroot /mnt /bin/bash
    source /etc/profile
    export PS1=”(chroot) $PS1″
    grep -v rootfs /proc/mounts > /etc/mtab
    efibootmgr -v
    efibootmgr -o 0000 (according to 0000 corresponding to Ubuntu, Bootorder is shown as changed to Ubuntu)
    exit

    Concluding, I think I did it exactly according to the given recipe with a part also from the discussion.
    However, still Windows is starting automatically; I don’t see Grub on start after rebooting.
    Any further idea how to solve this issue?

    dh

    • deshack

      Where did you install GRUB at first? /dev/sda or /dev/sda1?
      GRUB should be installed in /dev/sda.

      Moreover, I don’t think you should mount /dev/sda1 as /mnt/boot.

  • Osas

    Hi deshack,

    This is my problem and I don’t know if it’s similar to yours. I’ve had Ubuntu alongside my Windows for quite sometime now. When I turn the laptop on, it shows the laptop manufacturer’s logo then displays a black screen with a blinking underscore. I will have to turn it off and on several times before it finally loads grub and gives me the option to select Ubuntu or Windows and then everything is fine from there till I restart the laptop. Before I had dual boot, I had Ubuntu fully installed on another laptop and experienced the same problem, turn on and off several times before grub loads and boots into Ubuntu.

    So far all the solutions I’ve seen have not helped in solving my problem. Have you come across such an issue before? If so, do you have any idea of how to fix it once and for all? I tried holding the Shift key on starting and it still display the black screen and blinking cursor but this time with the text Grub Loading and nothing else happens. I’ve tried editing ‘quick splash’ to ‘nomodeset’ and still nothing. In fact it changes it back to ‘quick splash’.

    • deshack

      Hi Osas, this is completely new to me.
      Your problem may be related to the devices boot order, at least I would look into it at first. If this doesn’t work, try running Boot Repair. I don’t think it’ll do much, but it’s worth a try.
      If the issue is not resolved, try asking on https://ubuntuforums.org since I cannot help further..

  • Shiv

    I recently installed Ubuntu new release sideby to my windows 10. Installation completed successfully. It asked to restart, so i hit restart. After restarting it directly boots to windows without showing any options to choose OS. I am new to Ubuntu. I want to know the simplest way to sove this

    • deshack

      Hi, boot into Windows and reboot the PC (do not shut it down, reboot it). Then follow this guide here.

      • Shiv

        I have Vaio E series laptop. The problem is , there seems only one option to get into ‘ boot mode’ where i can boot from my flashdrive, that is to shut down and press ASSIST button.
        I reebooted it, but i cannot go into boot menu and again windows repair comes on

      • Shiv

        Looks like its working well now. I deleted windows manager in the same code snippet and it works now. Earlier i tried to run single instruction.
        Sorry, i am new to it. Thanks for the information above and quick look at the problems. Great job 👍

        • deshack

          Hi Shiv, I’m happy to know that you solved your issue. And thanks for sharing what you did!

  • Jan

    Great article! Your solution worked – thanks a million!

    • deshack

      Glad it worked! Thank you for reading.

  • Silverstone

    Hi,

    I’ve problem with load Ubuntu. I’m using my laptop with dual boot (Win8.1 & Ubuntu 14.04 LTS). Yesterday I turned off (Lastly I was using Ubuntu) computer without any abnormality. — After the Ubuntu installation I didn’t installed EasyBCD for the choosing OS. When I want to use Ubuntu I’m changing the Boot Settings in BIOS. — Today I wanted to open Ubuntu but I couldn’t. Every time when I choose the Ubuntu on Boot settings (in BIOS) screen Windows is starting. I’ve no idea what’s the problem?!
    How can I fix this problem?

    • deshack

      Did you try to reboot Windows instead of shutting it down?

  • Thong

    I’m dual booting Linux Mint 17.3 and Windows 10, I had no problems booting into either Windows or Linux for months now until today, the grub menu did not appear, only a black screen. After a few seconds, Linux booted up. I tried running Boot Repair, it re-installed grub but the same problem is still there. I had been running a Linux session for a few days now, and only today restarted the machine, so I don’t think it is anything from a Windows update that broke grub. I’m very new to Linux, so I can’t really figure out what’s going on. Help!

    • deshack

      Hi Thong,
      Can you please paste the output of the following command here?
      grep menuentry /boot/grub/grub.cfg

  • Flav

    Hi, first thank you for your detailed descriptions. However I’m having a problem : after using efibootmgr, Windows seems to “repair” its boot manager and takes precedent over grub. I’m using Windows 8.1 and I get the “Recovery” window. The reason might be that I only have one hard disk? After running efibootmgr, when o get into the BIOS, the only boot option is “Windows boot manager”.

    • deshack

      Hi Flav,
      does it reset after booting Windows or immediately?

      • Flav

        What a lighting-speed response!
        So when I reboot immediately into BIOS (without booting windows), I can already see the “Windows boot manager” in the boot options. Then if I F10 Windows repairs its boot and boots normally.

      • Flav

        I think I found a solution : removing Windows Boot Loader with efibootmgr (efibootmgr -b XXXX -B) brings up Grub at start up, and I can then launch either Windows or Ubuntu.

        • deshack

          Thanks for sharing!

          • Flav

            And thank you for this blog post! Very instructive!

          • Shiv

            The same is happening to me. The windows repair starts as soon as i restart. I didn’t get what Flav said as the solution.

          • Shiv

            I tried removing windows boot manager, but still it goes into repair mode

  • Prateek Gupta

    HI,

    I have a query. I got my hardware changed excluding all the disk and drives. It was just a change in the hardware like touchpad, back cover etc. After the changes, I am not able to open my Ubuntu, the system directly opens the Windows. Even on manual Boot Options, it shows Ubuntu, but when you click on it, it opens the Windows.

    Please help me out.

    • deshack

      Hi,
      It’s more than what I can do alone, it’s better for you to head over to forum.ubuntu.com and expose your problem there. There are a number of people more skilled than me that can help you figure out what happened.

  • kindu

    dear.dishaack
    I have installed lunix (Ubuntu ) on windows 8.1 but after installing this I could not get windows ….so how can I get windows or make dual boot on my system ….Thank you in advance

  • Kanth

    Hi All,

    First of all thanks to all sharing this kind of useful info.
    I have one similar problem, want to take inputs from you.
    In my Laptop I am using wind7 and Ubuntu12 as dual boot.
    it worked fine many days, recently I am seeing one problem.
    Grub is showing both Wind7 and Ubuntu in boot options, but when I select Ubuntu it is loading only black screen with white cursor blinking. If I select wind7 it is loading wind correctly and working fine. Only problem with Ubuntu loading.
    It worked previously, now only it is giving problem. What way I have to proceed. I need inputs from you.
    As I have important data in Ubuntu partition I don’t want to experiment my own loosing data.
    Thanks in advance.

    • deshack

      Hi Kanth, sorry for being late with my answer, but after the birth of my second baby I didn’t have enough time to follow all the comments on this blog.

      What I can suggest you to do, assuming that the problem is GRUB and not something else, is to boot into a live Ubuntu (with a DVD, USB stick or whatever you want), install Boot Repair in the live environment and let it work (in this post it’s explained how to do that). If it does not work, you should inspect the problem, first of all looking at the syslog.

      Please, let me know if Boot Repair fixes your problem.

  • Joao Coelho

    Hello.
    I did everything you told and and it gave no errors back. IT looked it was just working but when i reboot grub doesn-t show up
    Can you please help me____
    I-m so desperated…

    Thanks in advance.

    • Joao Coelho

      (chroot) root@ubuntu:/# grep -v rootfs /proc/mounts > /etc/mtab
      (when i give this command above, this is the output)
      grep: input file ‘/proc/mounts’ is also the output

      and with efibootmgr -v

      BootCurrent: 0010
      Timeout: 1 seconds
      BootOrder: 2003,2001,2002
      Boot0000* Grub2Win EFI HD(2,GPT,b4f4942a-0b9d-11e3-a0ba-a69b9f1ac104,0x200800,0x32000)/File(\EFI\grub2win\grub2win.boot.efi)WINDOWS………x…B.C.D.O.B.J.E.C.T.=.{.4.a.2.f.b.1.8.4.-.0.e.3.e.-.1.1.e.4.-.a.5.9.e.-.b.d.a.0.f.2.7.6.a.c.d.4.}…5…………….
      Boot0001* ubuntu HD(2,GPT,b4f4942a-0b9d-11e3-a0ba-a69b9f1ac104,0x200800,0x32000)/File(\EFI\ubuntu\shimx64.efi)
      Boot0002* kali HD(2,GPT,b4f4942a-0b9d-11e3-a0ba-a69b9f1ac104,0x200800,0x32000)/File(\EFI\kali\grubx64.efi)
      Boot0003* Windows Boot Manager HD(2,GPT,b4f4942a-0b9d-11e3-a0ba-a69b9f1ac104,0x200800,0x32000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS………x…B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}…5…………….
      Boot0004* UEFI: Network Card PciRoot(0x0)/Pci(0x1c,0x3)/Pci(0x0,0x0)/MAC(54bef7832b80,0)/IPv4(0.0.0.0:00.0.0.0:0,0,0)..BO
      Boot0008* Windows Boot Manager HD(2,GPT,b4f4942a-0b9d-11e3-a0ba-a69b9f1ac104,0x200800,0x32000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS………x…B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}…5…………….
      Boot0009* UEFI: Network Card PciRoot(0x0)/Pci(0x1c,0x3)/Pci(0x0,0x0)/MAC(54bef7832b80,0)/IPv4(0.0.0.0:00.0.0.0:0,0,0)..BO
      Boot000A* UEFI: Network Card PciRoot(0x0)/Pci(0x1c,0x3)/Pci(0x0,0x0)/MAC(54bef7832b80,0)/IPv6([::]:[::]:,0,0)..BO
      Boot000B* UEFI: Network Card PciRoot(0x0)/Pci(0x1c,0x3)/Pci(0x0,0x0)/MAC(54bef7832b80,0)/IPv6([::]:[::]:,0,0)..BO
      Boot000C* UEFI: TOSHIBA MQ01ABD100 PciRoot(0x0)/Pci(0x1f,0x2)/Sata(4,65535,0)/HD(7,GPT,d86c58dc-28f3-43b8-9194-a6f28779580a,0x6f222000,0x32000)..BO
      Boot000E* kali HD(2,GPT,b4f4942a-0b9d-11e3-a0ba-a69b9f1ac104,0x200800,0x32000)/File(\EFI\kali\grubx64.efi)
      Boot000F* UEFI: TOSHIBA MQ01ABD100 PciRoot(0x0)/Pci(0x1f,0x2)/Sata(4,65535,0)/HD(16,GPT,ad549dce-ecf5-4277-924f-1724e3bfcd1d,0x6f306000,0x32000)..BO
      Boot0010* UEFI: USB DISK 2.0 PMAP PciRoot(0x0)/Pci(0x1d,0x0)/USB(1,0)/USB(2,0)/HD(1,MBR,0x0,0x80,0x7a8780)..BO
      Boot2001* EFI USB Device RC
      Boot2002* EFI DVD/CDROM RC
      Boot2003* EFI Network RC

      I tried the efibootmgr -o 0001 command but it doesn’t show up and the boot order resets to what it was before.
      I’ve tried so many different for so many hours…

      Thanks for the help.

      • deshack

        Hi Joao, other than what explained here, are you sure Windows does not cause problems? I mean, with fastboot or similar.

        • João Coelho

          Yes. I’m pretty sure that secure boot and fast boot etc are all turned off

        • João Coelho

          Yes, I’m pretty sure that I have all that turned off. If you could enter teamviewer and try to solve it yourself, that would be amazing!

          • deshack

            Well, it’s not the kind of support I can do for free, man. But I suggest you to head over to forum.ubuntu.com

          • João Coelho

            I can pay you something..

  • Manix

    Hey, thanks for the article. I’m having an issue though

    I did everything you said successfully, but my boot options are weird when they display. The ubuntu option is *not* before the windows. It shows this:

    BootCurrent: 0000
    Timeout: 0 seconds
    BootOrder: 0005
    Boot0000* USB Hard Drive (UEFI) – Memorex Lady Bug
    Boot0001* Internal EFI Shell
    Boot0002* Internal EFI Shell
    Boot0003* Internal EFI Shell
    Boot0004* Windows Boot Manager
    Boot0005* ubuntu
    Boot2001* USB Drive (UEFI)
    Boot2002* Internal CD/DVD ROM Drive (UEFI)
    Boot3000* Internal Hard Disk or Solid State Disk
    Boot3001* Internal Hard Disk or Solid State Disk
    Boot3002* Internal Hard Disk or Solid State Disk
    Boot3003* Internal Hard Disk or Solid State Disk
    Boot3004* Internal Hard Disk or Solid State Disk

    Also, I tried boot-repair after this and it still doesn’t work.

    Though, sometimes I manage to get it to let me choose ubuntu. I can’t remember how. But every time I do, I get a command line grub? I’m not sure what to type into this?

    • deshack

      Hi, try the following command after chrooting into your operating system as explained:
      efibootmgr -o 0005

  • Ryan

    Just wanted to say thanks for posting this. It helped me after I somehow screwed up my boot management when trying to run a memtest.

    • deshack

      I’m glad it helped 🙂

  • Sylvanus Mukhim

    It doesn’t work in my laptop, after i installed it lead me directly to windows 8.1 os on startup only, Do you have any solution for this?
    I really appreciate your help.
    Thank You

    • deshack

      Please have a look at the bios (uefi) settings and make sure the first boot device is the drive where Grub has been installed during Ubuntu installation and not something like “Windows Boot Loader”

  • Jay

    Hi
    I can’t find ubuntu record when I execute efibootmgr -v
    the same when I check the EFI boot manager from bios

    Any suggestions ?

    Thanks in advance

    • deshack

      Try running Boot Repair.

  • vaggelis

    Hello deshack.

    Until recenlty i had a dual boot of windows 8.1 and linux mint 17.2 Rafaella Cinnamon x64bit.I did something and linux wouldn’t start.So i went to windows and deleted the linux partitions.At restart grub was still there.To remove it i used windows cd and at cmd prompt typed /bootrec.exe fixboot, then /bootrec.exe fixboot and /bootrec.exe fixmbr, but grub was still there.The solution was http://superuser.com/questions/681379/how-to-boot-windows-after-uninstalling-ubuntu.Now i want to dual boot with linux mint again.I went in windows and created a 200gb partition to host linux.Then i booted the linux live dvd before the grub screen the message could not open “\EFI\BOOT\fallaback.efi” :14 appears (other people reffered to it also but said it was nothing to worry about).The install programm of linux can’t see windows 8.1 but i proceeded the instalaltion with something else option and created / ,/home and swap area.At the completance of the instalation i was asked to continue in the live cd or to restart,i clicked retstart.At that point a black screen appeared and there was a message about “monitordesktop something…(can’t remember excactly)” and everything just stuck there.So i pressed continuously power button to shut down.At the next restart grub was there and i chose windows,but at the next restart grub was nowhere and the pc booted directly to windows.

    The windows 8.1 are a pre instalaltion on a lenovo g710 laptop (boot mode is UEFI,secure boot is disabled).As a solution i guess it might work refresh/reset/restore windows in order to get the EFI system partition to it’s factory default if possible, since i guess something is wrong with it’s ubuntu folder causing grub to disappear and not having ubuntu in my bios boot options.

    Do you think this is a possible solution to install again linux dual boot?Do you have anything else to suggest?

    Sorry for writing so much i try to give you the aspect of the problem.

    Thank you for your time!

    • deshack

      Hi, maybe Windows is in fastboot mode. Try to disable it. Also, give a try to Boot Repair.

      • vaggelis

        Thank you for answering so soon .

        Since linux mint is an ubuntu derivative can i use this https://help.ubuntu.com/community/Boot-Repair with my live DVD OR http://mintguide.org/tools/37-restore-grub-boot-loader-in-linux-mint-after-installation-reinstallation-windows.html? They seem pretty much the same to me. Also what should i do anything on Advanced Options–>GRUB location tab?

        • deshack

          You can use the first one and choose the simple repair.

          Anyway, GRUB must be installed in the MBR of the disk where your OS is installed into.
          So, if you installed Mint in, say, /dev/sda1 (your root partition), you should install GRUB in /dev/sda.

          • vaggelis

            Disabling the fast boot mode didn’t do the trick.The recommended boot repair failed giving the url http://paste2.org/9MbLY330. At the adavanced tab there is Os to boot by default sda7(Linix Mint 17.2 Rafaella),and i can change it to Windows(via sda 7 menu) and both have same the second oprion which is Separate /boot/efi partition sda2 (i have mount it and there is an ubuntu folder).I am thinking of doing the second option.

          • deshack

            Most of the times Boot Repair says it failed, but it still does its job. So, did you try rebooting after running the recommended repair?

          • vaggelis

            I tried the recommended repair yesterday and today giving me two different errors. Today the error is http://paste2.org/LZ0y2v1X .

          • deshack

            And it still doesn’t work?
            May I suggest you to try the Ubuntu forum? forum.ubuntu.com

  • Manuel

    Hey! You are the best! I’ve been looking for the solution for this issue for a day! You saved me! Greetings from Argentina!

  • Wilian

    Thanks, “Boot Repair” works for me.

  • Caleb Isaac

    Hi,
    My /boot/efi partition is formatted in fat 32 wich terminal will not recognize so i have left the command as
    mount -t ext4 /dev/sda2 /mnt/boot… not mount -t fat 32 /dev/sda2 /mnt/boot..
    Also i am not using a live cd, I am booting from windows 8.1 boot manager after windows has booted.
    I have had no luck so far.. I can access ubuntu, just not through grub before the windows bootloader..
    Thanks in advance

    • deshack

      Hi,
      Try mount -t vfat /dev/sda2 /mnt/boot

  • Karthik

    Hello deshack,
    Thanks for the post.
    I’hv just completed dual booting windows 8.1(preinstalled) with ubuntu 14.04LTS, but the problem is when I start my computer it directly boots into windows 8.1 and its not desplaying the grub menu.
    By the way Iam sending this from my ubuntu, that I loaded using F12 while startup..still no grub menu.
    Please leave a reply,
    Thank you again.

    • deshack

      Hi Karthik, did you try running Boot Repair or the other method explained in this guide?

  • peter james

    hi,
    i have installed Ubuntu 14.10 along side of Windows 8.1(primary);once after finishing the ubuntu install, i am unable find windows 8.1 options on Grub;also unable to access the different drives which are present in windows..
    i want to login to win 8.1;
    please suggest solutions to my problem//

    • deshack

      Did you try to run Boot Repair?

    • Nidhin

      Just open up your terminal and type in the following command –

      $ sudo update-grub

      That’s it. This is how I solved the same problem in my system (Windows 7 along with Ubuntu 14.10). Good luck.

  • Samy

    Followed every instruction but still booted straight into Windows repair mode. Any possible cause of this?

    • deshack

      It would be fine to explain a little more your problem… Did you try to restore Windows?

  • Craig Kempson

    Hi Mattia,

    This behaviour (how long before another Windows update replaces GRUB with the Windows bootloader?) is exactly why I have dual-boot configurations using the Windows bootloader in the MBR, and I install GRUB to the / partition instead. Then you can chain Windows->GRUB and be happy that Windows isn’t going to trample on your config.

    EasyBCD is a good tool to make the Windows changes, other than that you just need to remember to change the GRUB location at install time in Ubuntu. But it’s a lot less hassle.

    • deshack

      Hi Craig,

      Thank you for comment. Yours could be a very good solution to avoid problems that can raise when you don’t have time to solve them.

      The problem here, though, was with updates of packages in Ubuntu, and most probably grub itself. As far as I understand, grub is unable to update correctly in a UEFI environment (maybe not updating its efi components), therefore you have problems with it, like the one explained here. However, I did not investigate the root cause.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>