A symptom of linux past traumas

3 years ago by BastingChemina to c/linux

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.

kadu 32 points 3 years ago

When I dual boot Linux and Windows, I like to have two separate drives and not ever mix up the bootloaders. I then use my motherboards boot selector to choose which one, and I leave the main OS as the first priority one.

Works perfectly, avoids Windows overwriting Linux and avoids GRUB breaking for the 11th time this month because it's a terrible piece of software. The only downside is it takes 10 seconds longer, because whenever I want to change I need to wait for my motherboard to recognize the boot selection key.

path: 0 5452159, hotness: undefined, score: 32, children: 6
NeoNachtwaechter 8 points 3 years ago

When I need both Linux and Windows, I like to have at least one of them locked up in a VM so that they can never even sniff each other :-)

path: 0 5452159 5452959, hotness: undefined, score: 8, children: 4
Gork 2 points 3 years ago

Out of curiosity, do you VM the Windows or the Linux? I know Windows really doesn't play well with bootloaders.

path: 0 5452159 5452959 5453176, hotness: undefined, score: 2, children: 3
NeoNachtwaechter 4 points 3 years ago

Whatever is needed.

My preference is Linux as the base system, then several VM's with both Linuxes and Windoses inside. Proxmox on the base system makes it easy.

path: 0 5452159 5452959 5453176 5453339, hotness: undefined, score: 4, children: 0
BastingChemina 2 points 3 years ago

I tried via a VM but CAD applications need a GPU and doing a GPU pass through with a nvidia card on my laptop was too much for me.

path: 0 5452159 5452959 5453176 5460423, hotness: undefined, score: 2, children: 1
disheveledWallaby 1 point 3 years ago

I totally get it but KVM/qumu is really awesome. Well worth the setup time IMHO.

path: 0 5452159 5452959 5453176 5460423 5468769, hotness: undefined, score: 1, children: 0
BCsven 1 point 3 years ago

I have never had grub break on OpenSUSE in 6+ years. But also i install OpenSUSE after Windows and with its own boot partition. it finds windows and adds a chainloader grub entry. Set OpenSUSE as default in bios. Windows never knows it is chainloaded and leaves your linux boot alone

path: 0 5452159 5489980, hotness: undefined, score: 1, children: 0
30021190 21 points 3 years ago

Most distros will run the grab is prober and add the additional entries.

path: 0 5451840, hotness: undefined, score: 21, children: 10
andrew 25 points 3 years ago

Pretty sure you meant "grub os prober" and got auto corrected for anyone confused.

path: 0 5451840 5452514, hotness: undefined, score: 25, children: 6
Helix 10 points 3 years ago

Grab-ass prober, myummy

path: 0 5451840 5452514 5465838, hotness: undefined, score: 10, children: 4
zzx 5 points 3 years ago

Grub ass

path: 0 5451840 5452514 5465838 5478563, hotness: undefined, score: 5, children: 3
Helix 3 points 3 years ago

No u

path: 0 5451840 5452514 5465838 5478563 5527661, hotness: undefined, score: 3, children: 0
rostby 2 points 3 years ago

My little grub

path: 0 5451840 5452514 5465838 5478563 5495658, hotness: undefined, score: 2, children: 1
30021190 3 points 3 years ago

Yes 🤣🤣

path: 0 5451840 5452514 5484580, hotness: undefined, score: 3, children: 0
PainInTheAES 7 points 3 years ago

Yeah but they're using systemd-boot which probably just looks up the EFI partition. Also, most distros probably run os-prober only after kernel updates or manually.

path: 0 5451840 5451969, hotness: undefined, score: 7, children: 2
mvirts 2 points 3 years ago

Nixos runs it on every rebuild

path: 0 5451840 5451969 5454142, hotness: undefined, score: 2, children: 1
PainInTheAES 2 points 3 years ago

Ah, yeah, that makes sense.

path: 0 5451840 5451969 5454142 5459714, hotness: undefined, score: 2, children: 0
jbrains 17 points 3 years ago

This reminds me of my first week running Mac OS and searching increasingly frantically for an uninstall script for an application I'd installed.

Oh.

Drag to trash. Really? OK.

path: 0 5458238, hotness: undefined, score: 17, children: 0
llothar 16 points 3 years ago

If you have a choice - use Onshape. Fully featured CAD system, on par with SolidWorks and such, works perfectly on Linux out of the box.

path: 0 5460422, hotness: undefined, score: 16, children: 4
BastingChemina 5 points 3 years ago

I will try it.

It's more expensive than Fusion360 but if its working well I might be interested.

path: 0 5460422 5473266, hotness: undefined, score: 5, children: 2
captain_aggravated 3 points 3 years ago

I've seen Fusion360 in the Snap store.

path: 0 5460422 5473266 5481175, hotness: undefined, score: 3, children: 0
llothar 2 points 3 years ago

There is a free tier with limitation that your designs are open for others to see. Not ideal, but perfectly fine for tinkering.

path: 0 5460422 5473266 5478349, hotness: undefined, score: 2, children: 0
uis 3 points 3 years ago

FreeCAD

path: 0 5460422 5498723, hotness: undefined, score: 3, children: 0
Dups 11 points 3 years ago

My condolences

path: 0 5451664, hotness: undefined, score: 11, children: 0
const_void 9 points 3 years ago

I want to like nixos but the documentation is trash.

path: 0 5454414, hotness: undefined, score: 9, children: 2
lily33 4 points 3 years ago

Indeed, the best way to learn how to do something that doesn't have a good writeup somewhere, is to search GitHub for nix code.

path: 0 5454414 5455662, hotness: undefined, score: 4, children: 0
Spore 3 points 3 years ago

Yeah, I literally learnt how nix works through guix documentations.

path: 0 5454414 5456176, hotness: undefined, score: 3, children: 0
gunpachi 9 points 3 years ago

Assuming that you are dualbooting from a single storage device - If you have some money to spare go and buy a second ssd. Keeping both OSes in separate storage devices will result in far lesser chances of screwing up.

path: 0 5454582, hotness: undefined, score: 9, children: 3
Holzkohlen 3 points 3 years ago

Though take heed for windows will always find a way to mess up your bootloader.

path: 0 5454582 5456467, hotness: undefined, score: 3, children: 1
BCsven 1 point 3 years ago

install linux After Windows and with its own boot partition. if it has foreign OS probe it finds windows and adds a chainloader grub entry. Set linux as default in bios. Windows never knows it is chainloaded and leaves your linux boot alone

path: 0 5454582 5456467 5490145, hotness: undefined, score: 1, children: 0
BastingChemina 0 points 3 years ago

This is what I did, I prepared a partition for windows on the second ssd and it went OK.

The only issue was that I needed to manually add drivers on the windows usb for it to be able to recognized my ssd. It was a bit of a pain to find this information online

path: 0 5454582 5461154, hotness: undefined, score: 0, children: 0
PlasticExistence 8 points 3 years ago

I always get a Clonezilla image made before I do any major changes, which I find takes the anxiety out of situations like this.

path: 0 5451708, hotness: undefined, score: 8, children: 2
Bitrot 2 points 3 years ago

Make sure you test out those images every so often too. I recently got a new computer and used clonezilla to copy a system over, only to find btrfs restores fail spectacularly without warning until you boot into them.

path: 0 5451708 5454252, hotness: undefined, score: 2, children: 1
PlasticExistence 1 point 3 years ago

Exactly. A backup isn't safe until it's tested.

I've been avoiding btrfs for reasons like that.

path: 0 5451708 5454252 5454439, hotness: undefined, score: 1, children: 0
0x0 4 points 3 years ago

Why not installing windows in a vm?

path: 0 5453891, hotness: undefined, score: 4, children: 4
rambos 3 points 3 years ago

Not OP, but didnt work for me. I dont know how to passtrough gpu (or not possible with single gpu?) and performance is so bad its unusable

path: 0 5453891 5456754, hotness: undefined, score: 3, children: 3
Crozekiel 1 point 3 years ago

I'm curious about this as well, have had trouble getting it to work well and wondering if I need a second gpu to pass through... But if that's the case, what does it do for cpu? Pass through some of the cores? Same with ram?

Honestly I've just been having better luck running things via proton... Got fusion 360 running fine in bottles with proton ge.

path: 0 5453891 5456754 5458978, hotness: undefined, score: 1, children: 1
hubobes 2 points 3 years ago

