clone a disk
Larry Irwin (gmail)
mkitwrk at gmail.com
Fri Jul 17 18:48:55 UTC 2015
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
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.
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
> If it is possible, how to do that?
> Many thanks
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rsync