this post was submitted on 10 Sep 2023
46 points (94.2% liked)

Linux

48092 readers
899 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
 

Hi all, I'm switching motherboards. No dGPU. Going from an Intel MB to an AMD one. I have my root partition on an nvme and the home one on a 2.5" sata. Do I need to reinstall, or can I just move the drives from the old MB to the new one without a problem? Figured since both Intel and AMD drivers are both baked into the kernel out of the box, wouldn't it just work and I'll only need to remove the Intel stuff? I'm running good ole endeavourOS with KDE Plasma if that makes any difference. Any insight is much appreciated

all 31 comments
sorted by: hot top controversial new old
[–] dohpaz42@lemmy.world 42 points 1 year ago (1 children)

Intel and amd are compatible because they are both the same architecture. The only times you would need to reinstall is if the architecture changes; eg, 32-bit to 64-bit or you started using an arm based processor.

[–] penquin@lemm.ee 9 points 1 year ago

Got it. Thank you so much.

[–] d3Xt3r@lemmy.nz 18 points 1 year ago* (last edited 1 year ago) (1 children)

You may potentially need to edit your kernel boot parameters in grub or w/e bootloader you're using, in case you're early-loading any CPU microcode. For instance, if you're loading your Intel microcode via GRUB, you may need to run grub-mkconfig from a chroot (or your old system, if it's still accessible), or edit your grub.cfg and check the initrd parameter. But if you're late-loading microcode then you don't need to worry about it (although late-loading is discouraged and will taint the kernel).

Best to check your distro's documentation on how to update the initrd / microcode.

[–] penquin@lemm.ee 2 points 1 year ago

I have not made any special changes to the kernel parameters. Everything is stock. Only thing I did is hide grub menu from etc/default/grub. That's all.

[–] poVoq@slrpnk.net 18 points 1 year ago (2 children)

No need to change anything, it will just work.

[–] mustardman@discuss.tchncs.de 8 points 1 year ago* (last edited 1 year ago)

Microcode and iGPU drivers.

[–] penquin@lemm.ee 3 points 1 year ago

Thank you🙏

[–] J4g2F@lemmy.ml 10 points 1 year ago (1 children)

I upgraded my girlfriends PC grom a i7-4770 too a Ryzen 2600 and just moved the drive without any problems.

I don't needed to update or change anything. Only needed to select the drive in the bios.

[–] penquin@lemm.ee 3 points 1 year ago

That's reassuring, thank you!

[–] potpie@beehaw.org 8 points 1 year ago (1 children)

Sure there are edge cases and whatnot, but just go ahead and move the drive over. If it doesn't work I'll buy you a beer.

[–] penquin@lemm.ee 2 points 1 year ago

❤️ 🍻

[–] circuitfarmer@lemmy.sdf.org 8 points 1 year ago

I just did this a couple weeks back. Absolutely no issues of any kind.

[–] trompete@hexbear.net 7 points 1 year ago* (last edited 1 year ago) (2 children)

Should just work. No need to reinstall. You are correct in thinking that all the drivers are included, and furthermore, the drivers on Linux are typically loaded automatically when the hardware is detected on every boot, and this is not configured anywhere in a file or anything like that.

Usually, anyway. In theory it's possible that you manually (or some tool) hardcoded drivers somewhere, like in xorg.conf, but I'm willing to bet that isn't the case.

[–] penquin@lemm.ee 2 points 1 year ago

Awesome, thank you so much.

[–] atlasraven31@lemm.ee 1 points 1 year ago (2 children)

Tanget: Is it possible to skip this detection step for a faster boot?

[–] redcalcium@lemmy.institute 2 points 1 year ago

I think you can regenerate your initramfs image to only include your currently loaded modules instead of all modules, which should speed things up a bit.

https://elundivided.wordpress.com/2020/01/23/faster-boot-with-trimmed-initramfs/

[–] trompete@hexbear.net 2 points 1 year ago

No... Not in practice anyway, maybe in theory. I know on ARM SoCs there's lack of auto-configuration (like you have on PCs with e.g. PCI), and the kernel has no way of knowing what hardware is available. So there's a file that lists all the devices, and how to talk to them, called (I think) a "device tree". This file gets appended to the kernel image, and so the bootloader just loads that together with the kernel. The kernel doesn't do any auto-configuration and rather just reads this file and loads the relevant drivers based on that. I guess it might be (in theory) possible to do this on PC, but I've never heard of such a thing. I also don't expect that to make any noticeable difference for boot times. Pretty sure boot times are dominated by user space, and not the kernel anyway.

Sidenote (don't do this): You can compile your own kernel (this used to be pretty common back in the day). You can select only the drivers you need, and can also select whether they should be compiled directly into the kernel or as modules that can be loaded later if needed. Pretty sure the auto-detection happens regardless for most hardware, since the driver needs to be initialized and told where the hardware is to be found. Compiling a driver right into the kernel just means the driver code is in memory right from the very start. I don't recommend doing this btw, the only difference you will notice is shit not working due to you screwing up, and you're going to waste a bunch of time and electricity compiling your kernel with every update. You sometimes needed to do this to get all your hardware working, but I haven't done this in ages.

[–] original_ish_name@lemm.ee 7 points 1 year ago

Just make sure to install amd-ucode

[–] neoney@lemmy.neoney.dev 6 points 1 year ago (1 children)

It will work, but swap the microcode afterwards.

[–] penquin@lemm.ee 2 points 1 year ago (2 children)

What's the microcode? A driver?

[–] neoney@lemmy.neoney.dev 4 points 1 year ago (1 children)

On Arch, the package names are amd-ucode and intel-ucode

It can be used to fix exploits like the infamous Spectre and Meltdown.

[–] penquin@lemm.ee 1 points 1 year ago
[–] bitwolf@lemmy.one 1 points 1 year ago (1 children)

It's a firmware blob. It'll manifest as a package you have available in the repos usually.

[–] penquin@lemm.ee 2 points 1 year ago

Found it as AMD-ucode

[–] billwashere@lemmy.world 4 points 1 year ago (1 children)

As you’ve read from the comments it will work just fine.

On the other hand I’ve never done this major of a hardware change without a reinstall. I’d always be concerned if something is wiggy if it was some ghost in the machine from the previous install.

Now I also work in enterprise level IT so even my home stuff is a fairly automated install process with ansible and the like. Then again a lot of it is also virtual so take this with a grain of salt.

[–] penquin@lemm.ee 1 points 1 year ago

I actually did run into some of those "ghosts". Lol Nothing major, though. I've been thinking of doing a complete clean install anyway since I haven't done it in a very long time. Like, I want to even nuke my home partition and redo the whole thing.