I recently purchased a laptop, an Acer Aspire R15 with these specs: 17 7500U, 12GB DDR4, 256GB SSD, GTX 940MX 2GB.

It comes preinstalled with Windows 10, but I wanted to install Debian in a dual boot configuration for programming.

Anyways, I installed Debian on the C: drive in a separate partition, and installed grub. When I restarted the PC, it went straight into Windows 10 without launching grub. I did several google searches and ended up trying this, but this method did not work and yet again, my PC booted straight into Windows. I then tried this, which also did not work. I then tried directly installing reFIND through debian after booting into debian with a usb flash drive of refine to try to see if I could use refind as a substitute for Grub, but that also did nothing.

TL;DR: My pc boots directly into windows instead of loading grub, and I tried every method I found to fix this, but none of them worked. Can someone help me get my pc to boot with grub?

10 Answers 10


Your UEFI is booting the first thing it sees, which happens to be the Windows 10 bootloader. You should change this to GRUB/rEFInd as follows:

  1. On Windows 10, boot into UEFI settings as follows:
  2. Open Settings
  3. Update and Security
  4. Recovery
  5. Advanced Startup > Restart now
  6. Troubleshoot
  7. Advanced Options
  8. UEFI Firmware settings
  9. Go to the boot tab of the UEFI settings
  10. Move the Linux bootloader (GRUB or rEFInd) above the Windows 10 bootloader (instructions to do this are usually at the bottom of the screen)
  11. Save and reboot

In my experience, you do not need to disable secure boot, enable legacy mode, etc.

Now, you should be able to use your new bootloader to boot Linux. While most distros add an entry to boot Windows 10 as well, you may need to do this manually to boot to Windows 10.

  • 3
    Latest Windows 10 doesn't seem to offer this. I get to "Advancest Startup", but then only get a button "Restart Now".
    – dsz
    Commented Nov 21, 2020 at 5:55
  • I can get to step 6 (Advanced Options), but there's no "UEFI Firmware settings" option there.
    – Mark
    Commented Dec 1, 2020 at 18:02
  • Using Windows 10, I see the UEFI Firmware Settings, which ask me to restart (again), and when I do, the machine stays on, but the screen never comes back on so can't see/do anything. No key combination can wake it, so I have to hold the power button :(
    – n1k31t4
    Commented Sep 30, 2021 at 23:24

It happens because of the windows register windows boot loader as a default boot loader that's why you are not greeted with GRUB.

To solve this problem,

First of all create a live CD of linux. Now, turn off your computer and boot it up wit the live CD. And try to Boot Repair follow the steps form here.

If that doesn't work then boot up to windows.

  • Run command prompt with administrative privileges.
  • Type

If your linux system is 64 bit.

bcdedit /set {bootmgr} path \EFI\debian\grubx64.efi

if your linux system is 32 bit.

bcdedit /set {bootmgr} path \EFI\debian\grubia32.efi

This command will make GRUB boot loader default boot loader for your system.

  • I already tried the second option, but I'll definitely try the first one now.
    – Willothy
    Commented Jun 30, 2017 at 19:16
  • bcdedit worked a treat - thanks
    – dsz
    Commented Nov 21, 2020 at 10:43
  • Hey this command stop my laptop boot. Now getting boot not found. Pls help me. Commented Jan 27, 2022 at 14:38
  • are you using any debian based distro? Commented Jan 28, 2022 at 15:45

Please check your BIOS settings. I faced exact same issue on my HP Laptop which goes directly into Windows 10 bypassing the linux boot options. My issue was resolved by enabling legacy mode and disable secure boot option. Please check similar options in your BIOS too.

  • Disabling security boot worked for me.
    – Frank
    Commented Nov 5, 2023 at 9:47

The Windows boot loader will generally boot only Windows systems. You need to tell your system to use a different boot loader if you want to boot into linux.

Since you are using Windows 10 and are mentioning rEFInd, you are probably on an UEFI system.

If you installed Debian and grub correctly, then all you need to do to be able to use them, is change your boot order in BIOS/UEFI or use the manufacturer dependent key during boot to select the boot device interactively - generally something like F11 or F12 or such. That should list your hard-drives and the bootable partitions.

Choose the one that has grub installed and you should be good to go.

To be able to do it without fiddling around with boot order and have both OS's accessible, you should add a Windows entry into your grub with an entry to /etc/grub.d/40_custom like so:

menuentry "Windows 10" {
    insmod part_gpt
    insmod fat
    insmod search_fs_uuid
    insmod chain
    search --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 XXXX-XXXX
    chainloader /EFI/Microsoft/Boot/bootmgfw.efi
  • hd0/ahci0 is the first disk
  • gpt2 is the second partition on said disk.
  • XXXX-XXXX is the UUID of the ESP (EFI System Partition)

Check the bootorder via efibootmgr (you might need to install it first):

$ efibootmgr
BootCurrent: 0002
Timeout: 1 seconds
BootOrder: 0008,0002,0005,000A,0009,0007,000B,000C
Boot0002* Grub
Boot0005* LITEON IT LCS-256L9S
Boot0007* UEFI: Built-in EFI Shell 
Boot0008* Windows Boot Manager
Boot000A* SAMSUNG MZ7LN512HMJP-00000
Boot000B* Generic Usb Device
Boot000C* CD/DVD Device

Then set grub to be the first in line:

$ sudo efibootmgr -o 2,8,5,A,9,7,B,C
BootCurrent: 0002
Timeout: 1 seconds
BootOrder: 0002,0008,0005,000A,0009,0007,000B,000C
Boot0002* Grub
Boot0005* LITEON IT LCS-256L9S
Boot0007* UEFI: Built-in EFI Shell 
Boot0008* Windows Boot Manager
Boot000A* SAMSUNG MZ7LN512HMJP-00000
Boot000B* Generic Usb Device
Boot000C* CD/DVD Device

Reboot and done.


I went through all of these steps however windows kept reenabling / booting first. I finally fixed it by enabling secure boot, which then allowed me to select my own "trusted" efi file in my bios (I selected grub). This then appeared in my boot order which I then put to the top and then turned off secure boot. Grub now loads first every time. This was on an acer with UEFI, GPT drives trying to dual boot Parrot OS and Win 10.


This worked for me in Ubuntu:

  1. Disable secure boot in Bios
  2. This command as administrator:
bcdedit /set "{bootmgr}" path \EFI\ubuntu\grubx64.efi

Something similar in Debian could work.


I was also facing the same issues, I have the hp envy 15-DR1XXX and I found out that the os boot manager from the list of boot devices was prioritizing the windows boot manager before the Linux one "fedora workstation". This is what I did.

  • Go to the bios setup
  • Select the boot manager
  • Go to the setting resembling OS boot manager
  • Click on it and use the function key listed to move the Linux distro so that it's first in the queue
  • press the same function key you pressed to get into the bios setup, it'll promt you to save changes and exit select yes and reboot the system.

Hope it helped, ✌️.


Simplest solution I found is there was never problem with grub menu. When you restart or start the computer once the blank screen appears press down arrow key maximum time to switch to other OS. huh…. its there but not appearing that’s it!!!! no. of dayssss to figure this out. comment if it works for you.

  • The question says that the PC boots directly into Windows. Given that, I don’t understand your answer.  What blank screen are you talking about? … … … … … … … … … … … … … … Please do not respond in comments; edit your answer to make it clearer and more complete. Commented Dec 26, 2022 at 8:07

I have this same issue with a Windows 10 and Ubuntu dual boot. While I have yet to find a permanent fix I use Disk Genius (https://www.diskgenius.com/) to edit my boot config, add grub entry back etc.

Here is a tutorial showing you the correct menu to go to: https://www.diskgenius.com/manual/set-uefi-bios-boot-entries.php

Once in the Set UEFI BIOS boot entries dialog (2nd pic in tutorial) either move your grub bootloader to the top of the list, or if Windows deleted it just add a new entry, go, navigate to the EFI partition, and then the grub folder and select the grub file. Click 'Save entry' and move it to the top of the list.

Its annoying to do every time, but better than nothing and super easy to use. I just do this before shutting down Windows so I have the option to boot from either OS next time I turn computer on.

Hope this helps!

  • Welcome to U&L. While the answer might be correct, you should edit it to provide more context. The steps described in the link should be included in the answer to preserve them - if the target disappears for whatever reason the answer's essentially useless. As you're new here, it's a good idea to take the Tour and check the Asking and Answering -sections in the Help to learn how these sites work. Commented Mar 5, 2023 at 9:09

Reinstall the grub externally......

If not sure how to, ....boot an OS like PuppyLinux(It's like 250 M.B.) and install from there, the process is graphical and easy . After installing GRUB from Puppy Linux........It will boot a grub at the beggining and you can see if Debian is there or not.......If it's not on the list then it isn't installed properly.....Reinstall it if it isn't installed properly

If it helps, or if you get any errors, kindly Answer

  • 1
    The problem is not that Debian is/isn't installed correctly, it's that Grub is not appearing when I turn on the computer. Simply reinstalling Grub does not help this problem, and I've already tried that several times.
    – Willothy
    Commented Jun 30, 2017 at 19:18

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .