this post was submitted on 20 Dec 2025
36 points (97.4% liked)

Linux Questions

3036 readers
36 users here now

Linux questions Rules (in addition of the Lemmy.zip rules)

Tips for giving and receiving help

Any rule violations will result in disciplinary actions

founded 2 years ago
MODERATORS
 

I've spent considerable time configuring my Linux system (1) and I would like to have the exact same system on another PC (2).
What would be the best way to do that?
Hardware on (2) is different, but tested compatible with the kernel.
(2) has a smaller drive size, so simply dd'ing the entire drive from a live USB won't work.

Here's what I'm planning:

  • install same distro on (2), using the same username as on (1)
  • create a list of installed packages on (1)
  • install same packages on (2) using the package manager
  • copy /home and /etc from (1) to an external EXT4 drive
  • boot (2) from a live USB and mount the external drive
  • delete /home and /etc on (2), then copy them over from (1)

Will this cause permission issues? Is there a quicker way?

you are viewing a single comment's thread
view the rest of the comments
[โ€“] ProfessorNeurus@infosec.pub 31 points 5 days ago* (last edited 5 days ago) (1 children)

You could use clonezilla right? If the data of the old drive "fits" in the new smaller drive, then it can be done (if I correctly recall, it's one of the advanced options).

https://clonezilla.org/clonezilla-live/doc/02_Restore_disk_image/advanced/09-advanced-param.php

[โ€“] passenger@sopuli.xyz 4 points 4 days ago* (last edited 4 days ago)

Or rescuezilla which might be easier to use.