Welcome to Incremental Social! Learn more about this project here!
Check out lemmyverse to find more communities to join from here!

interdimensionalmeme ,

Just use rEFInd to easily overcome bootloader coups

BCsven , (edited )
  • install windows
  • adjust main partition so you have space for Linux
  • install linux, during install create anither efi partition, and root partition.
  • linux probes foreign OS (some distros might not) and creates a chainloader entry from your new EFI to Windows EFI
  • set BIOS to boot from linux EFI

Windows never knows the other partition exists and leaves it intact.

meliodas_101 ,

Could you give me more detail for step 3?

jose1324 ,

Don't even have to do that. Install windows first, then install Linux with refind bootloader on preferably a separate disk. Done

BCsven , (edited )

You do need a separate EFI, even though linux finds EFI, otherwise windows update trashes it randomly and why the meme we see here exists, with separate EFI windows doesn't know about it. You can shutdown windows mid update and boot linux, then reboot back to windows and update will continue. Siloed System

jose1324 ,

That's literally what I did yesterday with my method. It works, Windows has never trashed it

BCsven , (edited )

It will, thats why that meme exists.

Not during typically reboots, but when some windows update or autofile repair happens it thinks it is the only OS on that partition and does what it likes.

jose1324 ,

Nope, ran it like this for over 5 years. Definitely rebooted during updates / did some crap

BCsven ,

Then you have been lucky, because most peoples experience with grub EFI on Windows partition is windows will eventually scrub it.

jose1324 ,

I'm not using Grub

BCsven ,

Makes no difference of what bootloader, just that windows thimks it owns that partition

meliodas_100 ,

Did exactly that.

meliodas_101 ,

I installed arch so that didn't happen.

jose1324 ,

Not how it works

BCsven ,

Yes. When you install Linux it will auto detect the Windows EFI partition and put boot stuff there by default, but then windows comes along and will randomly trash that setup. So during install don't go with the suggested option, instead use the partitioning tool to creat another small EFI boot partition elswhere on disk, leaving Windows EFI and OS paetitions as is. Also create your root and home partition(s).
Install to those partitions, then Linux should prompt for Probe Foreign OS and add a chainloader entry to your grub menu. This entry, when selected, points grub to windows EFI partition ID and hands off the boot process to Windows. Windows is unaware it has been chainloaded.
As long as you set BIOS to load directly from the LINUX EFI entry then you will boot to Grub with Linux/Windows Dual option...But technically it is not a true Dual Boot, it is a sequential boot I guess.
I have had this for 7 years on same install and boot between W10 and Linux daily. Windows has never touched my Linux EFI.

meliodas_100 ,

How to add chainloader entry to grub?

BCsven , (edited )

For something like OpenSUSE you go into YAST2-GUI and click the probe foreign OS and then it asks you if you want Windows or Linux as the default boot. But to do it manually you add a menu entry to /boot/grub2/custom.cfg. or in /etc/grub.d/40_custom. After editing this you will have to run grub2-mkconfig -o /boot/grub2/grub.cfg which will compile all the grub info into /etc/grub2/grub.cfg
I believe the custom.cfg entries end up after the 40_custom entries that the OS may have included.
There is a persistent method entry if you did want to edit the /etc/grub2/grub.cfg directly, but probably not advised.

Here is my entry for Windows boot partition and location of MS boot. Also below that is a UEFI entry for geting back to the BIOS, not relevent to this topic, but just so you see how the menu entries are defined. In my system these are at the end of all the other Linux entries.

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows Boot Manager (on /dev/nvme0n1p2)' --class windows --class os $menuentry_id_option 'osprober-efi-4E48-193F' {
	insmod part_gpt
	insmod fat
	search --no-floppy --fs-uuid --set=root 4E48-193F
	chainloader /efi/Microsoft/Boot/bootmgfw.efi
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
	fwsetup
}
BCsven ,

I responded how to via another comment, but wanted to mention that you may have a chainload to Windows already with your dual boot, but the main point was using two EFI partitions and chainloading to the other one, so Windows isn't ever in charge of files in your linux boot partition

