62
submitted 3 days ago by DonutsRMeh@lemmy.world to c/linux@lemmy.ml

Hi all, I just bought a new motherboard and I’ll be buying a new CPU, too. The current one is a gigabyte 520i AC AM4 with an AMD Ryzen 7 5700G on it currently. The new one is also gigabyte 550M AM4 and the new processor is Ryzen 7 5800xt. I currently dual boot Cachy OS and windows 11. Each has their own boot partition and I use grub. I’m going to bring everything over from the old mobo except the cpu that will stay on it since it’s going into another pc. Meaning, I’m bringing my SSDs and all that. Will I need to reinstall (please say no lol)? Will it be just plug and play or will I need to fiddle with a live environment to chroot?
Please let me know if you need more info. Thank you in advance.

top 50 comments
sorted by: hot top controversial new old
[-] Jumuta@sh.itjust.works 50 points 2 days ago

probably not, I move SSDs between computers all the time and linux always just works

very different story for windows installations though 🤮

[-] umbrella@lemmy.ml 8 points 2 days ago

nvidia complicates this, as always

[-] dorkage@lemmy.ca 4 points 2 days ago

I've honestly had a lot of luck booting a Windows SSD on different computers.

[-] DonutsRMeh@lemmy.world 2 points 2 days ago

I love your comment. So reassuring. Lol. I HAVE moved SSDs before where it was only Linux, in this case I'm worried about it because it's a dualboot

[-] billwashere@lemmy.world 9 points 2 days ago

It might but I wouldn’t. Every weird problem in the future is gonna make you wonder if it’s because of that. Now what I would do is get another hard drive, install to it, and copy things over. But basically leave the original one alone. My 2¢

[-] oeuf@slrpnk.net 2 points 2 days ago

Every weird problem in the future is gonna make you wonder if it’s because of that.

Pretty much what I've realised about doing anything weird with my system. I want a peaceful life.

[-] INeedMana@piefed.zip 23 points 3 days ago

In general it shouldn't. You might need to install some new drivers for the new chipset but in itself the system should work. Especially since nowadays kernels are shipped with a lot of stuff and I'm guessing you're not compiling yours
Regarding messing up with live environment, I don't remember if GPT is enough for UEFI to load your bootloader or maybe you might need to install something in there

[-] Wfh@lemmy.zip 14 points 2 days ago

I moved my Fedora SSD from an Intel 8th gen laptop to an AMD Zen4 laptop with 0 issue and 0 config. So.... you're probably fine.

[-] DonutsRMeh@lemmy.world 2 points 2 days ago

I have before move SSDs and had no issues actually, now that you mentioned it. Lol. But this is a different case because I dualboot and I'm technically moving two OSs to a new mobo.

[-] monovergent@lemmy.ml 3 points 2 days ago

Linux: no, but not necessarily plug-and-play. My daily-driver install is literally pre-configured on a VM and cloned to all of my machines with various motherboards. Nvidia complications aside, a default Linux install will contain nearly every driver you could ever need to get up and running. However, some motherboards do need you to chroot from a live environment and make it "aware" of the existing GRUB bootloader.

Windows: At best, you'll need to reactivate. More often, it'll be missing a driver or just not work as well as it did on the old motherboard. It's better to reinstall Windows.

Will admit that I'm very biased against reinstalling Linux anew except as a last resort since it's a painstaking days-long process to configure things just right for my picky tastes.

[-] DonutsRMeh@lemmy.world 1 points 2 days ago

That's pretty awesome that you can actually take a VM and make it an actual OS. I seriously need to learn how to do that. Also, the only thing I was mostly told is that the new motherboard might not know where the boot partition is, so like you said, I may need to chroot and let it know where it is. I have been told that it is just

sudo pacman -S grub

and

sudo grub-mkconfig -o /boot/grub/grub.cfg

. And I'm not sure if that is it or if there is something else I may need to run. I have moved an SSD from PC to another before and it was plug-n-play. Like it just booted right away into the system. So not sure. I'll see what happens.

[-] communism@lemmy.ml 5 points 2 days ago* (last edited 2 days ago)

As others have said, no for the Linux partition; it's the same arch, socket type, etc. CachyOS's kernel probably contains everything you need.

