Hi TG,
You can keep an up-to-date copy of the files/folders/pipes/etc. in the 100GB space using rsync, but not a true clone of the partition. To get a true clone of the boot partition, you'd need to boot from a rescue CD, mount the other machine's 100GB space and dd the boot partition device to a file on the 100GB space. You'd also probably want to get the Master Boot Record by grabbing the first 2K of the raw boot device into a separate file...
i.e. something like:
dd bs=512 if=/dev/sda1 of=/mnt/u/backup/jessie_sda1
dd bs=512 count=4 if=/dev/sda of=/mnt/u/backup/jessie_mbr_sda
The device names might be different - the mount folder may be different - etc... But the idea works. - With a new, blank drive, you could recreate the partitions using fdisk, reverse the dd commands, boot and then work on getting the second partition back up and running.

Larry Irwin

On 07/17/2015 01:40 PM, Thierry Granier wrote:
i have a machine A with 2 disks 1 et 2 running Debian Jessie
on 1 is the system and the boot and the swap
on 2 different partitions like /home /opt ETC.....

i have a machine B with 1 disk running kali-linux and *100G free*

Can i clone the disk 1 of machine A on the 100G free on machine B with rsync?

If it is possible, how to do that?
Many thanks

Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to