Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #242715 > unrolled thread

Double boot (Windows & Debian) with UEFI mode

Started byfrantal@libero.it
First post2021-12-06 11:00 +0100
Last post2021-12-06 17:20 +0100
Articles 5 — 4 participants

Back to article view | Back to linux.debian.user


Contents

  Double boot (Windows & Debian) with UEFI mode frantal@libero.it - 2021-12-06 11:00 +0100
    Re: Double boot (Windows & Debian) with UEFI mode "Andrew M.A. Cater" <amacater@einval.com> - 2021-12-06 13:00 +0100
      Re: Double boot (Windows & Debian) with UEFI mode David Wright <deblis@lionunicorn.co.uk> - 2021-12-06 17:20 +0100
    Re: Double boot (Windows & Debian) with UEFI mode Peter Ehlert <pb21a@sdi-baja.com> - 2021-12-06 13:40 +0100
    Re: Double boot (Windows & Debian) with UEFI mode David Wright <deblis@lionunicorn.co.uk> - 2021-12-06 17:20 +0100

#242715 — Double boot (Windows & Debian) with UEFI mode

Fromfrantal@libero.it
Date2021-12-06 11:00 +0100
SubjectDouble boot (Windows & Debian) with UEFI mode
Message-ID<DriWR-wK-5@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

Hello,

unfortunately, nothing David suggested worked, so I finally set it on in the bios Legacy (via F12) and then reinstalled Debian.

Now if I turn on, Grub appears with Debian that starts (even if it takes a while to boot) and if I want to use Windows, at boot, I have to click F12 and select boot with UEFI and then Windows 10 starts.

I tried to install os-prober on Debian, but it is already installed and doing update-grub, but Windows is not shown (Probably because it is inserted in the UEFI boot).

Is there any way to fix this mess?

Francesco

[toc] | [next] | [standalone]


#242718

From"Andrew M.A. Cater" <amacater@einval.com>
Date2021-12-06 13:00 +0100
Message-ID<DrkOZ-1DW-3@gated-at.bofh.it>
In reply to#242715
On Mon, Dec 06, 2021 at 10:56:29AM +0100, frantal@libero.it wrote:
> Hello,
> 
> unfortunately, nothing David suggested worked, so I finally set it on in the bios Legacy (via F12) and then reinstalled Debian.
> 
> Now if I turn on, Grub appears with Debian that starts (even if it takes a while to boot) and if I want to use Windows, at boot, I have to click F12 and select boot with UEFI and then Windows 10 starts.
> 
> I tried to install os-prober on Debian, but it is already installed and doing update-grub, but Windows is not shown (Probably because it is inserted in the UEFI boot).
> 
> Is there any way to fix this mess?
> 
> Francesco

Hi Francesco,

That _definitely_ won't work. If one OS is installed using UEFI, then both 
need to be. Can you delete the Debian you've installed / reboot and use 
rescue mode in expert mode.

An expert install of Debian will allow you to specify where the boot files 
are. There is an option to install to a fallback location that should be 
found by any UEFI firmware. If you do that, it should work, and os-prober
should also pick up the existing Windows installer.

I think when I did this last time, I installed Debian first in UEFI mode and 
left space for Windows. Installing Windows thereafter it found the ESP
partition and installed Windows boot files there. I think it might have 
made Windows default boot and ignored Debian.

Rebooting Debian rescue mode and reinstalling grub and os-prober then found
Windows and put the items into grub so that it is sorted out.

All the very best, as ever,

Andy C.

[toc] | [prev] | [next] | [standalone]


#242724

FromDavid Wright <deblis@lionunicorn.co.uk>
Date2021-12-06 17:20 +0100
Message-ID<DroSC-4ej-5@gated-at.bofh.it>
In reply to#242718
On Mon 06 Dec 2021 at 11:56:08 (+0000), Andrew M.A. Cater wrote:
> On Mon, Dec 06, 2021 at 10:56:29AM +0100, frantal@libero.it wrote:
> > unfortunately, nothing David suggested worked, so I finally set it on in the bios Legacy (via F12) and then reinstalled Debian.
> > 
> > Now if I turn on, Grub appears with Debian that starts (even if it takes a while to boot) and if I want to use Windows, at boot, I have to click F12 and select boot with UEFI and then Windows 10 starts.
> > 
> > I tried to install os-prober on Debian, but it is already installed and doing update-grub, but Windows is not shown (Probably because it is inserted in the UEFI boot).
> > 
> > Is there any way to fix this mess?
> 
> That _definitely_ won't work. If one OS is installed using UEFI, then both 
> need to be. Can you delete the Debian you've installed / reboot and use 
> rescue mode in expert mode.

