this post was submitted on 22 Aug 2024
537 points (98.6% liked)

Linux

48372 readers
1837 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] CeeBee_Eh 10 points 3 months ago (3 children)

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.

[–] [email protected] 5 points 3 months ago (1 children)

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

[–] CeeBee_Eh 2 points 3 months ago

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.

[–] [email protected] 5 points 3 months ago (2 children)

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.

[–] CeeBee_Eh 2 points 3 months ago

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.

[–] [email protected] 2 points 3 months ago

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?

[–] [email protected] 2 points 3 months ago

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.