1

Every time I try to boot, my computer goes straight into Windows 7.

I had Windows 7 installed and installed Ubuntu 14.04 afterwards, but grub does not show up on boot. Tried holding shift, messing with the grub config file on the timeout line, boot repair and other things, today I wiped the partitions I created and started all over, same result, ran boot-repair, have a look at the boot-repair log.

Why doesn't grub show up on my machine?

Jens Erat
  • 5,051
  • 7
  • 31
  • 37
  • have you tried running Ubuntu live cd and from terminal update-grub – Mudit Kapil Feb 02 '15 at 16:42
  • I did, nothing changed :( – Miguel Mendes Feb 02 '15 at 16:50
  • boot in to windows and run from cmd bcdedit /set {bootmgr} path \EFI\...\grub*.efi – Mudit Kapil Feb 02 '15 at 16:53
  • boot in to windows and run from cmd bcdedit /set {bootmgr} path \EFI\ubuntu\shimx64.efi – Mudit Kapil Feb 02 '15 at 17:00
  • You have to boot to your BIOS and select which OS to boot from your BIOS. – Panther Feb 02 '15 at 17:02
  • the windows command did not work. Ubuntu is alreay the first option in the boot menu in my BIOS. – Miguel Mendes Feb 02 '15 at 17:19
  • If Windows 7, and UEFI you should not have the secure boot nor fast boot/hibernation issues. But is hardware newer or system was Windows 8? What brand/model system. Many vendors with Windows 8 modify UEFI to only boot the UEFI entry with "Windows" in the description. That is not UEFI standard. Many systems particularily Sony & HP require work arounds so you actually boot grub using the UEFI hard drive entry which stil seems to work. http://askubuntu.com/questions/486752/dual-boot-win-8-ubuntu-loads-only-win/486789#486789 – oldfred Feb 02 '15 at 17:33
  • @MiguelMendes enable legacy boot also along with UEFI and then intrupt the boot process and get in to boot menu f9 or f12 depends on your BIOS – Mudit Kapil Feb 02 '15 at 18:04
  • @oldfred This is a Samsung RV520 laptop, it came with win7 by default, I had linux running before, also had some problems but boot-repair fixed them. A few months I formatted my pc and now I miss linux :P – Miguel Mendes Feb 02 '15 at 19:12
  • @Mudit Legacy boot is enabled alongside UEFI. – Miguel Mendes Feb 02 '15 at 19:13
  • @MiguelMendes press esc key just as your system starts booting and interrupt the boot and get in to boot options – Mudit Kapil Feb 02 '15 at 19:46
  • @MiguelMendes if your system allows to disable UEFI then disable it and choose legacy boot – Mudit Kapil Feb 02 '15 at 19:47
  • @Mudit When I disable UEFI the system can't even boot. Pressed Esc when booting and this menu showed up http://goo.gl/7xjx4b after selecting ubuntu nothing happens, just a blank screen – Miguel Mendes Feb 02 '15 at 20:58
  • Then it may be booting? But you have video issues or black screen? http://askubuntu.com/questions/162075/my-computer-boots-to-a-black-screen-what-options-do-i-have-to-fix-it different model but Samsung may have same UEFI. http://ubuntuforums.org/showthread.php?t=2230919 – oldfred Feb 02 '15 at 23:53
  • @MiguelMendes you have to boot your Ubuntu CD as UEFI for installation – Mudit Kapil Feb 03 '15 at 16:51
  • @Mudit How do I do that? – Miguel Mendes Feb 04 '15 at 15:09
  • @MiguelMendes In the boot menu option select BOOT Ubuntu CD as EFI and install alongside windows – Mudit Kapil Feb 04 '15 at 16:07
  • I got this error:

    root@ubuntu:/# grub-install /dev/sda Installing for x86_64-efi platform. grub-install: error: cannot find EFI directory.

    After reading some more on oldfred's links I found out that I have to manually create a partition for EFI.

    It says that I should not have more than 1 EFI boot partition, so I gess there is no problem in having windows and ubuntu in the same EFI boot partition_

    – Miguel Mendes Feb 04 '15 at 22:00

0 Answers0