[CLONING] How to clone an installation of Mint 19 to another PC

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read how to get help
Post Reply
carnacky79
Level 1
Level 1
Posts: 5
Joined: Mon Jul 16, 2018 5:50 am

[CLONING] How to clone an installation of Mint 19 to another PC

Post by carnacky79 » Thu Jul 19, 2018 7:25 pm

Hi everyone,
I ave 7 identical PCs and I have some trouble configuring the first one. Now everything's fine, but I'd like to have the possibility to clone the installation in the other 6 PCs. Is there a way to have an ISO image of the disk and now install it with a pendrive into the other PCs?
Thanks a lot for the time and the answers.
Bye

gm10
Level 18
Level 18
Posts: 8737
Joined: Thu Jun 21, 2018 5:11 pm

Re: [CLONING] How to clone an installation of Mint 19 to another PC

Post by gm10 » Thu Jul 19, 2018 7:43 pm

Sure, something like Clonezilla is probably the best tool for the job but you can create partition images even with the built in Disks tool or the dd command.
Tune up your LM 19.x: ppa:gm10/linuxmint-tools

OunceofCommonSense
Level 3
Level 3
Posts: 130
Joined: Mon Oct 01, 2012 3:52 pm

Re: [CLONING] How to clone an installation of Mint 19 to another PC

Post by OunceofCommonSense » Thu Jul 19, 2018 7:53 pm

I have been wondering about this also. Does moving clones to and from UEFI PCs with different motherboards create problems, or can those be sorted with Boot Repair Disk?
MB: Asrock Extreme4-M CPU: Intel(R) Core(TM) i7-3770K CPU @3.50GHz Memory: Corsair Low Profile Vengeance 16.00 GB. GC On CPU HD4000 Platform: x86_64 Distribution: Linux Mint 19.2 Tina

carnacky79
Level 1
Level 1
Posts: 5
Joined: Mon Jul 16, 2018 5:50 am

Re: [CLONING] How to clone an installation of Mint 19 to another PC

Post by carnacky79 » Thu Jul 19, 2018 7:56 pm

gm10 wrote:
Thu Jul 19, 2018 7:43 pm
Sure, something like Clonezilla is probably the best tool for the job but you can create partition images even with the built in Disks tool or the dd command.
Clonezilla can create an ISO of the installation so I can create a bootable pendrive and install it into the other PCs?
Thanks

ajgringo619
Level 6
Level 6
Posts: 1386
Joined: Thu Mar 01, 2018 8:36 pm
Location: San Diego, California

Re: [CLONING] How to clone an installation of Mint 19 to another PC

Post by ajgringo619 » Thu Jul 19, 2018 8:10 pm

carnacky79 wrote:
Thu Jul 19, 2018 7:56 pm
gm10 wrote:
Thu Jul 19, 2018 7:43 pm
Sure, something like Clonezilla is probably the best tool for the job but you can create partition images even with the built in Disks tool or the dd command.
Clonezilla can create an ISO of the installation so I can create a bootable pendrive and install it into the other PCs?
Thanks
Clonezilla creates images (usually compressed) of all the drive's partitions and information. When you restore it to a new system, it will do everything for you, including creating new partitions. You'll need to have a USB for Clonezilla to boot from and another to save the image to. You could probably setup your USB to do both (assuming that it's big enough, of course), but I've never done it that way.
Mint 19.2 XFCE
kernel 4.15.0-64-generic
AMD FX-8350 Eight-Core w/16 GB RAM
Nvidia GeForce 960 w/2GB RAM (435.21)
Image

benali72
Level 4
Level 4
Posts: 219
Joined: Sat Mar 23, 2013 11:49 am

Re: [CLONING] How to clone an installation of Mint 19 to another PC

Post by benali72 » Thu Jul 19, 2018 9:22 pm

I clone Mint partitions across PCs pretty frequently. I do it by partition copying with simple linux line commands (not image copying of an entire disk). Partition copying may be an advantage or disadvantage, depending on your goals.

Here's my methodology --

1. Clean shutdown of your source Mint instance
2. Boot up a different linux instance on the source computer (such as a live instance off a usb pen drive, for example).
3. Switch to the root user id, and copy the source Mint instance partition to an empty partition on an external removable usb connected disk drive (or usb memory stick if you have one of sufficient capacity).

Change directory to the target partition to copy to on the external removable usb connected disk drive, and perform the copy --

# whoami
root
# cd /media/userid/usb_target_partition
# cp -av /source_partition/* .

4. Boot live usb linux on the target computer. Use gnome-disks or gparted to create a target partition for your new Mint instance. (If the disk is entirely new and never yet used, you'll have to create a MBR or GRT on that new disk first.)

5. Connect the usb disk drive to the target computer, and perform the copy as root user id --

# whoami
root
# cd /media/userid/final_destination_target_partition
# cp -av /usb_target_partition/* .

6. Last step. Before booting your new target, you must --
6.1. As root, edit the /etc/fstab file and /etc/crypttab files to properly reflect partitions you'll use on the target machine
6.2. Set up the GRUB, LEGACY GRUB, or GRUB4DOS menus to properly start the new Mint on the target machine
(If the target machine has never been used, you will have to do an install of GRUB... which you can do from a mounted live instance)

This methodology works fine even if you're using standard Mint encryption of home directories. Cheers.

Johann_Popper
Level 1
Level 1
Posts: 6
Joined: Wed Jul 18, 2018 4:22 pm

Re: [CLONING] How to clone an installation of Mint 19 to another PC

Post by Johann_Popper » Thu Jul 19, 2018 11:34 pm

Umm... Mint includes Timeshift by default. Just backup the entire source PC and save it somewhere, load up a Mint liveUSB on the target comp and run Timeshift live, select backup of original that you saved, and you're cloned.

HaveaMint
Level 5
Level 5
Posts: 680
Joined: Fri Feb 02, 2018 9:56 pm
Location: Somewhere in the USA
Contact:

Re: [CLONING] How to clone an installation of Mint 19 to another PC

Post by HaveaMint » Thu Jul 19, 2018 11:38 pm

Johann_Popper wrote:
Thu Jul 19, 2018 11:34 pm
Umm... Mint includes Timeshift by default. Just backup the entire source PC and save it somewhere, load up a Mint liveUSB on the target comp and run Timeshift live, select backup of original that you saved, and you're cloned.
Your UUID's will be different
"Tune for maximum Smoke and then read the Instructions".

Johann_Popper
Level 1
Level 1
Posts: 6
Joined: Wed Jul 18, 2018 4:22 pm

Re: [CLONING] How to clone an installation of Mint 19 to another PC

Post by Johann_Popper » Fri Jul 20, 2018 12:04 am

Would one ever want UUIDs to be the same across 7 PCs on the same network?

Easy to change, though via tune2fs.

Also, @carnacky79, if your newly configed setup is still small -- i.e. not too many apps installed, say ~4 GB, you can just install *Pinguy Builder 5* for 'buntu 18.04, which is compatible with Mint 19. You can grab the deb to install from their website. Few dependencies, if any. That is an easy GUI solution to respin your current setup into a live installable ISO for easy USB deployment of your customized Mint. This way, you won't be cloning Home, and you can OEM install each of your 7 machines. If your customizations aren't too big (max ~4GB for live ISOs, I believe, though that old limitation may have a workaround nowadays), this is definitely the way to go.

User avatar
Linux-Bill
Level 3
Level 3
Posts: 103
Joined: Mon Mar 14, 2016 4:19 pm

Re: [CLONING] How to clone an installation of Mint 19 to another PC

Post by Linux-Bill » Sat Jul 21, 2018 9:16 am

I clone entire disks using a StarTech stand alone box (from Amazon). ALL my system backups are made by cloning. No questionable software, no typing super secret commands - so easy.

User avatar
chrisuk
Level 5
Level 5
Posts: 593
Joined: Thu Jun 12, 2008 6:16 am

Re: [CLONING] How to clone an installation of Mint 19 to another PC

Post by chrisuk » Sat Jul 21, 2018 9:25 am

Johann_Popper wrote:
Thu Jul 19, 2018 11:34 pm
Umm... Mint includes Timeshift by default. Just backup the entire source PC and save it somewhere, load up a Mint liveUSB on the target comp and run Timeshift live, select backup of original that you saved, and you're cloned.
Indeed, I've been doing this for years... long before Mint adopted Timeshift . I just install once, and restore to other Desktops/Laptops.

Oh, just a note - Timeshift handles fstab and reinstalls grub... no need to do anything except boot up your cloned system.
Chris

Manjaro MATE - MX Linux - LMDE MATE

Post Reply

Return to “Installation & Boot”