4 Sep
2004
4 Sep
'04
19:45
Anders Norrbring writes:
dd if=/dev/hda of=/dev/hdb bs=64k
This will copy *everything*, boot block, partition table, all partitions and filesystems, etc. Do this only in single-user mode so that you get a consistent copy (i.e., the filesystem isn't changing due to users and daemons at the same time you're copying).
Now that was just too easy and obvious to be a solution.. Geee, I'm stupid.. But why the 64k read/write limit?
64k is just something I pulled out of the hat. It's big enough to perform well, but not so big as to exceed hardware DMA transfer limits, which may cause the kernel driver to attempt to break up each transfer into smaller chunks, increasing CPU usage. -Ti