this post was submitted on 27 Sep 2023
1413 points (95.9% liked)

linuxmemes

26221 readers
1732 users here now

Hint: :q!


Sister communities:


Community rules (click to expand)

1. Follow the site-wide rules

2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack users for any reason. This includes using blanket terms, like "every user of thing".
  • Don't get baited into back-and-forth insults. We are not animals.
  • Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
  • 3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn, no politics, no trolling or ragebaiting.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, <loves/tolerates/hates> systemd, and wants to interject for a moment. You can stop now.
  • 5. πŸ‡¬πŸ‡§ Language/язык/Sprache
  • This is primarily an English-speaking community. πŸ‡¬πŸ‡§πŸ‡¦πŸ‡ΊπŸ‡ΊπŸ‡Έ
  • Comments written in other languages are allowed.
  • The substance of a post should be comprehensible for people who only speak English.
  • Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
  • 6. (NEW!) Regarding public figuresWe all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations.
  • Keep discussions polite and free of disparagement.
  • We are never in possession of all of the facts. Defamatory comments will not be tolerated.
  • Discussions that get too heated will be locked and offending comments removed.
  • Β 

    Please report posts and comments that break these rules!


    Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't remove France.

    founded 2 years ago
    MODERATORS
     
    top 50 comments
    sorted by: hot top controversial new old
    [–] Blaster_M@lemmy.world 104 points 2 years ago* (last edited 2 years ago) (4 children)

    What's actually happening here is Windows is setting its bootloader first in your EFI when it gets updated. Linux isn't gone, you just have to press the "boot another drive" button and boot to it, or go into your EFI setup and switch the bootloader back to the Linux one.

    Linuxes do the same thing when updating their bootloader.

    Note for the Ackshually crowd: If you're still booting MBR (which comes with the partition eating risk on dual boots) you have a system that is older than Windows 8 - 11+ years old, so eating the MBR is something you'll have to deal with unconventionally, as all modern systems, OS, and hardware expect you to be using EFI.

    [–] d3Xt3r@lemmy.world 16 points 2 years ago* (last edited 2 years ago) (2 children)

    In my experience (W11 + Fedora on UEFI Thinkpad), I've seen it actually get rid of the Fedora entry from the UEFI boot list. Reinstalling GRUB from chroot didn't fix it, so I used EasyUEFI and manually added the Fedora EFI file to the boot list and that worked.

    So it wasn't simply changing the boot order, it actually nuked Fedora from the UEFI boot list.

    load more comments (2 replies)
    [–] Anticorp@lemmy.ml 10 points 2 years ago

    It sometimes destroys the Linux boot sector too. But it's simple enough to chroot with a live usb and repair it. I don't even have both OS as an option. Mine boots straight into Linux unless I interrupt it and use the boot another drive option. Linux and Windows have their own separate boot sectors, but Windows will fubar the Linux sector randomly.

    load more comments (2 replies)
    [–] VinesNFluff@pawb.social 46 points 2 years ago (10 children)

    Never happened to me. Like ever. And I've been on Linux (with occasional dual-booting whenever I'm in a position where I need windows--) for like 15 years now?

    To be honest a lot of stuff people talk about seems to not happen to me and I think I might be exceedingly lucky or smth.

    [–] menemen@lemmy.world 21 points 2 years ago* (last edited 2 years ago) (1 children)

    My guess: the windows update fucked up Grub. Happened to me once or twice in 20 years of dual booting. It is also easily recoverable.

    [–] VinesNFluff@pawb.social 8 points 2 years ago

    I do remember like, back in the day, having a LiveDVD around that had all sorts of 'recovery tools', among them one that was a one-click "grub is breaked, pls fix" thing.

    Only had to use it once or twice though.

    [–] MTK@lemmy.world 13 points 2 years ago (2 children)

    It tends to happen if you are not using the windows bootloader (GRUB for example) but if you use the windows bootloader it should be fine

    [–] themusicman@lemmy.world 13 points 2 years ago

    Oh it just changes the bootloader? That's not a big deal. Easy to fix from any live usb.

    Also, for any distro hoppers out there... Do yourself a favour and put Ventoy on a USB. You can thank me later

    [–] Eufalconimorph@discuss.tchncs.de 9 points 2 years ago (7 children)

    With EFI systems this doesn't matter. It was an issue with the legacy BIOS bootloader systems about a decade ago though.

    load more comments (7 replies)
    [–] BurnedDonutHole@lemmy.ml 7 points 2 years ago (5 children)

    Same. Never happened to me either. But I usually make a sperate UEFI partition for Linux instead of relying on grub.

    load more comments (5 replies)
    load more comments (7 replies)
    [–] mellejwz@lemmy.world 29 points 2 years ago (3 children)

    Windows only updates the bootloader, it doesn't touch Linux partitions. After an update you just have to fix the bootloader again which isn't too hard if you know how it works.

    [–] pjhenry1216@kbin.social 18 points 2 years ago (2 children)

    I'd argue one shouldn't even be messing with dual booting if they don't understand much about the bootloader.

    [–] filcuk@lemmy.zip 15 points 2 years ago (1 children)

    My counterpoint would be how does one best learn about anything if not by messing with it

    load more comments (1 replies)
    load more comments (1 replies)
    load more comments (2 replies)
    [–] venia_sil@fedia.io 25 points 2 years ago (2 children)

    Protip:

    Just don't have a live Windows partition.

    load more comments (2 replies)
    [–] user224@lemmy.sdf.org 24 points 2 years ago* (last edited 2 years ago) (2 children)

    In my case it wasn't the boot entry being removed. It actually ate the partition. When installing Linux Mint, I resized the Windows partition in Linux. Then I noticed that Windows absolutely didn't recognize that change, and thought its partition is still as big as it used to. Then on a restart it hit me with the "Repairing drive C:" which killed the Linux partition leaving just something corrupted.
    "Repairing"

    [–] Martineski@lemmy.dbzer0.com 21 points 2 years ago (1 children)

    Windows: "Let me repair Linux for you"

    [–] Tangent5280@lemmy.world 9 points 2 years ago

    Ew, you've got a linux on your windshield, lemme just hit the wipers for you real quick

    [–] FlyingPiisami@sopuli.xyz 7 points 2 years ago (1 children)

    Have you tried first resizing the windows partition inside windows? That's what I did and my dual boot has stayed intact

    load more comments (1 replies)
    [–] Reygle@lemmy.world 22 points 2 years ago (8 children)

    If you still "dual boot", be advised that Windows is a piece of shit and will almost always cause this with a "build" update. Highly, highly recommend having Linux and Windows (shame on you) on separate physical drives.

    load more comments (8 replies)
    [–] robert@lemm.ee 19 points 2 years ago (1 children)

    Just protect bios/uefi with password and windows won't be able to modify any other EFI entry. It worked when i've dual-booted, it should still work.

    [–] Yerbouti@lemmy.ml 6 points 2 years ago (2 children)

    How can I do that? I'm dual booting but was not aware of this, makes me a little nervous....

    load more comments (2 replies)
    [–] Matriks404@lemmy.world 18 points 2 years ago* (last edited 2 years ago) (16 children)

    What about stop making bullshit posts? Windows have never did that to me, and there's no reason why would it touch any partition aside from its own and (if it exists) the Windows boot one.

    That said, It MIGHT replace MBR boot record but I don't know if that's very likely these days. I remember upgrading from Windows 8 to 10 and Windows left my MBR alone, and I was able to boot to GRUB just fine.

    [–] Ricaz@lemmy.ml 12 points 2 years ago* (last edited 2 years ago)

    If you install Linux first and then Windows on the same drive, it will fuck up your bootloader.

    You can easily make Grub boot Windows, so just overwrite whatever fuckup Windows made, or install Windows first.

    It won't happen with a simple update, though, that's for sure. Maybe if you're upgrading Windows to a new major release.

    load more comments (15 replies)
    [–] Transcriptionist@lemmy.world 16 points 2 years ago

    Image Transcription:

    White text on a black background reading

    'Me: *Dual booting windows and linux.

    'Windows: *Updates itself.

    'Me: Where is the linux partition?

    'Windows:'

    Below the text is the Daenerys Targaryen Squint meme showing Daenerys Targaryen from Game of Thrones squint smiling. Over the image is the text '"dunno!"'

    [I am a human, if I’ve made a mistake please let me know. Please consider providing alt-text for ease of use. Thank you. πŸ’œ We have a community! If you wish for us to transcribe something, want to help improve ease of use here on Lemmy, or just want to hang out with us, join us at !lemmy_scribes@lemmy.world!]

    [–] knorke3@lemm.ee 13 points 2 years ago (1 children)

    to be fair, it actually doesn't know - windows doesn't do ext4...

    [–] x0chi@lemmy.world 21 points 2 years ago

    But it knows there's a partition there and it's easy to know it's a Linux partition type. Microsoft just prefer to say it doesn't know the partition type and simply say it ignores it. You don't need to have support for a file system in order to check it's partition type. It's just ms bs

    [–] JareeZy@feddit.de 12 points 2 years ago (2 children)

    What? Windows kills other partitions during update?

    [–] Ooops@kbin.social 7 points 2 years ago* (last edited 2 years ago) (1 children)

    Windows likes to mess with the EFI partition on updates, scrweing up bootloaders. That you can prevent by separate EFI partition on another disk, This way Windows doesn't see the other efi files to boot. But when it feesl really obnoxious, it also edits your EFI table and sets itself as the default. That doesn't actually damage your linux boot files, but you still need to log back with some bootstick and revert the change, to make your bootloader/menu the default again.

    That's the reason people often switch to Windows only as a VM (there are even solution to passthrough a dedicated graphics card just for Windows, if that's for gaming) after some time. Because Windows is actively working against other OS's on your computer.

    In a way their Secure Boot bullshit is nothing different. Get vendors to include MS keys by default, then pretend that Windows is somehow more secure because you need to deactivate Secure Boot to install soemthing else (who cares that one key on every machine is not exactly secure, even more so as MS keys were already found in the wild in malware so they don't even know how to not lose them...)

    load more comments (1 replies)
    [–] Cihta@lemmy.world 12 points 2 years ago (10 children)

    Whoa.. this really happens? If so that's disgusting and doesn't seem legal. I was about to setup a dual boot for my laptop which has proprietary windows only software I need for work but now I guess i need to research a bit.

    [–] SirQuackTheDuck@lemmy.world 12 points 2 years ago (2 children)

    Whoa.. this really happens?

    No, the only thing that windows might do, is reset the bootloader so it skips grub. If you're using UEFI (which you should), you can easily restore it from your bios.

    I've only seen it happen on big updates, not the smaller ones.

    [–] Barack_Embalmer@lemmy.world 17 points 2 years ago

    As an Ubuntu + Win10 dual booter I had a couple of instances where Windows update destroyed things so irreparably that live Ubuntu boot-repair failed to work, and hours of back-and-forthing error messages to Ubuntu IRC and discord support channels yielded nothing. And I'm too stupid to know any other way of fixing it, so I was SOL. Your milage may vary.

    load more comments (1 replies)
    [–] okamiueru@lemmy.world 12 points 2 years ago* (last edited 2 years ago) (2 children)

    I unplug physicals disks when installing windows. Learned the hard way when windows placed the boot partition on a device it could not detect the filsystem of. It destroyed my RAID disks (a little but my fault, because I messed up the recovery).

    This is what Windows installer saw (going by memory, this was 8 years ago)

    • SSD 500 GB (either it recognised ext4 file system, or this one was unknown)
    • SSD 500 GB (Where I specified to install windows)
    • 4 x HDD 8TB (unknown disks, unknown file system, Windows unaware that this was a RAID-5 software dm-raid)

    What did it to? It created a new partition table and wrote data to a new boot partition it made on one of the 8TB disks, no questions asked.

    So, to the people who answered you that windows installer cannot do this. Maybe they fixed it. But it certainly could, and it cetianly did. I remember very carefully going through the installer because I was concerned about this happening. I thought about unplugging them, but was lazy. Because "it would be insane for windows to write on a disk it cannot identify the file system of".

    Lessons learned:

    • If you plan to install windows on a disk along side Linux, install windows first, if you can. Safest bet is still to:
    • If you cannot, unplug all other disks other than the one windows is intended to be on.

    Edit: I found post on this way back when, but leaving what I wrote as is.

    https://superuser.com/questions/758854/mdadm-win7-install-created-a-boot-partition-on-one-of-my-raid6-drives-how-to-r#1243636

    I had remembered some details wrong. I had unplugged the Linux SSD, and it wad raid 6 not 5, and it was 2TB disks.

    load more comments (2 replies)
    [–] Pyroglyph@lemmy.world 10 points 2 years ago (1 children)

    doesn't seem legal

    I wouldn't agree here. Even if Windows does do this (which I doubt), there's no way to prove it isn't a bug. And there's no way anyone's going to sue Microsoft over a bug. Not only is that a gross overreaction, it's financial suicide.

    If you don't trust Windows, don't use it. Or if you have to, use it on a separate system/drive.

    [–] ziggurat@lemmy.world 7 points 2 years ago

    Don't need proof that it isn't a bug, it's happened to me multiple times since Windows xp, all the way until the last time I tried dual booting with windows 7...

    At that time, I decided if a game doesn't work in Linux, I don't need it. Luckily dxvk and proton came around that time

    I don't care if it's a bug or if it's intentional. Fuck off windows

    load more comments (7 replies)
    [–] merthyr1831@lemmy.world 10 points 2 years ago (1 children)

    Depends on the Distro as some use different boot configs but I had it happen with Pop!OS and did the most logical thing which was wipe my windows partition πŸ€œπŸ€›

    load more comments (1 replies)
    [–] x0chi@lemmy.world 7 points 2 years ago (1 children)

    The good old Microsoft way

    load more comments (1 replies)
    load more comments
    view more: next β€Ί