Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > alt.os.linux > #61628
| From | Paul <nospam@needed.invalid> |
|---|---|
| Newsgroups | alt.os.linux |
| Subject | Re: Warning to Manjaro users that dual boot Win 10 |
| Date | 2019-12-19 03:26 -0500 |
| Organization | A noiseless patient Spider |
| Message-ID | <qtfc71$fob$1@dont-email.me> (permalink) |
| References | <c8dJF.6312$O9t.1313@fx36.am4> <qt9bri$6t0$1@dont-email.me> <bs1ncg-5d5.ln1@Telcontar.valinor> |
Carlos E.R. wrote:
> On 17/12/2019 02.43, Paul wrote:
>> Melzzzzz wrote:
>>> I have in VM dual boot Manjaro and Win 10.
>>> Latest Windows update overwrote grub boot file
>>> with something else so that grub entered rescue
>>> mode.
>>> https://forum.manjaro.org/t/help-fixing-grub-unknown-filesystem/99429/7
>>> I used different gpt number, but solution worked.
>>> Who gives right to M$ to overwite files in EFI partitition?
>>> What fuckers.
>>>
>> It turns out there are more issues than meet
>> the eye in this matter. Manjaro seems to have a
>> fair amount of trouble when it comes to GRUB installing.
>>
>> VirtualBox 6.0.14
>> Windows 10 17763 (so it can be updated later as a test case)
>> Latest Manjaro
>>
>> So I tried to install Manjaro.
>>
>> Using the LiveDVD, the install finished... and the virtual machine
>> booted to Windows. I took a look, and there was *no sign* that
>> a GRUB install had been attempted. And I don't remember a tick
>> box in there, saying "don't install GRUB".
>>
>> I tried to use Architect from the LiveDVD, to install grub.
>> This failed. A google reveals that it might work if
>> Architect is used from its own 700MB ISO. OK, so I download
>> that. It has a separate menu item where the sundry items
>> are mounted (sda6 is my /, sda2 is my ESP with EFI stuff in it,
>> sda5 was my swap, the others were windows items).
>>
>> I finally get a structure that looks reasonable in the ESP.
>>
>> https://i.postimg.cc/ry0BDD2q/manjaro-ESP-files.gif
>>
>> Now the fun starts.
>>
>> I boot the Windows 10 side of my dual-boot VM. I use
>> VirtualBox Additions to install a video driver. This
>> requires a reboot of Windows 10.
>>
>> Well, guess what happens. The VM avoids the Manjaro
>> GRUB menu and boots directly into Windows! And it's just
>> a driver update.
>
> It is possibly a warm boot, that avoids reading the disk boot structure,
> starting on the EFI partition. Well, I'd say this is a nice feature on
> double boot: When I'm updating the windows side and it reboots, I wants
> windows again, not Linux, so that it ends the second update stage that
> happens during windows boot.
I think there are signs the OSes are using efibootmgr
to modify the NVRAM and change what is presented at least,
on the popup boot screen.
For example, I installed some OSes as a test case, and the
Mint partition got listed identically twice in the popup boot
menu as a UEFI option. This is naughty, and some logic
somewhere is screwing up. This never used to happen (before
Manjaro was shown to the computer).
>
>> If you shut down the VM, then open it again, Manjaro
>> and GRUB take over again. The "feature" seems to be
>> done without changing GRUB materials. It relies on you
>> doing a "warm reboot" without closing the VirtualBox
>> window for the dual-boot VM.
>>
>> Now, the next surprise, is I decide to "dd" the MBR for
>> a look. And the "file" command tells me it is a
>> Windows 7 MBR (has three error messages that exist
>> in Windows-flavored MBRs).
>>
>> So how does that work ? I'm getting to the Manjaro GRUB menu
>>
>> https://i.postimg.cc/0ynkVzNL/manjaro-grub-menu.gif
>>
>> but the MBR contains a Windows boot stage ???
>>
>> And I *could not* convince Manjaro to overwrite the
>> MBR boot materials either. Windows 10 must have put
>> that MBR there, but Manjaro won't touch it. Even with
>> the usage of install-grub.
>
> No, my guess is that it was written by Architect when repairing the
> grub, or earlier by manjaro install.
Actually, my testing has revealed that for UEFI boot materials,
there is hardly any interest in writing the 440 byte section
of the MBR. Windows will do it, if Windows UEFI is the first
OS to touch the disk. Once the AA55 flag is in the MBR, Windows
stops caring about the 440 byte section. Neither Ubuntu nor Manjaro
is interested in loading up the 440 byte section of the MBR either.
When Windows is the first OS on the disk, all that writing that
boot loader does, is installs the first boot phase of legacy
boot. I never saw any signs this was making a difference.
>
>> The Windows 10 BCD file (dumped using bcdedit /enum)
>> shows no trace that Windows knows it is messing with
>> GRUB. It's not keeping records of anything, and
>> looking at the contents of the BCD, for all the
>> world, the Windows OS thinks it is alone. That's why
>> I can only guess that somehow the NVRAM paths play
>> a part in this somehow.
>>
>> And Boot-Repair reporter, I don't think it noticed
>> the Windows MBR.
>>
>> So if you think Windows has "taken over", close the window,
>> open the window again, and see if your Manjaro menu comes back.
>>
>> The state mine is in right now, doesn't seem correct
>> to me, but I don't know how to make install-grub
>> do what it is supposed to do. This assumes the MBR is still
>> the first stage of booting - maybe it isn't ???
>
>
> There are two main ways to make grub work.
>
> In an MBR based boot scheme, grub initial stage is written to the MBR,
> and then it loads the other stages from "other" places.
>
> OR, the MBR is a generic MBR, or the Windows MBR, which boots whatever
> partition is marked bootable, and this partition has Grub in its boot
> sector.
>
> OR, its is a GPT disk with an EFI partition, and it is the EFI code
> which then decides to boot whatever partition is selected to boot. There
> is a little menu to decide that should show before grub menu. If not,
> there are programs to change the boot order.
>
> To analyze the boot sequence from Linux, I recommend this script:
>
> <https://github.com/arvidjaar/bootinfoscript/raw/master/bootinfoscript>
>
> Download and install to /root/bin/, for example. Run and upload
> resulting file on some paste site somewhere. Posting here would probably
> wrap lines, but you can do that, with a client that doesn't wrap long lines.
>
The bootinfoscript did help. I couldn't see a way to do it from
Manjaro (a pacman search didn't list it), so I did it from Linux Mint
on the same hard drive.
My test case for today, was to do the multiboot test on a physical
disk, instead of VirtualBox, and I got slightly different results.
1) Installed Linux Mint in UEFI mode.
2) Installed Windows 10 in UEFI mode.
This was to check whether Windows would write the MBR,
and it does not. It enters stuff in the Microsoft folder
of the ESP. I fully expected Windows to take over at this point,
but I didn't care to test Linux Mint or recover grub. I don't
think Clean Installs like this, will have a happy ending in
any case.
3) Installed Manjaro.
Made /dev/sda2 (ESP) equal /boot/efi.
Manjaro adds its folder to what it thinks is /boot/efi/EFI/Manjaro,
but this is part of the Linux need to arrange /, /boot, /boot/grub
in an orderly way.
4) Let Windows 10 update itself from 17063 to 18363.
Aha! Broke the boot. Manjaro tried to boot. And the error was...
error: unknown filesystem. grub
and the temporary fix is like this.
set root=(hd0,7)
set prefix=(hd0,7)/boot/grub
insmod normal
normal
Mop up by running bootinfoscript and getting a recording
of the failed conditions.
5) To "fix it", it's the usual thing.
Enter Manjaro again using the temp fix.
set root=(hd0,7)
set prefix=(hd0,7)/boot/grub
insmod normal
normal
sudo grub-install /dev/sda
sudo update-grub
reboot
success.
Mop up by running bootinfoscript and getting a recording
of the successful conditions.
6) do a diff on the two bootinfoscript outputs.
456c456
< set root='hd0,gpt6'
---
> set root='hd0,gpt7'
A partition number has changed, between the two runs.
So the grub info being used, points at the wrong partition
as some sort of hint.
Now, review the partition layout. Without going into
unnecessary detail, my install looks like this.
MBR Linux Mint Windows 10 Manjaro
The thing is, when Windows 10 does Upgrade Installs, it has
a bad habit of resizing C: about 500MB smaller, and creating
a small partition to the right of C: . This causes the
partition numbering to change. This is a disaster in the
making, for the Linux OS *to the right* of Windows 10.
So it's not actually writing /boot/efi/EFI/name_of_OS
with new EFI files.
Instead, it trashes the setup by messing around with
partitions, and the other OSes on the disk (any OSes
*to the right* of C: ) will be affected. Their partition
number changes, and something about the GRUB setup
is still using partition numbers. Even though the
FSTAB is defensively designed with UUID or BLKID or
whatever.
So how can you keep Manjaro happy on Windows 10 ?
Put it to the left of Windows 10 like this.
MBR Manjaro Windows 10
And you have to install it that way, as attempting
to push partitions around with GPARTED is bound to
end in hair loss.
Once you do that, you *should* find that it behaves
mostly without permanent damage. If it uses Fast Boot,
well, turn Fast Boot off. If it warm boots right back
into Windows 10, it's doing that because it's finishing
updates. Shutting down the VM should allow it to come
back up in Manjaro mode. On a physical disk, you should
see a similar behavior (a shutdown leads to an orderly
startup managed by GRUB again).
If Windows 10 does the 20H1 Upgrade Install next year,
as long as Windows 10 is to the right of your Linux
OSes, maybe there won't be a disaster. At least,
for the boot failure I got on my test setup.
Paul
Back to alt.os.linux | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Warning to Manjaro users that dual boot Win 10 Melzzzzz <Melzzzzz@zzzzz.com> - 2019-12-14 22:13 +0000
Re: Warning to Manjaro users that dual boot Win 10 Pascal Hambourg <pascal@plouf.fr.eu.org> - 2019-12-15 00:23 +0100
Re: Warning to Manjaro users that dual boot Win 10 Melzzzzz <Melzzzzz@zzzzz.com> - 2019-12-15 10:34 +0000
Re: Warning to Manjaro users that dual boot Win 10 Soviet_Mario <SovietMario@CCCP.MIR> - 2019-12-15 12:33 +0100
Re: Warning to Manjaro users that dual boot Win 10 Melzzzzz <Melzzzzz@zzzzz.com> - 2019-12-15 13:28 +0000
Re: Warning to Manjaro users that dual boot Win 10 gazelle@shell.xmission.com (Kenny McCormack) - 2019-12-15 13:58 +0000
Re: Warning to Manjaro users that dual boot Win 10 Melzzzzz <Melzzzzz@zzzzz.com> - 2019-12-15 15:43 +0000
Re: Warning to Manjaro users that dual boot Win 10 Ned Latham <nedlatham@woden.valhalla.oz> - 2019-12-15 11:20 -0600
Re: Warning to Manjaro users that dual boot Win 10 Soviet_Mario <SovietMario@CCCP.MIR> - 2019-12-15 18:52 +0100
Re: Warning to Manjaro users that dual boot Win 10 Soviet_Mario <SovietMario@CCCP.MIR> - 2019-12-15 18:49 +0100
Re: Warning to Manjaro users that dual boot Win 10 Steve Carroll <frelwizzen@gmail.com> - 2019-12-21 12:03 -0800
Re: Warning to Manjaro users that dual boot Win 10 Ned Latham <nedlatham@woden.valhalla.oz> - 2019-12-15 05:39 -0600
Re: Warning to Manjaro users that dual boot Win 10 Soviet_Mario <SovietMario@CCCP.MIR> - 2019-12-15 12:55 +0100
Re: Warning to Manjaro users that dual boot Win 10 Ned Latham <nedlatham@woden.valhalla.oz> - 2019-12-15 06:12 -0600
Re: Warning to Manjaro users that dual boot Win 10 Soviet_Mario <SovietMario@CCCP.MIR> - 2019-12-15 14:04 +0100
Re: Warning to Manjaro users that dual boot Win 10 "David W. Hodgins" <dwhodgins@nomail.afraid.org> - 2019-12-15 09:50 -0500
Re: Warning to Manjaro users that dual boot Win 10 Aragorn <thorongil@telenet.be> - 2019-12-15 16:53 +0100
Re: Warning to Manjaro users that dual boot Win 10 Ned Latham <nedlatham@woden.valhalla.oz> - 2019-12-15 11:30 -0600
Re: Warning to Manjaro users that dual boot Win 10 Aragorn <thorongil@telenet.be> - 2019-12-15 18:47 +0100
Re: Warning to Manjaro users that dual boot Win 10 Ned Latham <nedlatham@woden.valhalla.oz> - 2019-12-15 12:33 -0600
Re: Warning to Manjaro users that dual boot Win 10 John Hasler <jhasler@newsguy.com> - 2019-12-15 15:16 -0600
Re: Warning to Manjaro users that dual boot Win 10 Ned Latham <nedlatham@woden.valhalla.oz> - 2019-12-15 16:25 -0600
Re: Warning to Manjaro users that dual boot Win 10 "Carlos E.R." <robin_listas@es.invalid> - 2019-12-16 01:10 +0100
Re: Warning to Manjaro users that dual boot Win 10 Ned Latham <nedlatham@woden.valhalla.oz> - 2019-12-15 19:14 -0600
Re: Warning to Manjaro users that dual boot Win 10 John Hasler <jhasler@newsguy.com> - 2019-12-15 18:17 -0600
Re: Warning to Manjaro users that dual boot Win 10 Ned Latham <nedlatham@woden.valhalla.oz> - 2019-12-15 20:03 -0600
Re: Warning to Manjaro users that dual boot Win 10 Paul <nospam@needed.invalid> - 2019-12-15 21:14 -0500
Re: Warning to Manjaro users that dual boot Win 10 - IME "Carlos E.R." <robin_listas@es.invalid> - 2019-12-16 14:29 +0100
Re: Warning to Manjaro users that dual boot Win 10 - IME Paul <nospam@needed.invalid> - 2019-12-16 14:05 -0500
Re: Warning to Manjaro users that dual boot Win 10 - IME "Carlos E.R." <robin_listas@es.invalid> - 2019-12-16 20:34 +0100
Re: Warning to Manjaro users that dual boot Win 10 - IME Aragorn <thorongil@telenet.be> - 2019-12-16 21:21 +0100
Re: Warning to Manjaro users that dual boot Win 10 - IME "Carlos E.R." <robin_listas@es.invalid> - 2019-12-16 23:08 +0100
Re: Warning to Manjaro users that dual boot Win 10 - IME Jasen Betts <jasen@xnet.co.nz> - 2019-12-20 23:45 +0000
Re: Warning to Manjaro users that dual boot Win 10 Soviet_Mario <SovietMario@CCCP.MIR> - 2019-12-15 18:54 +0100
Re: Warning to Manjaro users that dual boot Win 10 "Carlos E.R." <robin_listas@es.invalid> - 2019-12-15 16:17 +0100
Re: Warning to Manjaro users that dual boot Win 10 Ned Latham <nedlatham@woden.valhalla.oz> - 2019-12-15 09:37 -0600
Re: Warning to Manjaro users that dual boot Win 10 "Carlos E.R." <robin_listas@es.invalid> - 2019-12-15 17:09 +0100
Re: Warning to Manjaro users that dual boot Win 10 Paul <nospam@needed.invalid> - 2019-12-15 13:02 -0500
Re: Warning to Manjaro users that dual boot Win 10 Jasen Betts <jasen@xnet.co.nz> - 2019-12-21 05:43 +0000
Re: Warning to Manjaro users that dual boot Win 10 Java Jive <java@evij.com.invalid> - 2019-12-21 12:37 +0000
Re: Warning to Manjaro users that dual boot Win 10 William Poaster <wp@dev.null> - 2019-12-15 22:18 +0000
Re: Warning to Manjaro users that dual boot Win 10 gazelle@shell.xmission.com (Kenny McCormack) - 2019-12-15 13:55 +0000
Re: Warning to Manjaro users that dual boot Win 10 Pascal Hambourg <pascal@plouf.fr.eu.org> - 2019-12-22 11:02 +0100
Re: Warning to Manjaro users that dual boot Win 10 Steve Carroll <frelwizzen@gmail.com> - 2019-12-22 03:19 -0800
Re: Warning to Manjaro users that dual boot Win 10 Paul <nospam@needed.invalid> - 2019-12-16 20:43 -0500
Re: Warning to Manjaro users that dual boot Win 10 "David W. Hodgins" <dwhodgins@nomail.afraid.org> - 2019-12-16 23:40 -0500
Re: Warning to Manjaro users that dual boot Win 10 "Carlos E.R." <robin_listas@es.invalid> - 2019-12-17 14:30 +0100
Re: Warning to Manjaro users that dual boot Win 10 Paul <nospam@needed.invalid> - 2019-12-19 03:26 -0500
Re: Warning to Manjaro users that dual boot Win 10 "Carlos E.R." <robin_listas@es.invalid> - 2019-12-19 20:43 +0100
Re: Warning to Manjaro users that dual boot Win 10 Paul <nospam@needed.invalid> - 2019-12-20 21:32 -0500
Re: Warning to Manjaro users that dual boot Win 10 "Carlos E.R." <robin_listas@es.invalid> - 2019-12-21 14:17 +0100
Re: Warning to Manjaro users that dual boot Win 10 Paul <nospam@needed.invalid> - 2019-12-21 11:22 -0500
Re: Warning to Manjaro users that dual boot Win 10 "Carlos E.R." <robin_listas@es.invalid> - 2019-12-21 20:46 +0100
Re: Warning to Manjaro users that dual boot Win 10 Paul <nospam@needed.invalid> - 2019-12-21 17:20 -0500
Re: Warning to Manjaro users that dual boot Win 10 Steve Carroll <frelwizzen@gmail.com> - 2019-12-21 14:35 -0800
Re: Warning to Manjaro users that dual boot Win 10 "Carlos E.R." <robin_listas@es.invalid> - 2019-12-22 14:27 +0100
Re: Warning to Manjaro users that dual boot Win 10 Steve Carroll <frelwizzen@gmail.com> - 2019-12-22 05:52 -0800
Re: Warning to Manjaro users that dual boot Win 10 Pascal Hambourg <pascal@plouf.fr.eu.org> - 2019-12-22 10:59 +0100
Re: Warning to Manjaro users that dual boot Win 10 Paul <nospam@needed.invalid> - 2019-12-22 05:16 -0500
Re: Warning to Manjaro users that dual boot Win 10 Steve Carroll <frelwizzen@gmail.com> - 2019-12-22 02:48 -0800
Re: Warning to Manjaro users that dual boot Win 10 Pascal Hambourg <pascal@plouf.fr.eu.org> - 2019-12-22 13:53 +0100
Re: Warning to Manjaro users that dual boot Win 10 "Carlos E.R." <robin_listas@es.invalid> - 2019-12-22 14:59 +0100
Re: Warning to Manjaro users that dual boot Win 10 "Carlos E.R." <robin_listas@es.invalid> - 2019-12-22 14:48 +0100
Re: Warning to Manjaro users that dual boot Win 10 Pascal Hambourg <pascal@plouf.fr.eu.org> - 2019-12-22 15:33 +0100
Re: Warning to Manjaro users that dual boot Win 10 "Carlos E.R." <robin_listas@es.invalid> - 2019-12-22 18:50 +0100
Re: Warning to Manjaro users that dual boot Win 10 Steve Carroll <frelwizzen@gmail.com> - 2019-12-22 09:59 -0800
Re: Warning to Manjaro users that dual boot Win 10 Pascal Hambourg <pascal@plouf.fr.eu.org> - 2019-12-22 22:38 +0100
Re: Warning to Manjaro users that dual boot Win 10 Steve Carroll <frelwizzen@gmail.com> - 2019-12-22 14:35 -0800
Re: Warning to Manjaro users that dual boot Win 10 Steve Carroll <frelwizzen@gmail.com> - 2019-12-22 16:52 -0800
Re: Warning to Manjaro users that dual boot Win 10 Steve Carroll <frelwizzen@gmail.com> - 2019-12-23 06:12 -0800
Re: Warning to Manjaro users that dual boot Win 10 Pascal Hambourg <pascal@plouf.fr.eu.org> - 2019-12-22 10:36 +0100
Re: Warning to Manjaro users that dual boot Win 10 "Carlos E.R." <robin_listas@es.invalid> - 2019-12-22 15:03 +0100
Re: Warning to Manjaro users that dual boot Win 10 Steve Carroll <frelwizzen@gmail.com> - 2019-12-22 06:39 -0800
Re: Warning to Manjaro users that dual boot Win 10 Steve Carroll <frelwizzen@gmail.com> - 2019-12-22 07:56 -0800
Re: Warning to Manjaro users that dual boot Win 10 Steve Carroll <frelwizzen@gmail.com> - 2019-12-22 08:57 -0800
Re: Warning to Manjaro users that dual boot Win 10 Pascal Hambourg <pascal@plouf.fr.eu.org> - 2019-12-22 15:39 +0100
Re: Warning to Manjaro users that dual boot Win 10 Steve Carroll <frelwizzen@gmail.com> - 2019-12-22 07:09 -0800
Re: Warning to Manjaro users that dual boot Win 10 Steve Carroll <frelwizzen@gmail.com> - 2019-12-22 09:12 -0800
Re: Warning to Manjaro users that dual boot Win 10 "Carlos E.R." <robin_listas@es.invalid> - 2019-12-22 19:04 +0100
Re: Warning to Manjaro users that dual boot Win 10 Pascal Hambourg <pascal@plouf.fr.eu.org> - 2019-12-22 23:02 +0100
Re: Warning to Manjaro users that dual boot Win 10 Steve Carroll <frelwizzen@gmail.com> - 2019-12-23 00:31 -0800
Re: Warning to Manjaro users that dual boot Win 10 Steve Carroll <frelwizzen@gmail.com> - 2019-12-23 04:56 -0800
Re: Warning to Manjaro users that dual boot Win 10 Steve Carroll <frelwizzen@gmail.com> - 2019-12-23 11:18 -0800
Re: Warning to Manjaro users that dual boot Win 10 Steve Carroll <frelwizzen@gmail.com> - 2019-12-23 13:52 -0800
Re: Warning to Manjaro users that dual boot Win 10 Steve Carroll <frelwizzen@gmail.com> - 2019-12-23 17:57 -0800
Re: Warning to Manjaro users that dual boot Win 10 Steve Carroll <frelwizzen@gmail.com> - 2019-12-23 19:45 -0800
Re: Warning to Manjaro users that dual boot Win 10 Steve Carroll <frelwizzen@gmail.com> - 2019-12-23 22:50 -0800
Re: Warning to Manjaro users that dual boot Win 10 Steve Carroll <frelwizzen@gmail.com> - 2019-12-23 18:59 -0800
Re: Warning to Manjaro users that dual boot Win 10 Steve Carroll <frelwizzen@gmail.com> - 2019-12-23 07:59 -0800
Re: Warning to Manjaro users that dual boot Win 10 Steve Carroll <frelwizzen@gmail.com> - 2019-12-23 11:03 -0800
csiph-web