Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to clone a bootable USB key. Obviously dd would to the trick nicely, but since the actual size of the files on my drive is ~15MB I end up waiting for a bunch of minutes while dd copies empty blocks to my 4GB USB key.

Is anyone aware of a solution that does this nicely (e.g., copy all files, clone MBR) without the wait of copying empty blocks?

share|improve this question

dd takes a -count command line that lets you specify how many blocks to copy.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .