Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Problem dual booting Debian and Windows 10

Ask for help with issues regarding the Installations of the Debian O/S.
Post Reply
Message
Author
kitjackson
Posts: 12
Joined: 2016-09-27 16:52
Been thanked: 1 time

Problem dual booting Debian and Windows 10

#1 Post by kitjackson »

Lenovo all-in-one type F088, 4GB memory, 1TB hard drive

Started with factory installed Windows 10, shrunk Windows C: partition with Windows disk manager. Installed Debian into the free space from USB with firmware-10.10.0-amd64-netinst.iso. Everything runs OK but when rebooting after removing the USB, Windows starts and no sign of grub menu appearing.

BIOS settings
CSM support enabled
Boot mode auto
Boot priority UEFI first

Restarting the machine pressing F12 to show the BIOS boot menu shows the entries

Sata1
|- Legacy ST1000DM003-1SB102
|- Windows boot manager
|- debian
|- debian

Selecting either of the entries for debian starts grub which shows both Debian and Windows so the BIOS knows debian is there and grub is there. It looks like the installation of grub hasn't completed properly as no screen appeared during the installation to say that grub had detected both Windows and Debian. Searching the internet gives several similar reports of the same problem. I don't know anything about GPT and UEFI. Can someone point me to a clear explanation of how they work please and what I need to do to get the machine booting directly into the grub menu.

Thanks.

mm3100
Posts: 336
Joined: 2020-10-21 21:39
Has thanked: 8 times
Been thanked: 13 times

Re: Problem dual booting Debian and Windows 10

#2 Post by mm3100 »

When you enter grub can you chose Debian and windows from in there? As grub should be able to detect it. If not, once you boot to Debian just run update-grub2 and it should be detected and set up.

As for problem with windows booting instead of grub, that is because windows efi file is set higher in priority list in boot order. Can you check in your UEFI settings if you can change list of boot order. If you can't do anything like, go to Debian and copy result of

efibootmgr -v

With it is should be possible to change EFI priority order if it isn't possible in UEFI settings.

kitjackson
Posts: 12
Joined: 2016-09-27 16:52
Been thanked: 1 time

Re: Problem dual booting Debian and Windows 10

#3 Post by kitjackson »

Thanks for you help. There's something funny going on here. Here's the printout from efibootmgr -v

root@DESKTOP-QDIJVGD:~# efibootmgr -v
BootCurrent: 0001
Timeout: 2 seconds
BootOrder: 0000,0001,0008,0006,0005,0007,0004,0003
Boot0000* Windows Boot Manager HD(2,GPT,77da8314-3134-418f-af59-256399979747,0xe1800,0x31800)/File(\EFI\MICROSOFT\BOOT\BOOTMGFW.EFI)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...M................
Boot0001* debian HD(2,GPT,77da8314-3134-418f-af59-256399979747,0xe1800,0x31800)/File(\EFI\DEBIAN\SHIMX64.EFI)
Boot0003* Generic Usb Device VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)
Boot0004* CD/DVD Device VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)
Boot0005* PLDS DVD-RW DU8A6SH BBS(CDROM,,0x0)..BO
Boot0006* ST1000DM003-1SB102 BBS(HD,,0x0)..BO
Boot0007* Realtek PXE B03 D00 BBS(Network,,0x0)..BO
Boot0008* debian HD(2,GPT,77da8314-3134-418f-af59-256399979747,0xe1800,0x31800)/File(\EFI\DEBIAN\GRUBX64.EFI)..BO
root@DESKTOP-QDIJVGD:~#

next I've tried to change the order

root@DESKTOP-QDIJVGD:/home/kit# efibootmgr -o 0008,0001,0006,0005,0007,0004,0003,0000
BootCurrent: 0001
Timeout: 2 seconds
BootOrder: 0008,0001,0006,0005,0007,0004,0003,0000
Boot0000* Windows Boot Manager
Boot0001* debian
Boot0003* Generic Usb Device
Boot0004* CD/DVD Device
Boot0005* PLDS DVD-RW DU8A6SH
Boot0006* ST1000DM003-1SB102
Boot0007* Realtek PXE B03 D00
Boot0008* debian
root@DESKTOP-QDIJVGD:/home/kit#

Now I shutdown again and power up just letting the machine start normally and find that Windows starts so this new boot order has not been respected.

next I shutdown the machine then start again and press F12 again to get into debian and run efibootmgr again

root@DESKTOP-QDIJVGD:/home/kit# efibootmgr
BootCurrent: 0001
Timeout: 2 seconds
BootOrder: 0000,0001,0008,0006,0005,0007,0003,0004
Boot0000* Windows Boot Manager
Boot0001* debian
Boot0003* Generic Usb Device
Boot0004* CD/DVD Device
Boot0005* PLDS DVD-RW DU8A6SH
Boot0006* ST1000DM003-1SB102
Boot0007* Realtek PXE B03 D00
Boot0008* debian
root@DESKTOP-QDIJVGD:/home/kit#

So somehow it looks like the boot order has been changed by the BIOS. Is this possible? Note also that the boot order now ends with 0003, 0004 instead of 0004,0003.

I really don't understand what's happening here. Is there some other code in the BIOS that has run? Any ideas?

mm3100
Posts: 336
Joined: 2020-10-21 21:39
Has thanked: 8 times
Been thanked: 13 times

Re: Problem dual booting Debian and Windows 10

#4 Post by mm3100 »

Go to BIOS and check if you change change boot order of EFI files manually. If it is set there you might not be able to do it using efibootmgr. If there is nothing you can do about it, only choice left for you is to deactivate windows EFI file. That way it would automatically start grub rather then windows.

donu
Posts: 2
Joined: 2021-08-31 10:32

Re: Problem dual booting Debian and Windows 10

#5 Post by donu »

I had exact problem, then discovered there is a 'fast boot' bios setting that Windows set. I disabled that and everything worked perfectly. Google 'how to disable fast boot'.

User avatar
sunrat
Administrator
Administrator
Posts: 6382
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 115 times
Been thanked: 456 times

Re: Problem dual booting Debian and Windows 10

#6 Post by sunrat »

donu wrote: 2021-08-31 10:50 I had exact problem, then discovered there is a 'fast boot' bios setting that Windows set. I disabled that and everything worked perfectly. Google 'how to disable fast boot'.
"Fast Boot" is a BIOS/UEFI setup option which loads only a subset of hardware drivers before the operating system loads, not related to Windows. Perhaps it missed loading a needed driver if disabling it solved your issue?
Windows has an option called "Fast Startup" which can be enabled/disabled from inside a running system. It's rubbish, I tested its effect on boot and shutdown times and, while it cut a whole 2 seconds from startup, it added about 10 seconds to shutdown!
I'd guess OP's problem is different from that although it can't hurt to try it.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

donu
Posts: 2
Joined: 2021-08-31 10:32

Re: Problem dual booting Debian and Windows 10

#7 Post by donu »

OP, give it a try: see if your 'fast boot' bios setting is set, if so then unset it. Since boot was too fast to allow normal access to bios, here's how I got to my bios, see section called 'How to enter the bios on a Windows 10 PC": https://www.laptopmag.com/articles/acce ... windows-10

Post Reply