Given HDD 1TB with a two partitions: one is small ~24GB (for Ubuntu) and all the rest is the second partition with about 10% occupied space for multimedia files.
I want to duplicate it as fast as possible. I boot from USB stick. The second disk is
sfdisk -d /dev/sda > a sfdisk /dev/sdb < a
Then I copy bytewise the small partition:
dd if=/dev/sda1 of=/dev/sdb1 bs=4M status=progress
It takes about two minutes. Then I want to copy in optimal manner contents of the second partition. Just filesystem w/ file attributes:
rsync -avHAX /media/ubuntu/sda2dir /media/ubuntu/sdb2dir
After that I tried to boot from second HDD and can't.
How to copy MBR and other crucial information?
dd if=/dev/sda of=/dev/sdb takes about 1h20m for 1TB HDD. It is not acceptable. And seems also not works.