2

I'm creating a bunch of flash cards for use with AnkiDroid and many of them contain images or sound files.

I would like to find a balance between image/audio file size, and clarity, without wasting a ton of space with files that exceed a block boundary by just a few bytes.

So I'd like to know how to determine the filesystem block size on any given android device. Is there an easy way to do this?

5

You can use tune2fs (shell command) for this. The target output entry is 'Block size'. The corresponding block device (mmcblk1p1) depends on your hardware and needs to be replaced respectively.

tune2fs -l /dev/block/mmcblk1p1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.