Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cloning gentoo install
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
paluszak
Apprentice
Apprentice


Joined: 28 Jun 2004
Posts: 265
Location: Warsaw, Poland

PostPosted: Fri Jun 18, 2021 12:40 pm    Post subject: cloning gentoo install Reply with quote

Hello,

I've got a few systems which are identical hardware-wise. I'd like to clone gentoo from one of them to others. Are there any specific things I should pay attention to, except the obvious (ssh keys in user directories and non-colliding addresses, as the systems will be on the same network)?

TIA
Back to top
View user's profile Send private message
Banana
Veteran
Veteran


Joined: 21 May 2004
Posts: 1392
Location: Germany

PostPosted: Fri Jun 18, 2021 1:37 pm    Post subject: Reply with quote

the first think I can think if is fstab and how you identify yout disks for booting etc.
_________________
My personal space
My delta-labs.org snippets do expire

PFL - Portage file list - find which package a file or command belongs to.
Back to top
View user's profile Send private message
paluszak
Apprentice
Apprentice


Joined: 28 Jun 2004
Posts: 265
Location: Warsaw, Poland

PostPosted: Fri Jun 18, 2021 3:29 pm    Post subject: Reply with quote

Banana wrote:
the first think I can think if is fstab and how you identify yout disks for booting etc.


I intend to generate new labels/uuids, but that's not really a big issue as the disk are not going to be connected to the same system.
Back to top
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 2963
Location: Edge of marsh USA

PostPosted: Sat Jun 19, 2021 3:40 am    Post subject: Reply with quote

You'll find my stage4 script and companion exclude file in the following discussion:
https://forums.gentoo.org/viewtopic-t-1132899-highlight-stage4.html
Today's stage4.tar.zst is 3.4 GB in 10 minutes on a very mature but fairly clean system. (only two kernels installed)

For most use cases you can make the stage4 while running and working on other things. Keep in mind that it does not include ANY personal files, but it does create my user directory.

Restore to the destination of your choice, edit fstab as needed, chroot into it to install and configure GRUB if necessary, if you use GRUB or whatever you boot with. This is set up for traditional BIOS booting with all system directories installed in system root (/). I haven't used it for backing up EFI partitions/files.

Your stage4 archive is also a complete system backup.
_________________
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi
Back to top
View user's profile Send private message
alicela1n
n00b
n00b


Joined: 26 Mar 2021
Posts: 14

PostPosted: Sun Jun 27, 2021 2:53 am    Post subject: Reply with quote

I've cloned my Gentoo install multiple times! Typically I use rsync for this, rsyncing the install from one drive to another is a good way to clone the install, just make sure you update fstab, /etc/machine-id, the bootloader, and configure the kernel for the new system. You can also use mkstage4 which creates stage4 tarballs of your install, which you can install on other systems the same way you install Gentoo from stage 3!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum