I have a couple of Linux machines here (main and spare) where I need to clone the main machine's disks over to the spare machine. My search-fu seems to be a bit weak today so I can't seem to find how to best do it. I found one place where it says
' In theory "dd if=/dev/hda of=/dev/hdb" would work. However, dd by partition will be better since you do want to clone the swap partition.',
but I seem to remember that doing the whole drive in one go has been mentioned here before, so what is the best way? I have a Ubuntu CD and a Knoppix CD, so I don't need to boot from the drives that I need to clone.

Stig