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