I want to copy a Windows 7 partition that came installed on my laptop to my desktop computer.
# bzip2 -c /dev/sda5 | nc 192.168.1.1 2222 # on laptop # nc -l 2222 | bzip2 -d > /dev/sda1 # on desktop
But gparted tells me the partition is corrupted with a lot of error messages.
I also tried:
# dd if=/dev/sda1 | gzip -1 - | ssh user@hostname dd of=image.gz # on laptop # dd if=image.gz | gunzip -1 - | dd of=/dev/sda5 # on desktop
It worked for a small partition (35 Mb), but didn't for larger ones (18Gb and 120Gb). The ssh pipe keeps breaking and one attempt that completed gave errors in gparted.
What would be a better way of copying the partitions?