117
submitted 10 months ago by BastingChemina@slrpnk.net to c/linux@lemmy.ml

So, I had to reinstall windows as a dualboot, because I need some CAD tools for work. It was painful but it's not thebaubject

I'm running nixos with systemd-boot and I installed windows on another drive. I started to research how to add the entry on the boot list so I don't need to go in bios to switch the boot order each time I want to change OS.

Most of the information I find is about grub on nixos but I finally find information on how to add a manual entry. On the Arch wiki I find some information but now I have to blend all that to make it work on my laptop.

It's late and I'm scared to mess up my boot partition so I go to sleep to work instructions on it the next day.

The next day I'm ready to do all that only to realized that there is already the entry for windows is already in the boot menu, it has been added automatically.

So I spent all this time to think about how I while have to adjust my system manually only to realize that nixos already did it automatically for me.

you are viewing a single comment's thread
view the rest of the comments
[-] r00ty@kbin.life 2 points 10 months ago

Yeah, I was about to say when I read the first part. Adding windows manually is quite an old thing. Modern linux setups with grub2 will "find" the EFI loader for windows and add it automatically.

I lost my grub loader when I upgraded hardware recently. But, I just booted into a linux USB, chroot (remembering to mount /boot/efi) and re-run grub install/grub update. That didn't find windows. But, it was fine because I just properly booted into linux and ran grub-update again there, and it found it fine.

[-] joeldebruijn@lemmy.ml 1 points 10 months ago* (last edited 10 months ago)

I have sometimes the other way around: Grub keeps working fine but Win11 update reboots and looses the Bitlocker Key.

Have it on my phone just in case and needed it six times now. Quite tedious to put it in but doable

[-] r00ty@kbin.life 2 points 10 months ago

Hmm, only bios/firmware updates are meant to do that. Some hardware changes will too. I mean, it's what it's there for.

this post was submitted on 20 Nov 2023
117 points (98.3% liked)

Linux

47347 readers
1185 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