Clone OS Hard Drive, Put Cloned OS HDD Into A Different Computer?

Hi,

I have three main computers.
I installed openSUSE Tumbleweed KDE 64Bit onto one of the main computers.
Works great.

If I clone the HDD and put the cloned HDD in one of the other two computers will it work?
Installing OS and apps took a full day of time, just wondering if above would work?

Thanks!

Jesse

You may have to run mkinitrd to discover hardware if the machines are different hardware wise. But the clone should boot to terminal mode at least. Also if the are differences in the GPUs then you may need to remove and or install drivers if the origan machine had proprietary drivers installed.

Far more likely yes than no, though gogalthorp’s comments are true. I’ve done it many times. It’s not unusual that some package and/or config tinkering is required for X to work optimally, or at all, and it’s likely that the old ethernet MAC address will need to be purged before networking works as expected. Deleting /etc/udev/rules.d/70-persistent-net.rules typically will fix it effective with subsequent boot. Sound also may require a bit of tinkering.

Both PCs would need to be using the same boot method, either both MBR/Legacy, or both UEFI.

Hi,

I just wanted to add that before I clone some hdd’s I always change the mount point to by-label, the ones you see in /etc/fstab.

That’s how mine start. :slight_smile: Nothing here (AFAICR) is ever mounted by UUID.

But it’s the default for both TW and Leap, so: 1-2 sentences on how to change that (back to “normal”)? :slight_smile:

I don’t know what you mean. During installation on
http://fm.no-ip.com/SS/Suse/YaST/TW/yastTWI-201707-0768-ExpPrtSettings2.png
I choose label in the top select box labeled “Default Mount by”.

Ah OK, I thought about changing an existing install from UUID to /dev/sdx

I script my machine setups if they’re mostly the same.

Be aware that machines must be uniquely identifiable on the network so you’ll need to make modifications before cloned machines can be on the same network.

TSU

In general, cloning of system disks works well as long as the hardware is similar enough to let the kernel (and initrd) boot on the target computer.
I do this a lot, albeit with completely identical hardware among all systems.

Be prepared for one more annoyance: ethernet interfaces are renamed when moving system disks; on the “copied” system the first ethernet interface will be called eth1.
To mitigate the annoyance remove the line containing “eth0” from /etc/udev/rules.d/70-persistent-net.rules

Hi,

Well, ok, I cloned the openSUSE Tumbleweed 1TB SSD to an empty 1TB SSD using a standalone HDD duplicator…
Haven’t booted up the second desktop yet - there will be more questions…

Jesse

Hi,

Going to power on the second desktop soon.
Before I do it what should I change on the original desktop as far as network goes?
Both the original desktop and cloned second desktop are connected to the same network in my home office.
Let me know, thanks!

Jesse

If /etc/udev/70-persistent-net.rules exists, delete it.

Make /etc/hostname unique.

If using static IP wired ethernet, change it in /etc/sysconfig/network/ifcfg-xxx.

What was the terminal command to change hostname?

Jesse

hostnamectl set-hostname foobar

(change “foobar” to name you want)