On Thu, 15 Aug 2002 02:20, you wrote: > I have a slightly "off-topic" question. I'd like to be able to "clone" my > i386 hard drives just like we DDR volumes on the mainframe (i.e. a complete > block by block clone without regard for content), including boot sectors > and such. Is there a way to do this using Linux (I know "Ghost" will do > this, but I'm looking for something that runs on Linux while Linux is up > and running). >
Whole volume: dd if=/dev/hda of=/dev/hdc bs=$((1*1024*1024)) Partition: dd if=/dev/sda1 of=/dev/sda2 bs=$((1*1024*1024)) Disks in different machines: dd if=/dev/hda1 | ssh second.machine dd of=/dev/hdc2 (the other way round works too) For a slow network, insert bzip2 or gzip into the pipe both sides. The receiving partition can be larger, fix it with resize2fs or equivalent for other filesystems. Take special care over journals. You might want to e2fsck first. Be sure the filesystems are _not_ mounted. -- Cheers John Summerfield Microsoft's most solid OS: http://www.geocities.com/rcwoolley/
