friendica.vrije-mens.org

Microsoft’s latest security update has ruined dual-boot Windows and Linux PCs

576 11 1
Wow, they must be really stupid over at Microsoft!
1
this changes nothing: microsoft should have sent a patch remains microsoft should have sent a patch; internal policies are irrelevant to actions effecting external projects
Deze entry werd bewerkt (4 weeks ago)
3 1 1
This means that it is impossible for them to make a patch or PR because it would conflict with the projects licence and fact its open source.


That's not how it works. It just means the company owns the code for all intents and purposes, which also means that if they tell you that you can release it under a FOSS license / contribute to someone else's project, you can absolutely do that (they effectively grant you the license to use "their" code that you wrote under a FOSS license somewhere else).

7 1
And not every team is allowed to do that.
Also, youre telling somebody who has worked with big companies not allowing it in their employer contract that he is lying? Riiiight...
A lot of google devs also are not allowed to do any linux work outside of work without explicit permissions. Development rights is a absolute mess, legally.
I usually dont care and do what is right, but i have gotten in trouble for it
Deze entry werd bewerkt (4 weeks ago)
5 1
Yes, but not all devs within microsoft are allowed to work on non-ms foss projects. I assume wsl devs are allowed to send stuff to linux but visual studio devs probably are not.
2 1
Microsoft! You missed your last chance to stay on my computers with your os. Take care, so long and thanks for all the cons.
19 1
But having 2 drives does not solve the boot loading issue, I mean, even if you have two drives, you still have only one bootloader, not?
15 2 1
That is until you want to switch and use mostly linux, but you have friends who want to play one of those few games that only works on windows
2 3 1

They can forbid you to work on opensource stuff while being in free time? I mean, I understand that you are not allowed to generate open code that utilises private know how of the company you work for. But not working on Linux in free time seems very strange to me 😮

Edit: There is a way: https://lemmy.world/comment/11915181


I keep Linux and windows on separate disks, grub or windows boot manager don't know about each other.
I have the Linux disk as the primary boot, if I need to boot into windows i use the bios boot selection screen.
It's a bit of a pain at times(have to mash F12 to get the bios boot menu) bit it's less of a headache than trying to fix grub

Deze entry werd bewerkt (4 weeks ago)
1 1
I have dualboot set-up on my MacBook and have no. But it is a long time ago, since I last started macOS and my Mac would not get new macOS updates anyway😂 that was the reason to install Linux in the first place 😝
1 1
Ah, I see, there really is a way 😁👌🏻
1
Your assessment of probability is speculation


It is, but anecdote is insufficient to counter it.

1 3 1

No. You can have more than one EFI system partition with separate bootloaders on each drive and set their boot order in the BIOS, just like booting from USB or anything else.

This is also possible with just one drive. The efi boot entries for each OS are stored separately in the efi system partition.

Deze entry werd bewerkt (4 weeks ago)
20 1 1
You can have a own EFI partition per Drive (and on it whatever bootloader you want). You then need to use the UEFI boot menu if you want e.g. boot the Windows one.
If you have 2 different OS on different drives they should never interfere with each other.
Deze entry werd bewerkt (4 weeks ago)
3 1
It’s a lot better in uefi, MBR dual booting was always sort of hacky.
2 1
Grub has already been patched, that doesn’t mean distributions shipped it. SBAT broke systems that hadn’t been updated.
Deze entry werd bewerkt (4 weeks ago)
6 1 1
I blame Linux distributions for not updating when the issue has been fixed for years a little more than I blame Microsoft for untrusting old vulnerable software versions. That said, failing to figure out if it is dual booting or not when there are multiple ways of doing it was not really a surprise.
Deze entry werd bewerkt (4 weeks ago)
1 1 1
Glad I chose linux then.
27 1
Thats just dual booting. That wont work with the law if the contract says anything created using company hardware is theirs.
And yes, some companies need to give you a green light to work on projects in your free time, because they might have a team doing similar things somewhere, or it might compete in something they would like to do in the future.
Its bs imo, but those clauses and rules are found in some employment agreements.
Remember, always read your employment agreements!
Deze entry werd bewerkt (4 weeks ago)
1 1
The second windows isnt the only option for "all games without any effort", it will be dead.
1 1
Well i believe it already is for the majority of games, though I don't game anymore so I don't know, proton wasnt 100% a year or two back
2 1

Legit have never had an issue with multi boot and windows like ever, tbf I don't go into windows that frequently anymore but it's never given me grief in at least a decade. I know my experience isn't universal though, so sorry to anyone who does have boot issues after windows updates.

In the worst case, could use bcdedit and use the windows boot loader (tbh I have no idea if that works here, but could be worth a try)

