Boot Loader

9 views
Skip to first unread message

Thomas Dewitt

unread,
Mar 11, 2022, 4:08:52 AM3/11/22
to
There are many users who have dual booting installed on their PCs. The Grub bootloader is typically used on Ubuntu systems. A recent Windows update has, however, overridden many users' Windows Boot Manager Settings. These changes prevent users from booting into Ubuntu after updating Windows.
https://digicruncher.com/install-grub-bootloader-in-windows-10/
It has been discussed how to install Grub bootloader in Windows 10 after a Windows update has overridden it.

Paul

unread,
Mar 11, 2022, 7:47:29 AM3/11/22
to
But this is the Windows XP group.

There is a separate group for Windows-10.

Perhaps there is a slight misinterpretation of what's happened ?

First of all, the BIOS has a popup boot menu. It has *multiple*
entries in it. This serves to prevent a loss of control incident.
Windows Boot Manager is one entry. Ubuntu can be a second UEFI entry.
The BIOS offers your "first level" of boot selection.

Windows 10, when it does an upgrade, some of the more recent ones
(like maybe 19041), they may change the previous "Win10" "Win7"
BCD menu to just "Win10", then, since a BCD with only one OS does
not need to present a menu, selecting "Windows Boot Manager"
causes immediate boot into Windows 10. This piggish behavior
can be stopped by using Macrium Reflect Free CD "fix boot problems"
entry, which will put Windows 7 back into the BCD for you. While
EasyBCD can also be used for this sort of work, it depends on which
version you've got, as to how well it will work.

On upgrade installs, Windows 10 does not remove other OSes. It has
a nasty habit of creating an extra 500MB partition with a WinRE.wim
inside it. But normally, since much of GRUB uses blkid/guid, this
does not break anything. This was not an "intentional" attempt to
break GRUB. Microsoft is perfectly capable of erasing all the
folders in the ESP, as any OS can, and they are simply not doing that.

There is no need to launch everything via GRUB. You can select
Windows Boot Manager from popup boot in the BIOS. You can also
select Ubuntu, and chainload a specific Windows OS from there.
That means there are at least two ways to launch a Windows OS.
But you are not limited to just using GRUB on a UEFI machine.
There are two steering wheels.

However, what you have to be aware of, is even though a lot of
things work with GUID or BLKID, sometimes removing or adding
a single partition, can upset something which is still using
a partition number or a drive letter for its boot menu. In other
words, a change you made to the disk lineup yourself, might actually
have resulted in a boot failure.

DATA WIN10 UBUNTU

If you remove the DATA partition, that will break your boot.

I think I found something in the Ubuntu folder in the ESP,
which points to a particular partition number.

To access the ESP easily, you can try the following.

1) dd copy the ESP FAT partition to a separate .img file.
The ESP might be the first partition. "gnome-disks" can help
you get the sda1 part right.

sudo dd if=/dev/sda1 of=esp.img

2) loopback mount it

sudo mount -t vfat -o loop esp.img /mnt/somefolder

3) Now you can use nemo or the like, to look inside.

My recollection is, there was some grub file in the Ubuntu
folder, with a partition number reference. One of those
(HD2,0) type things.

It's been a while since I've had to reinstall grub as
a Houdini thing. I don't use Boot Repair, because its
track record is not perfect. There is always chrooting
from live media. Using the keyword "chroot" you can
usually find a list of what mounts to use.

One of the golden rules of multiboot, is to not have
more than the target disk in the machine, when installing
OSes or fixing boot. This prevents inadvertent "linkage"
to the other disk drives in the computer. You can unplug the SATA
cabling from the excess disks, before starting your surgery.

Paul

JJ

unread,
Mar 11, 2022, 6:40:43 PM3/11/22
to
AFAIK, a Windows Update never touch the MBR or any partition boot record.
Only a Windows Upgrade or a Windows Install will. In fact, all proprietary
OSes act as if they own the system by themselves. They won't even bother
checking the boot manager. Not even theirs.

J. P. Gilliver (John)

unread,
Mar 12, 2022, 12:06:15 PM3/12/22
to
On Fri, 11 Mar 2022 at 07:47:19, Paul <nos...@needed.invalid> wrote (my
responses usually FOLLOW):
>On 3/11/2022 4:08 AM, Thomas Dewitt wrote:
>> There are many users who have dual booting installed on their PCs.
>>The Grub bootloader is typically used on Ubuntu systems. A recent
>>Windows update has, however, overridden many users' Windows Boot
>>Manager Settings. These changes prevent users from booting into Ubuntu
>>after updating Windows.
>> https://digicruncher.com/install-grub-bootloader-in-windows-10/
>> It has been discussed how to install Grub bootloader in Windows 10
>>after a Windows update has overridden it.
>>
>
>But this is the Windows XP group.
>
>There is a separate group for Windows-10.

TD is posting via google groups, which doesn't carry it.

Ideally, he should stop using GG (-:

But if he's frightened by the thought of setting up a "proper" news
client - and I know many are, so use this 'group for 7/8/10(/11?) posts
- he should at least put something (like "Windows 10") _in the subject
line_.
>
>Perhaps there is a slight misinterpretation of what's happened ?
[snipped]
--
J. P. Gilliver. UMRA: 1960/<1985 MB++G()AL-IS-Ch++(p)Ar@T+H+Sh0!:`)DNAf

1. If it's green, it's biology
2. If it smells, it's chemistry
3. If it doesn't work, it's physics.
Reply all
Reply to author
Forward
0 new messages