Dual boot pc boots directly to ubuntu instead of showing grub menu

30,510

Solution 1

I really dont know a lot about Linux, but i fixed the same problem by:

  1. Check if grub is installed

    grub-install --version
    

    or even

    sudo dd bs=512 count=1 if=/dev/sda 2>/dev/null | strings
    
  2. If it is installed, probably he is not recognizing windows boot, so it directly boots into ubuntu and wont show the grub screen. So, if your windows boot file was not deleted, this should make grub appear and recognize windows as a boot option.

    sudo -H gedit /etc/default/grub
    

    Insert # at the start of the line GRUB_HIDDEN_TIMEOUT=0.

    Now save then run:

    sudo update-grub
    

This should be fine to make Grub menu appears on every boot.

( Grub menu won't show on dual Boot )

Solution 2

As You said that after fixing mbr from windows you are directly booting to windows. You should try "Easy-BCD" software for windows in which you can add the grub 2.0 which is favourable for Ubuntu as well as Linux and after adding the grub 2.0 in that software by selecting the Linux partition (obviously) you will have options for booting in Edit boot menu settings.

Choose whatever You wish. Hope this does fine for you.

Share:
30,510

Related videos on Youtube

TheLinuxEvangelist
Author by

TheLinuxEvangelist

Updated on September 18, 2022

Comments

  • TheLinuxEvangelist
    TheLinuxEvangelist over 1 year

    I installed windows 8.1 on my new laptop (which came with freedos), I later tried to dual boot the pc with ubuntu 14.04 (with legacy mode). I didn't get an option to install alongside windows 8 so I went with "something else" option. I created the root and swap partitions and then installed ubuntu. Everything went fine while installation. But after rebooting it directly boots into ubuntu, it does not show the GRUB menu for choosing between ubuntu and windows.

    After using 'fixmbr' in the windows installation disc, I can now boot into windows but cannot boot to ubuntu. I deleted the linux partition and tried to the above again but I ended with the same problem.

    So I was thinking if there was a solution like a command or something which could make GRUB identify the windows partition and give an option to boot to it.

    (if it may help, my windows is installed in legacy mode(as in BIOS mode).. if I disable legacy mode the laptop does not boot into any os and it asks for an EFI file to boot from. Also my liveusb boots only through UEFI mode. When I boot it in normal/BIOS mode it shows a blinking '_' )

    Please help guys.. I need both the OSes for my projects. And I need them fast.

    Thanx in advance..

  • TheLinuxEvangelist
    TheLinuxEvangelist over 9 years
    what is the first option?
  • TheLinuxEvangelist
    TheLinuxEvangelist almost 8 years
    Easy-BCD was my first option.. In fact, it used to be my go-to option.. The program identified a Linux partition and it even apparently added the partition to the boot record. But while booting it never showed the grub menu. I even increased the timeout of the menu from the program, but it was in vain.
  • Moksh
    Moksh almost 8 years
    Did you install windows after installing Ubuntu? If you did then try installing Ubuntu after windows as windows boot loader i.e., NT loader doesn't recognise Ubuntu active partition thus It may directly be booting to Windows... Try it...
  • Moksh
    Moksh almost 8 years
    or You can also update grub manually in ubuntu if you can login there...
  • TheLinuxEvangelist
    TheLinuxEvangelist almost 8 years
    I installed Linux on a Windows machine..
  • TheLinuxEvangelist
    TheLinuxEvangelist almost 8 years
    Yes.. It worked.. But now I have another problem.. The Anniversary Update is out for Windows 10, will updating it remove the grub menu??
  • Moksh
    Moksh almost 8 years
    Don't know, It's windows
  • karel
    karel almost 5 years
    I made a bootable Boot-Repair live USB using Ubuntu's built-in Startup Disk Creator application.
  • Bilal
    Bilal about 3 years
    Hi, can't see the option GRUB_HIDDEN_TIMEOUT= on Ubuntu 20.04, but there is an option called GRUB_TIMEOUT_STYLE=hidden should I comment that instead? thanks in advance