4 1
I'm going to choose a VM.
8 1
I literally got this error using a bootable SSD with Ubuntu Mate on it. Separate drives aren't immune to the issue.
24 1 1
I’d almost bet money that in a year or two they’ll make it so that the latest version of windows cannot be installed in virtual machines
6 1 1
even if you have two drives, you still have only one bootloader, not?


The idea is to have completely separate boot and OS drives. You select which one you want to boot through the BIOS boot selection (ie. pressing F10 or F11 at the BIOS screen).

This functionally makes each OS "unaware" of the other one.

13 3 1
That would break 90+% of installations then. And all of Azure.
Deze entry werd bewerkt (4 weeks ago)
13 1

I'm not saying you're lying, but you said

do not allow software developers to send a patch or PR to open source projects.


But this sentence in particular was misleading. Maybe you specifically did not have the right to do so, but in the Linux and BSD codebases there are a lot of @microsoft @netflix @oracle contributions, so at least there is someone in those companies authorized to do so

1 1

Yeah if you write proprietary code and then work on a similar project in your spare time, your company might sue you because you're likely reusing code you've seen or written at work.

For example Windows developers are forbidden from working on ReactOS

2 1
I just learned that you can do this setup even on one drive alone (having two bootloader on one drive in two partition and choosing in UEFI/Legacy BIOS)
1 1
😂 edited the wrong post, lol
1
This reminds me I still have a win 10 partition on my drive. Ye! Extra space to reclaim!
10 1 1

Fair, and ill edit my post accordingly!

There are teams that are allowed, and within those companies are teams that are directly related to foss projects because those companies are in the foundation or supports of the foundation. However, thats doesnt mean every (product) team in the company is allowed to or that they can do or change whatever they like. Its a complex mess

1 1
Thank you for have brought us your experience!
2 1

Unfortunately it really doesn’t. And it’s actually Linux that’s the bigger problem: whenever it decides to updates GRUB it looks for OSes on all of your drives to make grub entries for them. It also doesn’t necessarily modify the version of grub on the booted drive.

Yes I’m sure there’s a way to manually configure everything perfectly but my goal is a setup where I don’t have to constantly manually fix things.

5 1 1
I'd only use windows for gaming really, wouldn't running it in a VM be less optimal in that vase? In terms of performance of windows and playing fames within the VM.
1
The only way to fix your computer is to uninstall all spyware like Windows
14 1 1
I think I've managed to avoid this by making the Linux drive my boot drive and by leaving the Windows drive untouched. (i.e. grub bootloader on the Linux drive, with option to boot to Windows as the second choice)
13 1 1

EFI can also live in firmware memory.

You can pull the linux drive, boot from the windows drive, and if one of the firmware updates was for efi, windows will trash the entry for your Linux disk.

This has happened for me many times, I had to use a grub rescue disk to rebuild the efi table.

7 1
Not on my experience. But separate machines would work, if Microsoft never releases a "Wi-Fi network security patch for compatibility with all machines".
3 1

Oh you sweet sweet summer boy....

We're talking Microsoft here, they'll make sure they're aware and they'll make sure to f you over because Microsoft

6 2 1

Remove your Microsoft installation, done.

Yes but...


But what? This is Microsoft, they fucked it up so many times that it's either incompetence or sabotage, and knowing Microsoft, it's probably both.

This is the same company that invented millions to sabotage Linux through the legal system (hello sco), and the same company that in purpose left gaping security holes open as to not lose any money, causing China to hack the US government through said holes.

Then we decide that just that money isn't enough so we'll spy on you at every step of the way, we will force feed you ads, and we'll use you to train our shitty AI

Frack Microsoft, frack any and all of their software.

Deze entry werd bewerkt (4 weeks ago)
47 4 1

Really depends on the virtualization technology, hardware, configuration and game. Not a gamer myself.

Gaming on linux has come a long way in recent years though, in no small part thanks to Steam.

3 1
What is that latter fallback called? I set up my boot manually using an EFI stub last time I installed arch but wasn't aware of any fallback bootloader
2 1
I've been on Steam+Proton for more than 3 years now. So many many games are now supported. It is usually the DRM kernel anti-cheats that are Windoxez only tend to be the broken ones. I dont buy or care about games that run anti-cheat in Windoze kernel.
2 1
as they like to do every once in a while
23 1
lol they fuck with my BIOS boot settings to the point i had to password it. they are that bad.
7 1
same setup, havent had issues so far.
1
I'm quoting OP's summary (or quote). I'm implying that Microsoft is hostile to Linux installations generally.
2 1
Yess, let the hate flow through you! ⚡
15 1
That's when they "graciously" offer to whitelist "approved" devices to boot windows VM from.
5 1 1
I've got the same setup 😎
3 1
The wrote and released VS Code - a completely opensource development environment. If they wanted to patch Grub I bet they could have found the permissions internally to do that. Microsoft is a lot more open to OSS contributions then they were in the past.
1
[This comment has been deleted by an automated system]
Deze entry werd bewerkt (2 days ago)
3 1