Sorry, but that generalisation gets trotted out over and
over again. Of course, those who actually practise it on
systems where it works know that it's not true and sigh,
while the world keeps turning.

> An expert install of Debian will allow you to specify where the boot files 
> are. There is an option to install to a fallback location that should be 
> found by any UEFI firmware. If you do that, it should work, and os-prober
> should also pick up the existing Windows installer.
> 
> I think when I did this last time, I installed Debian first in UEFI mode and 
> left space for Windows. Installing Windows thereafter it found the ESP
> partition and installed Windows boot files there. I think it might have 
> made Windows default boot and ignored Debian.

Where people use mixed UEFI/BIOS booting, the reports I've read
indicate that Windows is typically the original, ab initio,
system, and linux is installed after shrinking W's large
partition in order to create linux partitions, including a
BIOS Boot partition (notably present in the OP's system) for
their GPT disk.

> Rebooting Debian rescue mode and reinstalling grub and os-prober then found
> Windows and put the items into grub so that it is sorted out.

I assume those instructions were what you intended to post in
https://lists.debian.org/debian-user/2021/12/msg00104.html
but they didn't make it.

Cheers,
David.

[toc] | [prev] | [next] | [standalone]


#242719

FromPeter Ehlert <pb21a@sdi-baja.com>
Date2021-12-06 13:40 +0100
Message-ID<DrlrH-25Q-5@gated-at.bofh.it>
In reply to#242715

[Multipart message — attachments visible in raw view] — view raw

On 12/6/21 1:56 AM, frantal@libero.it wrote:
>
> Hello,
>
> unfortunately, nothing David suggested worked, so I finally set it on 
> in the bios Legacy (via F12) and then reinstalled Debian.
>
> Now if I turn on, Grub appears with Debian that starts (even if it 
> takes a while to boot) and if I want to use Windows, at boot, I have 
> to click F12 and select boot with UEFI and then Windows 10 starts.
>
that is exactly how I run windows. It works.
>
> I tried to install os-prober on Debian, but it is already installed 
> and doing update-grub, but Windows is not shown (Probably because it 
> is inserted in the UEFI boot).
>
> Is there any way to fix this mess?
>
not that I know of.

I just reset the BIOS when I want to boot windows. It's annoying but not 
a big deal.

> Francesco
>

[toc] | [prev] | [next] | [standalone]


#242725

FromDavid Wright <deblis@lionunicorn.co.uk>
Date2021-12-06 17:20 +0100
Message-ID<DroSC-4ej-9@gated-at.bofh.it>
In reply to#242715
On Mon 06 Dec 2021 at 10:56:29 (+0100), frantal@libero.it wrote:

> unfortunately, nothing David suggested worked,

Yes, that happens, usually because the initial conditions were
different from those assumed. Eg, Grub could have been in a
different state, as the commands I was using are typically in
response to a Grub> prompt, rather than a Grub Rescue> prompt.
I'm also not certain what results from a failure to load normal.mod.

But most importantly, without being told what /you/ do (not what
I said to do), and without the responses, it's very difficult to
help any further.

For example, in your original post, there was no explanation
of how you came by having a BIOS Boot partition. Which Howto
did you follow that encouraged you to create it? Knowing that
might well have helped others explain what your problem was,
were we able to read what the entire intended strategy was.

> so I finally set it on in the bios Legacy (via F12) and then reinstalled Debian.
> 
> Now if I turn on, Grub appears with Debian that starts (even if it takes a while to boot) and if I want to use Windows, at boot, I have to click F12 and select boot with UEFI and then Windows 10 starts.
> 
> I tried to install os-prober on Debian, but it is already installed and doing update-grub, but Windows is not shown (Probably because it is inserted in the UEFI boot).
> 
> Is there any way to fix this mess?

That depends how often you switch between Windows and Debian.
If it's infrequent, then you can just call it a feature. I did
that for over a year with a bread-winning Windows installation
that I was not willing to touch.
If not, then you need to retry installing Debian in UEFI mode
while making copious notes.

Cheers,
David.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web