Use the following command :

dd if=/dev/zero of= filename bs=1024 count=1024number of 0’s

Replace ‘filename’ with the actual filename.

Replace ‘number of 0’s’ with the required number of 0’s

For example,
One ‘0′ for 10MB , two for 100 MB a