Cloning a disk is legal as long as you legally own the data on it. For example, suppose you have an operating system license for one machine. In that case, it is legal to clone it to a new PC, but only if you stop using the license on the original device.