[CentOS] creating disk images

Fri Jul 14 19:41:14 UTC 2006
Jerry Geis <geisj at pagestation.com>

I am familiar with using dd to create a disk image. dd if=/dev/hda1 
of=myimge.img

However, is there a way to capture the entire disk image into a file.

I have 3 partitions:
hda1 /
hda2 swap
hda3 /home
and mbr

How can I wrap them all into 1 image file.

Thanks,

Jerry