You are not logged in.
I'm currently an user of gaming laptop and I'm going to build a new PC. My new PC will have inside an entirely different motherboard and CPU, it'll be different hardware at all than my old gaming laptop. Do I really have to do a fresh installation of Arch Linux on this new built desktop? Setting up from scratch a new system is honestly too much work for me. Can I just move using rsync tool old Arch Linux installation from old gaming laptop to the new PC and only do things on new PC from chroot like installating bootloader, editing fstab accordingly, making sure proper drivers are installed and so similar stuff? Packages I built that are in my private Arch repo are built without flags like -march=native.
Offline
If you've got an install, you can totally clone it and move it around.
I haven't done an install in a hot minute.
Now, if you plan to turn one host into two hosts, there's a few things you've got to do.
Things like the hostname, /etc/machine-id or the key/pub pairs for sshd need to be deleted/remade, among other host-specific things like TPM stuff and whatnot. Otherwise you'll just have the same system duplicated on two different hosts, which may or may not lead to future headaches, and a few hardware-specific things will definitely need your attention.
Plus the fstab/crypttab/whatever, pretty much most of what you did during the install and then some.
If you're keenly aware of all those things that'll need your attention, it'll be an easy affair.
Otherwise you're going to be busy figuring things out after cloning the system.
What's up doc?
Offline
Offline
Do I really have to do a fresh installation of Arch Linux on this new built desktop?
No, you don't. Wiki: Migrate installation to new hardware
(UPD: I forgot to F5 before sending, sorry)
Last edited by dimich (2026-11-13 09:46:43)
Offline
There are ways for it as previous posts highlighted but I would install from scratch, then move things from old system to new system.
It may feel unnecessary but from my perspective, an OS cannot be thought as "data" so it feels wrong to me to just copy the data from one hardware to another hardware; an OS is a living thing. That is my opinion of course.
Anyway, I recently did a new Arch installation besides my main system, and followed these steps:
- Install Arch Linux following the official guide in the wiki.
- Looked at the packages in my old system and installed necessary ones to the new system. Since I don't use any package manager other than Pacman, it was not hard.
- Looked at my config files in the home directory and copied necessary ones to the new system.
- Looked at /etc/ directory for system-wide configuration and copied necessary ones.
- Read some ArchWiki pages again not to miss important things.
Of course I might miss somethings but they are probably not important and I will add/fix them in time.
This way, I feel that everything is "more" guaranteed to work, I am actually pretty sure that no one could give 100% guarantee on copying a system from one hardware to another one would work without 0 problem. And one benefit of this is I didn't move some files which were not managed by Pacman or any other program. Also I didn't move any log file which would be unnecessary for a new system. BTW it took 2-3 days to make everything set up.
Offline
I got a new PC, just popped my SSD in, set the BIOS up with the usual Linux things, and then booted into the Arch ISO, mounted my system and re-ran grub-install.
Nothing further needed, so rather than 2-3 days as previous poster, it took me 5 minutes.
I used UUID to set my fstab up originally, so nothing had to be changed there, and if you followed the arch install guide, you likely did the same.
So yeah, it can be simple, just be aware that you need to put the arch iso install in to rebuild EFI via your bootloader's installation command. If in doubt check the articles that have been linked previously.
Ryzen 7 9850X3D | AMD 7800XT | KDE Plasma
Offline
I got a new PC, just popped my SSD in, set the BIOS up with the usual Linux things, and then booted into the Arch ISO, mounted my system and re-ran grub-install.
If this took 5 minutes, the way I mentioned earlier (install from scratch) takes a few hours.
Offline