KoalaUnknown ,

[Thread, post or comment was deleted by the author]

  • Loading...
  • rdri ,

    Every panel would be the same for you regardless of the brand of your laptop, no?

    OsrsNeedsF2P ,

    MacOS updates* have never broke my Asahi

    *May have to do with the fact I haven't booted into MacOS since installing Asahi

    nolight ,

    They actually did for some people a couple of months ago.

    KoalaUnknown ,

    [Thread, post or comment was deleted by the author]

  • Loading...
  • rdri ,

    I assume since we're talking about Linux bootloader you aren't running macos, but Linux.

    brucethemoose ,

    For me its the opposite, Linux always boots fine but occasionally a linux system update will break the Windows boot option in systemd-boot

    KillingTimeItself ,

    i need to remove my windows boot drive from my workstation, but it lives in a rack. And has a temperament. Sometimes when losing power shit just refuses to boot for like an hour, eventually it randomly boots. Still unsure why. Could be anything really. Best guess is bad cmos battery though. Could be slightly bunged bios, could be marginally fucky cpu. Who knows. It's fine when shutdown with power for long periods of time though.

    Gotta love modern hardware, if only 7 segment displays weren't a 300 dollar privilege.

    sunred ,
    @sunred@discuss.tchncs.de avatar

    For the rare occasion that I need Windows bare metal, I have a Windows 11 installation on a usb ssd originally installed via the Rufus Windows-To-Go option that I can just plug into the system and boot off it whenever I need it without it touching my uefi menu or partition on my internal drives. This way I can also use it on another machine if that need arises. Windows can even trim the usb drive it's running on. It pretty much works as if installed internally.

    Jordan_U ,

    It's at least gotten a bit better.

    There was a time when Photoshop and other programs used a copy-protection scheme that overwrote parts of grub, causing the user not to be able to boot Linux or Windows.

    They knew about it, and just DGAF. I don't remember their exact FAQ response, but it was something along the lines of "Photoshop is incompatible with GRUB. Don't dual boot if you use Photoshop."

    Grub still has code for BIOS based installs that uses reed-solomon error correction at boot time to allow grub to continue to function even if parts of its core.img were clobbered by shitty copy protection schemes for Windows software.

    potentiallynotfelix ,
    @potentiallynotfelix@iusearchlinux.fyi avatar

    Don't use windows

    FractalsInfinite ,

    Unfortunately, Linux can't run everything *yet. What do you propose people do instead when they can't access the apps they need to play with friends or work?

    nolight ,

    Embrace freedom, change the habits, eat the rich!! /s

    PolarisFx ,
    @PolarisFx@lemmy.dbzer0.com avatar

    VM, I run Virtualbox in full screen on a second monitor for my work stuff. Works great.

    potentiallynotfelix ,
    @potentiallynotfelix@iusearchlinux.fyi avatar

    Vms work fine for WINDOWS ONLY apps, along with with

    RoyaltyInTraining ,
    @RoyaltyInTraining@lemmy.world avatar

    I gotta give dual booting a shot. I need windows for my college's crappy exam software, but I also can't afford another laptop just for Linux

    HeyLow ,

    I just use a VM for windows apps that don't work through wine

    mschwennesen ,

    I haven't had to use any exam software recently, but in the past when I did I remember reading that it can detect when the host is virtual and will not run in a VM. Fortunately at the time I still had a windows laptop lying around, but I'd have a real problem if one of a courses now tried to do this.

    captainlezbian ,

    It’s worth it lol, though watch out you may find yourself dreading opening windows

    TacoNot ,

    I have power switches for my drives. If I want to boot into windows, I turn that one on and the others off.

    ITGuyLevi ,

    That's a really awesome idea. If I ever need an actual Windows install I'm totally going that route!

    Hadriscus ,

    how do you do that ? physical switches ? do you buy them separately and solder them ? where ?

    TacoNot ,
    Hadriscus ,

    Neat, had no idea this existed. Thanks !

    UnculturedSwine ,

    If I dual boot windows, I tend to disconnect my Linux drive any time I do anything on the Windows side. Even installing Windows fresh using default settings, it managed to completely erase my Linux disk to put the Windows bootloader on it even though I selected a completely different disk for the Windows OS. Won't be making that mistake again. And by mistake I mean dual booting Windows. That pile of spaghetti code gets a VM.

    ITGuyLevi ,

    ... on a proxmox host in another room.

    KillingTimeItself ,

    windows installing its bootloader on a completely separate drive is such a weird and fucking idiotic issue for it to have.

    ElderWendigo ,
    @ElderWendigo@sh.itjust.works avatar

    I got used to windows overwriting the MBR and could generally work around that. But the last time I tried windows/Linux dual boot, it was windows that got caught in a recovery loop after a windows update. Linux was fine. I was impressed at how thoroughly Windows had killed itself on a basic unmolested install. At that point I decided I was done with windows on bare metal unless it was the only thing running. Windows goes in the virtual sandbox or plays by itself.

    x0x7 ,

    This is why you don't duel boot. If Windows can't play nice with others it doesn't get to exist at all. Proton+Steam means there is never a reason to run windows at all. "But I need some non-game windows applications." K. Proton is able to reliably run games in a library of tens of thousands of games with all kinds of bad programming and obscure hardware use. It's a standard for being able to run windows apps in linux that is going to cover any other application you have.

    MyNamesNotRobert ,

    If a game doesn't work on proton it's not worth playing for me.

    aidan ,

    Some people are sadly addicted to games with invasive anticheats

    Astongt615 ,

    I have really been struggling to get proton to work in OpenSUSE, despite ProtonDB having only positive experience with the games I've attenpted. Running Tumbleweed X11 KDE with an 30 series Nvidia GPU. And in trying to fix them I seem to have broken my display drivers altogether. Plenty of system restarts, but all this happened without going into windows for a month. And that's why I dual boot 😢

    CubitOom ,

    I haven't run tumbleweed in a while, but I did have a similar issue on arch with X11 kde.

    In the Nvidia settings, ensure that both Force Composition Pipeline and Force Full Composition Pipeline are disabled (unchecked) otherwise some games launched from steam using proton 8 or newer freezes on focus.

    Obviously you'd have to fix your display drivers first. Maybe a reinstall is the quickest solution there.

    Astongt615 ,

    Yeah, trying a Snapper restore since I'm out of things I know to look at, but that appears to be the next step. Thanks for the info on the Nvidia settings, is that in some config file?

    CubitOom ,

    You could save it to a config file and then load that before starting X

    ArmokGoB ,

    What if I want to play Destiny 2?

    baseless_discourse ,

    THEN YOU ARE WRONG! /jk

    Hexarei ,
    @Hexarei@programming.dev avatar

    Get one of those windows handhelds and pretend it's a desktop

    maxwellfire ,

    There's definitely software that uses parts of the windows API that games don't touch. And doesn't work properly on Wine. I keep a windows install around just for using an analysis software for some lab equipment that refuses to start in wine.

    Things like CAD software are also a struggle, though the latest wine seems to have resolved a number of graphics issues with getting PTC Creo to properly use the nvapi and nvidia graphics drivers through wine.

    While wine is amazing, plenty of things don't work with it. Usually you don't need them, but if you do, you do

    miss_brainfarts , (edited )

    Even if it worked, I wouldn't want Adobe clogging up my Linux system with all their BS just to run Photoshop.

    That shit gets a dedicated system on a dedicated drive.

    therealjcdenton ,
    @therealjcdenton@lemmy.zip avatar

    Bad post, contains anime

    ipkpjersi ,

    I think you mean good post. Linux + Anime + Programming = GG.

    cizra ,

    I'm using EFISTUB instead of a boot loader (on the PC running Arch, anyway) and Windows hasn't figured out how to break that, yet.

    Somehow it hasn't figured out how to ruin my systemd-boot bootloader on EFI, (NixOS, this time) either. Perhaps it just has better support for EFI than BIOS?

    Zuberi ,

    I have yet to have this happen to me lol.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • linuxmemes@lemmy.world
  • random
  • incremental_games
  • meta
  • All magazines