to avoid "read-only filesystem" problem, mount tmpfs on /mnt/sdcard/tmp