While I generally agree with that, that's not what seems to be happening here. What seems to be happening is that anyone who boots Windows via grub is getting grub itself overwritten.

When you install Linux, boot loaders like grub generally are smart and try to be helpful by scanning all available OSes and provide a boot menu entry for those. This is generally to help new users who install a dual-boot system and help them not think that "Linux erased Windows" when they see the new grub boot loader.

When you boot Windows from grub, Windows treats the drive with grub (where it booted from) as the boot drive. But if you tell your BIOS to boot the Windows drive, then grub won't be invoked and Windows will boot seeing it's own drive as the boot drive.

This is mostly an assumption as this hasn't happened to me and details are still a bit scarce.

1 1

If you install each OS with it's own drive as the boot device, then you won't see this issue.

Unless you boot Windows via the grub boot menu. If you do that then Windows will see that drive as the boot device.

If you select the OS by using the BIOS boot selection then you won't see this issue.

I was bitten by Windows doing exactly this almost 15 years ago. Since that day if I ever had a need for dual-boot (even if running different distros) each OS will get it's own dedicated drive, and I select what I want to boot through the BBS (BIOS Boot Selection). It's usually invoked with F10 or F11 (but could be a different key combo.

1 1
Then anyone running a Windows VM would just switch to a Server edition, which is almost exclusively run via a VM.
4 1

I did that and a Windows update nuked Linux from the BIOS boot loader a few weeks ago.

The only safe option is to have completely separate machines. Thankfully with the rise of ridiculously powerful minipcs that's easier than ever.

1 1
If you need to dual boot, be sure to use separate EFI partitions for windows and Linux, separate drives if possible. Windows has done this far too many times.
38 1
and unplug your linux drive when booting windows, just in case
5 2 1
Just remove Windows. One problem less on the list.
15 2 1

My install does not seem to do this. I removed the windows drive when installing Linux on a new drive. Put both drives in and select which one to boot in the bios. Its been that way for about a year and, so far, grub updates have never noticed the windows install nor added to grub.

That's with bazzite, can't speak for any other distro as that is the only dual-boot machine I own. Bazzite does mention they do not recommend traditional dual boot with the boot loader and recommend the bios method so maybe they have something changed to avoid that?

1 1
Do you think I can program on a Windows VM? Do you work with it? I still use Windows because I need my programs to work on Windows (had my programs built on Linux fail on Windows Machines before). Do you have experience on this?
1
Thanks for the detailed explanation, makes a lot of sense! I guess what I did was set up a UEFI entry that specifies the location of the Linux kernel without any intermediate bootloader. Pretty sure I didn't set the fallback, so I'm guessing that's still owned by windows.
2 1
[This comment has been deleted by an automated system]
Deze entry werd bewerkt (2 days ago)
1
I had the intention of reinstalling my windows because it was like from back when win10 was new and the winsxs folder was so big that a 100GB partition was not enough for just windows with all the 3rd party programs installed on another partition... but I noticed that all my games run on Linux so I ended up wiping the 100GB nvme windows partition and moving my dual boot Linux there. I've been without windows for a couple of months now and I haven't really missed it.
15 1
stupidity is a once-off


🎶 ...this iiiiis my one an only wiiiiiiish! 🎶

1 1
That wouldn't be about the VM but the OS. If the software is built to target linux without care for portability then it'll fail on windows - you'd have to compile it targetting windows, either using the Visual Studio compiler or MinGW's gcc, be it native for windows under MSYS2 or using a cross-compiler variant.
1 1
I put windows in the shame box (VM).
20 1
This has been my solution for a long time.
1
CrabAndBroom lemmy (AP)

I recently discovered that Rufus has an option to set up a Windows ISO as "Windows on the go" so I dug out an old 500Gb SSD that had a USB adapter with it and installed Windows on that. So now instead of dual booting I can just hit F12 and boot from USB on the rare occasions when I need to run something in Windows.

It's also quite satisfying to be able to physically remove Windows and shove it into a drawer when it goes full Windows too lol.

Deze entry werd bewerkt (3 weeks ago)
3 1
fossilesque lemmy (AP)
God, I'd have a back up in case I went full office space.
1
CrabAndBroom lemmy (AP)

I pretty much did just go full office space on it lol. Here's a fun thing I just learned:

Windows 11 apparently defaults to a tiny fraction of space for system restore points, and if it runs out of space it just deletes the old ones without asking or telling you. Because it defaults to a tiny amount of space, it apparently only ever keeps one system restore point on hand.

This means I made a manual one on a clean install when I'd got my settings sorted, so I can hop back to that when Windows inevitably fucks up. But because it's Windows, what it did was apply a big update, fuck it up, then save that fuck up as the only restore point.

I restored it anyway just to see what would happen, and that broke even more stuff. Back in the drawer!

1 1
Is there any issue with having windows on one drive and Linux on the other and toggling in the bios at boot? Do I introduce any problems by keeping my rarely used windows installation on a separate disk like this?
2 1
I'm not sure, but clearly something happens on the background, as my Debian drive broke after I changed it back and forth for the Windows drive. Grub fell back to rescue mode. After following some instructions and trying to boot from grub command line, Debian wouldn't boot after it recognized the mouse. That's what I know. Even in different drives, something happens on the PC when you go back and forth with Windows and Linux.
1

I should have been more clear,

Assuming dev/sda is Linux and dev/sdb is Windows, I have grub on sda and Windows bootloader on sdb. I use a hotkey at boot to tell the bios which drive to boot from.

Theoretically windows thinks it's the only OS unless it's scoping out that second hard disk.

1
It updates Secure Boot in the BIOS, so you could completely remove Windows but the Secure Boot update would still be in the BIOS and affect the boot loader.
1 1
Here's how to delete the SBAT policy that the Windows Update applies.
1

So, excusing my ignorance as a fairly recent Linux convert, what does this mean for my dual boot system?

I haven’t booted windows for weeks and am pretty sure there have been no updates since it was freshly reinstalled (maybe 6 months ago) as a dual boot with Debian.

Is this only a problem if I allow Windows to update?

Are Microsoft likely to fix the issue in a subsequent release?

7 1

Yes, you don't have to worry as long as you don't boot up windows and let it install the update.

This is not the first time they break dual boots by touching the partitions, but this is the first time they deliberately break it (that I know of).
I always had windows on its own drive because of that. If you don't use windows a lot then I would suggest to do the same. You have to change to windows through bios but it isn't that much more work.

10 1
And just in case when installing windows on its own drive, only have the windows drive mounted so it doesn't write to the linux drive.
1 1

Thanks for the reply, and good to know!

I think I’ll blow away the windows install on this machine completely.

I still have another pc for some audio tools that don’t run under Linux, but this machine is my daily driver now and I couldn’t be happier.

6 1
ochi_chernye lemmy (AP)
FWIW, I'm dual-booting windows and mint atm. Separate drives, but just one EFI partition, and this update hasn't borked things for me.
3 1
I have considered adding windows to grub, but these days I hardly boot into windows so there is probably not much point.
1 1
The boot entries live in firmware yes, efibootmgr can create and remove them. The are pointers to the bootloader. Many systems can boot from the disk itself without the entry, the entry just makes it pretty (“Fedora” instead of NVME1).
Deze entry werd bewerkt (4 weeks ago)
1
I have a morbid curiosity to see that happen.
1
This isn't true if you have a bootloader on each drive, which, I think, is what the we're talking about.
1 1
I'm not exactly sure what you're suggesting. Isn't that more or less what I just said?
1
shekau lemmy (AP)
Classic
2 1
DacoTaco lemmy (AP)

Not saying youre wrong, but you took the wrong project as an example hehe.
Visual code is not open source. Its core is, but visual code isnt.
The difference is what visual code ships with, on top of its core.
Its like saying chrome == chromium ( it isnt ).

Visual code comes with a lot of features, addins and other stuff that isnt in the core.
.net debugger for example, is not found in vscodium ( build of the vscode core ). And there is more stuff i cant think of now but have come across.
Source: been using vscodium for a few months instead of vscode

1
nous lemmy (AP)
Sure, my bad. But it does not change my point. They have released stuff as opensource even if not all of it. Which means they can if they want to.
1
DacoTaco lemmy (AP)
I know, hence why i said youre not wrong but the example was wrong 😛
Also, its more complex than that. Some teams can, some cant. And if they can it all depends on what project or context. The business world isnt that cut and dry hehe
1
NaN lemmy (AP)

Somewhat. One, a system can be bootable without the entries, so even if windows does the stupid and deletes them it isn’t the end of the world. It does depend on your specific firmware though.

Also two, you can write them again with a single line in efibootmgr.

This is very different than the old world where windows would delete your bootloader entirely. They live in the efi system partition instead - or at least the shim does- and typically every OS leaves the other ones alone (even Windows, except in this case).

Deze entry werd bewerkt (3 weeks ago)
1 1

Deze website gebruikt cookies. Door het gebruik van deze website ga je akkoord met het gebruik van deze cookies.