View Single Post
Old 05-22-2025, 07:55 AM   #7
dangdang_read
Junior Member
dangdang_read began at the beginning.
 
Posts: 6
Karma: 10
Join Date: May 2025
Device: kobo kobo aura hd,boox note3,hisense a5
what is the correct filesystem for userdata

Quote:
Originally Posted by Renate View Post
Oh, so you're not counting the 1,528,342,239 bytes of system.new.dat.br ?
Oh, so it can synthesize the full package. So I generated system.img and vendor.img, then flashed them using the following commands:
Code:
brotli --decompress system.new.dat.br
brotli --decompress vendor.new.dat.br
sdat2img system.transfer.list system.new.dat system.img
sdat2img vendor.transfer.list vendor.new.dat vendor.img


edl w xbl xbl.elf --loader=~/device/boox/prog_ufs_firehose_SDM636_ddr.elf
edl w rpm rpm.mbn --loader=~/device/boox/prog_ufs_firehose_SDM636_ddr.elf
edl w pmic pmic.elf --loader=~/device/boox/prog_ufs_firehose_SDM636_ddr.elf
edl w abl abl.elf --loader=~/device/boox/prog_ufs_firehose_SDM636_ddr.elf
edl w system system.img --loader=~/device/boox/prog_ufs_firehose_SDM636_ddr.elf
edl w vendor vendor.img --loader=~/device/boox/prog_ufs_firehose_SDM636_ddr.elf
edl e boot --loader=~/device/boox/prog_ufs_firehose_SDM636_ddr.elf
edl reset

sudo fastboot flash boot boot.img
sudo fastboot -w
sudo fastboot reboot
The commands above all executed successfully, and fastboot -w also showed that userdata and cache were properly formatted.But it still gets stuck on the boot animation. To confirm whether system.img and vendor.img are intact, I mounted them, and the mounting process worked fine.

sudo mount system.img ~/mnt1
sudo mount system.img ~/mnt2
~/mnt1$ ls -alh
总计 176K
drwxr-xr-x. 22 root root 4.0K 2009年 1月 1日 .
drwx------ 66 happ happ 4.0K 5月22日 18:06 ..
drwxr-xr-x. 2 root root 4.0K 2009年 1月 1日 acct
drwxr-xr-x. 2 root root 4.0K 2009年 1月 1日 apex
lrw-r--r--. 1 root root 11 2009年 1月 1日 bin -> /system/bin
lrw-r--r--. 1 root root 50 2009年 1月 1日 bugreports -> /data/user_de/0/com.android.shell/files/bugreports
drwxrwx---. 2 happ 2001 4.0K 2009年 1月 1日 cache
lrw-r--r--. 1 root root 19 2009年 1月 1日 charger -> /system/bin/charger
dr-xr-xr-x. 2 root root 4.0K 2009年 1月 1日 config
lrw-r--r--. 1 root root 17 2009年 1月 1日 d -> /sys/kernel/debug
drwxrwx--x. 2 happ happ 4.0K 2009年 1月 1日 data
drwxr-xr-x. 2 root root 4.0K 2009年 1月 1日 debug_ramdisk
lrw-------. 1 root root 23 2009年 1月 1日 default.prop -> system/etc/prop.default
drwxr-xr-x. 2 root root 4.0K 2009年 1月 1日 dev
lrw-r--r--. 1 root root 11 2009年 1月 1日 etc -> /system/etc
lrwxr-x---. 1 root 2000 16 2009年 1月 1日 init -> /system/bin/init
-rwxr-x---. 1 root 2000 2.1K 2009年 1月 1日 init.environ.rc
-rwxr-x---. 1 root 2000 33K 2009年 1月 1日 init.rc
-rwxr-x---. 1 root 2000 3.1K 2009年 1月 1日 init.recovery.qcom.rc
-rwxr-x---. 1 root 2000 7.6K 2009年 1月 1日 init.usb.configfs.rc
-rwxr-x---. 1 root 2000 5.6K 2009年 1月 1日 init.usb.rc
-rwxr-x---. 1 root 2000 611 2009年 1月 1日 init.zygote32.rc
-rwxr-x---. 1 root 2000 1.1K 2009年 1月 1日 init.zygote64_32.rc
drwx------. 2 root root 16K 2009年 1月 1日 lost+found
drwxr-xr-x. 2 root happ 4.0K 2009年 1月 1日 mnt
drwxr-xr-x. 2 root root 4.0K 2009年 1月 1日 odm
drwxr-xr-x. 2 root root 4.0K 2009年 1月 1日 oem
drwxr-xr-x. 2 root root 4.0K 2009年 1月 1日 onyxconfig
drwxr-xr-x. 2 root root 4.0K 2009年 1月 1日 proc
lrw-r--r--. 1 root root 15 2009年 1月 1日 product -> /system/product
lrw-r--r--. 1 root root 24 2009年 1月 1日 product_services -> /system/product_services
drwxr-xr-x. 4 root root 4.0K 2009年 1月 1日 res
drwxr-x---. 2 root 2000 4.0K 2009年 1月 1日 sbin
lrw-r--r--. 1 root root 21 2009年 1月 1日 sdcard -> /storage/self/primary
drwxr-x--x. 2 root 1028 4.0K 2009年 1月 1日 storage
drwxr-xr-x. 2 root root 4.0K 2009年 1月 1日 sys
drwxr-xr-x. 17 root root 4.0K 2009年 1月 1日 system
-rw-r--r--. 1 root root 2.6K 2009年 1月 1日 ueventd.rc
drwxr-xr-x. 2 root 2000 4.0K 2009年 1月 1日 vendor
-rw-r--r--. 1 root root 524 2009年 1月 1日 verity_key
drwxr-xr-x. 2 root root 4.0K 2009年 1月 1日 waveform

~/mnt2$ ls
app bt_firmware default.prop etc firmware_mnt lib64 odm radio ueventd.rc
bin build.prop dsp firmware lib lost+found overlay rfs

The default filesystem for fastboot -w is ext4, but what is the correct filesystem for userdata—ext4 or f2fs?
dangdang_read is offline   Reply With Quote