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


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..

Best Answer

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 )