For the Windows partition you might have problems though. Iirc Windows connects licences to motherboards, to prevent disk cloning to circumvent buying licences, so Windows may think you've cloned your drive to pirate Windows. I've never tried secure boot but I know W11 requires TPM too so if you've got secure boot you should look into how to switch to a new motherboard on Windows.

[-] DonutsRMeh@lemmy.world 2 points 2 days ago

If windows crying about a license is my biggest issue then I think I'm ok with that. I am more worried about efi partitions since I dualboot

[-] AllHailTheSheep@sh.itjust.works 4 points 2 days ago

massgrave.dev has you covered if windows throws a fit

[-] DonutsRMeh@lemmy.world 3 points 2 days ago

That and a friend of mine has given me a key a long while ago that I haven’t used yet.

[-] Cort@lemmy.world 2 points 2 days ago

iirc they track the hardware changes and do allow motherboard swaps, but it may be safer to swap cpu first, then motherboard

[-] Sxan@piefed.zip 5 points 2 days ago

Most distributions, no.

Gentoo, yes.

[-] nyan@sh.itjust.works 4 points 2 days ago

Gentoo—depends on your CFLAGS, specifically -march. You may have to change it to a more generic setting and rebuild the system set, plus build additional drivers into your kernel if you have a custom one, before you can safely proceed with the move.

In other words, you can get away without reinstalling, but it's a bit more involved because you may need to undo some customization first.

[-] Sxan@piefed.zip 1 points 1 day ago

As I recall - from nearly 20 years ago! - kernel compilations were pretty slender, too. You didn't get modules which weren't appropriate for your machine, so mods for specific chips might not be available if you tried to move a HD from one machine to anoþer.

[-] nyan@sh.itjust.works 1 points 1 day ago

