After a hardware failure of the motherboard and subsequently a few disks, I am migrating the root partition over to another drive. However, given /dev
and other peculiar locations I was wondering whether my method is sound?:
rsync -avzPHAKXS /mnt/old/ /mnt/new/
Note that the new designated root drive is mounted as /mnt/new
and the old one as /mnt/old
.
Will this work or will it fail? I would find out later this week anyway simply by trying, but getting an authoritative answer and perhaps a working alternative would save me some hours.