What's the fastest way in Linux, using free tools, to duplicate a mostly disk onto another identical disk? In this case, SD cards, but I think the same would apply to USB drives, HDDs, etc.
I have a 512MB drive, with only about 10 MB of data on it. I would like to be able to make an exact, byte-for-byte duplicate like you would get if you just do
dd if=/dev/source of=/dev/dest, however, I would like something that is aware of the file system on the source drive enough to know that it only needs to copy a very small portion of the disk.
Yes, I know I could string together
tar. But what I'm really looking for is a one-liner for creating an image, and another oneliner for writing it to disk.
EDIT: I need a tool that works with FAT16. ntfsclone seems to do approximately what I'm looking for, except NTFS-only.
partimage looks promising in that it is incredibly fast, but it doesn't handle cloning the partition table.