You get whatever drivers you checked off in the config. That might be only what you need for your machine, or you can build some extras, into the kernel or as modules (I've done make modules_install separate from updating the kernel more than once, because I needed support for a new peripheral). In order to boot the machine you only need a minimal set of drivers: CPU, video, keyboard (+ port), and hard drive. Anything else you can fix later if you need to.

My experience in moving a system with a custom kernel from an Athlon64 to a Phenom II more than a decade ago was that the CPU, video, and keyboard were either the same for both or easy to figure out (CPU might have been a bit more difficult if I'd been switching between AMD and Intel, but not much), but I ended up building pretty much every possible hard drive controller driver directly into the kernel until I figured out which one the new board was using. The new system booted without issue, but I had to futz around a bit to get ALSA and other nonessentials back on track.

[-] aarch0x40@piefed.social 11 points 3 days ago

Reinstall shouldn't be required but you'll likely need to build a new initrd to ensure the boot process has the right drivers.

[-] DonutsRMeh@lemmy.world 3 points 3 days ago

Ok, that sounds a bit better. I'll need to learn the building of initrd. Off to searching. Thank you.

[-] Creat@discuss.tchncs.de 9 points 2 days ago* (last edited 2 days ago)

This is actually not even necessary. The systems are similar enough it'll just work. I have recently swapped an SSD from a laptop to a newer model with CachyOS, and that was more of a generational jump in terms of cpu and other hardware.

But CachyOS has a quirk. Linux systems specify which partitions are mounted to which directories in the /etc/fstab file. Unfortunately, the boot partition is specified using a device name and not a UUID. this is problematic when switching an SSD from a system to another as this may very well change device names. It did for me and I then had to rescue boot + chroot to fix it.

The fix, if done before, is trivial: edit the line for /boot in that file to start with UUID= (followed by the actual UUID of the partition) instead of with /dev/nvme0n1p1 or whatever the current device name is. Google should be able to tell you how to find the UUID of your boot partition.

load more comments (5 replies)
[-] frongt@lemmy.zip 8 points 2 days ago

Highly unlikely. These days, disk space is so cheap that all manner of drivers are provided whether you need them or not. Worst case, you should still be able to boot recovery mode or chroot, as you mentioned.

Just make sure that the disk and boot configuration is the same (uefi, sata, secure boot), else both Windows and Linux may have issues finding their boot files.

load more comments (4 replies)
[-] MonkderVierte@lemmy.zip 5 points 2 days ago* (last edited 2 days ago)

Drivers in kernel, so it should generally work. Except if you have hw-specific configs around, but that's something that you did then.

[-] DonutsRMeh@lemmy.world 2 points 2 days ago

I don't really do crazy low level stuff on my machine. Just gaming and programming.

[-] data1701d@startrek.website 6 points 3 days ago* (last edited 3 days ago)

Honestly, probably no. You're switching to something with the same CPU generation and micro architecture, and the boards are by the same manufacturer with the same mobo chipset generation (both 5xx). It should be plug and play.

The only major change I can see the old CPU has an iGPU, while the new one doesn't, meaning that you won't be able to use the video port built into your motherboard, only the ports on your GPU. I'm guessing you probably weren't using that HDMI port in the first place, so it's probably non-issue.

EDIT: There is a small chance you'll have to change your fstab depending on how it's configured; if it's done by drive UUID, it won't be a problem.

load more comments (1 replies)
[-] Heavybell@lemmy.world 2 points 2 days ago

Depending on how grub was installed, you might need to boot a live environment just to tell your new mobo about it. You can skip chrooting if your live media has efibootmgr and you can figure out how to use it, but if that fails you can always chroot and install grub fresh.

Also, it might just work.

[-] DonutsRMeh@lemmy.world 3 points 2 days ago

Man, if it is as easy as just installing grub, then I’m golden. cachy-chroot will take care of that

[-] Heavybell@lemmy.world 1 points 2 days ago

Just make sure you put it on the right disk, if you go that route ;)

[-] DonutsRMeh@lemmy.world 2 points 1 day ago

I’m a paranoid person when it comes to software. Rest assured that it will be the right disk. lol

[-] ik5pvx@lemmy.world 5 points 3 days ago

Great advice in the comments already, I'll just recommend that you familiarise yourself with the rescue boot of a live disc of your distro.

If things go weird with thr move you can boot the live in rescue mode, mount your disks and fix fstab, or even redo the initrd . Don't wait until you need it

load more comments (1 replies)
[-] infinitevalence@discuss.online 5 points 3 days ago

Highly doubtful since it's AMD to AMD.

[-] data1701d@startrek.website 6 points 3 days ago

Honestly, even AMD to Intel would probably go mostly fine, considering the monolithic nature of the kernel and it having most drivers built in.

You'd probably want to make sure you have the Intel firmware package installed and make sure to remove configs specific to AMD stuff, like power management configs and kernel parameters, but it would still most likely boot.

[-] DonutsRMeh@lemmy.world 1 points 2 days ago

I'm not too worried about the architecture more than I am about the boot partitions getting messed up. Will see. I'll actually post about it here when it's all done.

For your linux partition you'd probably just need to install new drivers. I've popped my boot drive into a bunch of different pcs with no issue.

Your windows partition might be weird, last i heard it assigns the activation to the motherboard serial number or something so you might have to redo the crack or provide your activation code again

[-] DonutsRMeh@lemmy.world 2 points 2 days ago

I'm not worried about the license issue on windows. I actually do have the code saved up because I have always known that it ties it to the mobo.

[-] data1701d@startrek.website 4 points 3 days ago

Usually, you don't need to bother much with drivers at all outside of Nvidia GPUs and Broadcom modems since the kernel is monolithic and contains most drivers.

On an ATX motherboard, I think it's extremely rare for the ethernet chipset to require an out-of-kernel driver.

This is true, i didn't read the part where he's keeping everything except the motherboard/cpu. I'm used to switching out to random gpus LMAO

[-] DonutsRMeh@lemmy.world 2 points 2 days ago

Some reviewers on Amazon even mentioned that it worked on Linux just fine.

[-] Core_of_Arden@lemmy.ml 1 points 2 days ago

You should always reinstall when switching motherboard. There's so many drivers that could possible make a problem. Unless you switch between 2 totally identical motherboards... Then give that a go...

[-] DonutsRMeh@lemmy.world 2 points 2 days ago

I’ll do everything in my power to not reinstall. I’ve put so much work into this install and I don’t want to redo it all. These two motherboards are essentially identical. Same company, same socket, same everything. I’m only getting pcie 4.0 on the new one and an extra slot for a second NVME. The new cpu is the same. Going from R7 5700G to R7 5800xt

load more comments
view more: next ›
this post was submitted on 26 Nov 2025
62 points (98.4% liked)

Linux

57274 readers
699 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 6 years ago
MODERATORS