Yes and yes, theoretically you can somehow get single GPU passtrough working but it was never a clean solution for me. CPU and RAM must be shared though.

I am running a 4070 Ti and a 4060 Ti (for the VM trough Looking Glass) and a 5800X3D of which 6 cores and 24GB of RAM go to the VM. Allows me to play any modern AAA game at 1440p perfectly fine. And since there are 2 GPUs I can still use Gnome and run programs like Discord on Linux. But I only use the VM if wine/proton can’t run it.

path: 0 5453891 5456754 5458978 5509625, hotness: undefined, score: 2, children: 0
BastingChemina 1 point 3 years ago

Yeah this was my issue too.

path: 0 5453891 5456754 5461216, hotness: undefined, score: 1, children: 0
Atemu 4 points 3 years ago

systemd-boot discovers windows automatically, no need for configuration.

path: 0 5452799, hotness: undefined, score: 4, children: 0
spark947 3 points 3 years ago

FreeCAD is a lot more okay than people give it credit for. Perhaps I just remember back to the early days when it was basically unusable.

path: 0 5457124, hotness: undefined, score: 3, children: 3
BeardedGingerWonder 3 points 3 years ago

It kind of is, but also kind of isn't. Don't get me wrong I love FreeCAD to bits and it's basically the only CAD program I use these days, but also the recommended workflow is not how any other CAD program works and is a crutch for the topo naming problem. Hopefully it's a whole other world once topo naming is sorted.

path: 0 5457124 5459129, hotness: undefined, score: 3, children: 1
spark947 1 point 3 years ago

Yeah, it definitely still has a long way to go. I remember back in 2012 it felt impossible to even do basic 3d modeling, but that was more than 10 years ago.

path: 0 5457124 5459129 5467853, hotness: undefined, score: 1, children: 0
BastingChemina 1 point 3 years ago

I really want FreeCAD to work so I can get away from paying Autodesk for Fusion360.

My impression on FreeCAD is that I could probably get the result I want but I would spend most of my time fighting the software. I can't justify to spend 3 time longer on FreeCAD than Fusion360

path: 0 5457124 5473206, hotness: undefined, score: 1, children: 0
penquin 3 points 3 years ago
path: 0 5452692, hotness: undefined, score: 3, children: 2
ares35 2 points 3 years ago

keep doing what you're doing; if you need to get whatever runs in windows out of a vm and on 'bare metal'--get a separate system for that and network the two to share files, if needed.

path: 0 5452692 5452899, hotness: undefined, score: 2, children: 1
penquin 2 points 3 years ago
path: 0 5452692 5452899 5455635, hotness: undefined, score: 2, children: 0
Dr_Willis 3 points 3 years ago

two little tips:

you can backup your EFI partitions, in case you mess them up. I find it a good idea to back them up in any case, I have had EFI partitions get Filesystem corruption.

also the tool rEFInd can work as an alternative boot menu it has the ability to scan the entire system and show all found Bootable OS at boot time.

So with rEFInd, you install it, set it as the default, and it should show windows automatically.

it looks nicer than systemd-boot and grub as well. And it can even show bootable USB flash drives, and has a few other features.

path: 0 5452993, hotness: undefined, score: 3, children: 0
PainInTheAES 2 points 3 years ago

Yeah this isn't really much of an issue with EFI now. You can change boot order in the BIOS and things are way less likely to get overwritten or broken. You can even have 2 EFI partitions if it's something your concerned about.

path: 0 5452055, hotness: undefined, score: 2, children: 1
kuadhual 1 point 3 years ago

The only time I got my grub overwritten was when I have to update bios/firmware from Windows. After bios/firmware update, the update app always restore windows boot manager and I need to reinstall grub from live environment.

path: 0 5452055 5452887, hotness: undefined, score: 1, children: 0
r00ty 1 point 3 years 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.

path: 0 5454140, hotness: undefined, score: 1, children: 2
joeldebruijn 1 point 3 years 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

path: 0 5454140 5480887, hotness: undefined, score: 1, children: 1
r00ty 2 points 3 years 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.

path: 0 5454140 5480887 5486758, hotness: undefined, score: 2, children: 0
linux
linux

@lemmy.ml

login for more options
68145
9471
5816

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

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

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

go to feed...