Based on a gui-dd project, this pulls out the important bits into a much smaller bash shell and a binary.