Created
September 7, 2011 14:24
-
-
Save mrtnpar/1200699 to your computer and use it in GitHub Desktop.
Create Large 1GB Binary Image File With dd Command
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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