1

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?

1

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.

0

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

  • 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. – Wiooo Jun 30 '17 at 19:18
0

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
    boot
}
  • 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
Boot0009* PLDS DVD-RW DH16AFSH
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
Boot0009* PLDS DVD-RW DH16AFSH
Boot000A* SAMSUNG MZ7LN512HMJP-00000
Boot000B* Generic Usb Device
Boot000C* CD/DVD Device

Reboot and done.

0

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. – Wiooo Jun 30 '17 at 19:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.