G
G
gremlintv22018-06-25 12:22:37
linux
gremlintv2, 2018-06-25 12:22:37

How to clone an OS to another hardware via rsync along with the kernel?

1) Is the game worth the candle
2) What can be a "rake"
Here's what I found on the Internet:

rsync -auHxv -e "ssh -p $port" --numeric-ids --exclude=/etc/fstab --exclude=/etc/network/* --exclude=/proc/* --exclude=/tmp/ * --exclude=/sys/* --exclude=/dev/* --exclude=/mnt/* --exclude=/boot/* --exclude=/root/* [email protected]:/* /

But this command copies the OS without the kernel. And it is necessary with a kernel. Since I am transferring a machine with virtual machines to another hardware.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir, 2018-06-25
@gremlintv2

1 Remove --exclude=/boot/* and the kernel will be copied
2 after rsync don't forget to install the bootloader.
The rake can be:
1 if the new hardware has devices for which there are no drivers in the portable OS.
2 The contents of /etc/fstab may need to be tidied up

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question