Skip to content

Instantly share code, notes, and snippets.

@mrtnpar
Created September 7, 2011 14:24
Show Gist options
  • Save mrtnpar/1200699 to your computer and use it in GitHub Desktop.
Save mrtnpar/1200699 to your computer and use it in GitHub Desktop.
Create Large 1GB Binary Image File With dd Command
# 1MB
dd if=/dev/zero of=test.img bs=1024 count=0 seek=1024
# 10MB
dd if=/dev/zero of=test.img bs=1024 count=0 seek=$[1024*10]
# 100MB
dd if=/dev/zero of=test.img bs=1024 count=0 seek=$[1024*100]
# 10BG
dd if=/dev/zero of=10g.img bs=1000 count=0 seek=$[1000*1000*10]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment