title: Fill up disk space in android device
body: <p>I want to fill my device disk space with any dump data as part of stress testing.</p>
  
  <p>I tried writing bytes into a file in external storage; obviously larger &amp; more spacious the disk is longer it will take to get filled. [approx half a minute for 1GB]</p>
  
  <p>Can we do anything from adb shell in this case? 
  I checked creating dump data using <em>dd</em> command:</p>
  
  <p><code>dd if=/dev/zero of=/tmp/tempFiller.deleteMe bs=1024 count=$COUNT</code></p>
  
  <p>which basically copies dump data to destination file
  Hence it also takes significant time. [approx 1 minute for 1GB]</p>
  
  <p>Is there any faster approach? for a normal user / super user?</p>
  
  <p>I also tried <a href="https://stackoverflow.com/questions/257844/quickly-create-a-large-file-on-a-linux-system">fallocate, truncate &amp; mkfile</a> commands in adb shell, but none of these commands are found even inside su. I guess these are bash commands &amp; installing bash shell in Android device will require the device to be rooted.</p>
  
  <pre><code>fallocate -l 10G gentoo_root.img
  truncate -s 10M output.file
  mkfile 10240m 10Gigfile
  </code></pre>