I have read many questions similar to mine, but still can't get it to work.
I have a working pc with 2 hard drives, ssd drive of 256 GB on which the OS is installed (
/dev/sda), and 1TB sata drive for home folders, data, etc. (
/dev/sdb). I am trying to clone the installation (and hopefully the data drive as well) to an identical pc (hardware wise) over ssh.
I booted into the new pc using Ubuntu 16 live cd, installed ssh, and then use dd over ssh from the first pc:
sudo dd bs=64K conv=noerror,sync if=/dev/sda | gzip -1 - | ssh ubuntu@ip_address "sudo dd of=/dev/sda"
The problem is, after dd is done, the new computer doesn't recognize any bootable disk, and if I again boot using the live cd, the disk appears as 'unallocated' in gparted. If I try to mount it, I get:
mount: wrong fs type, bad option, bad superblock on /dev/sda, missing codepage or helper program, or other error
The same happens with the 2nd drive.
As a side note, I've seen many solutions with the advice to use boot repair, however when I try to install it in the live cd boot session, I get an error about the ppa not having this package (when trying to add it by
sudo add-apt-repository ppa:yannubuntu/boot-repair)
Any idea what goes wrong?