Pixel 6 crash after memory full. Need help

Hello

My Pixel6 won’t boot, here’s what happened :

  • the phone was up and I used it normally
  • the memory becomes full but the phone was still up
  • I experienced issues like : cannot turn off wifi, so I reboot the phone
  • at startup I can read messages like “this application stops systematically” … and after 5 seconds the phone say “shutdown…” and turned off.

The good thing is :

  • I can boot in recovery
  • I am root.
    so I tried :
  • recovery > enable adb
  • adb -s "XXXX...XX" shell
  • I got the shell but can’t find datas.
df -h
Filesystem      Size Used Avail Use% Mounted on
tmpfs           3.6G 1.3M  3.6G   1% /dev
tmpfs           3.6G    0  3.6G   0% /mnt
tmpfs           3.6G    0  3.6G   0% /apex
tmpfs           3.6G 4.0K  3.6G   1% /linkerconfig
tmpfs           3.6G  32K  3.6G   1% /tmp
tmpfs           3.6G    0  3.6G   0% /storage

In recovery I did :

  • recovery > Advanced > Mount/umount system, but got :
ERROR : recovery: [libfs_mgr]Unable to enable ext4 verify on /dev/block/platform/14700000.ufs/by-name/metadata because /system/bin/tune2fs is missing
Mounted /mnt/system.
  • adb -s "XXXX...XX" shell
oriole:/ # df -h /mnt/system/ 
Filesystem      Size Used Avail Use% Mounted on
/dev/block/dm-0 1.2G 1.2G   0M  100% /mnt/system
  • with du I tried to find something to delete to make space
    I found
    /mnt/system/system/app/eDrive/eDrive.apk
    and /mnt/system/system/app/Maps/Maps.apk
  • exit
mkdir tmp_adb; cd tmp_adb/
adb pull /mnt/system/system/app/eDrive/eDrive.apk .
adb pull /mnt/system/system/app/Maps/Maps.apk .
adb shell mount -o rw,remount,rw /mnt/system

adb -s "XXXX...XX" shell

rm /mnt/system/system/app/eDrive/eDrive.apk /mnt/system/system/app/Maps/Maps.apk
df -h /mnt/system/                                                                                                         
Filesystem      Size Used Avail Use% Mounted on
/dev/block/dm-0 1.2G 1.1G   92M  94% /mnt/system
  • exit
  • reboot > same issue

I would like to mount my user data partition in adb to get access to my files. But can’t managed to find it.

ls /dev/block/platform/14700000.ufs/by-name/                                                                           
abl_a  bl2_b   devinfo       dtbo_a      frp     ldfw_b    modem_b         pvmfw_a  userdata         vbmeta_vendor_a
abl_b  bl31_a  dpm_a         dtbo_b      gsa_a   metadata  modem_userdata  pvmfw_b  vbmeta_a         vbmeta_vendor_b
bl1_a  bl31_b  dpm_b         efs         gsa_b   mfg_data  pbl_a           super    vbmeta_b         vendor_boot_a
bl1_b  boot_a  dram_train_a  efs_backup  klog    misc      pbl_b           tzsw_a   vbmeta_system_a  vendor_boot_b
bl2_a  boot_b  dram_train_b  fips        ldfw_a  modem_a   persist         tzsw_b   vbmeta_system_b

I try :

adb -s "XXXX...XX" shell 
mkdir /mnt/tmp
mount /dev/block/platform/14700000.ufs/by-name/userdata  /mnt/tmp/                                                     
mount: /dev/block/platform/14700000.ufs/by-name/userdata: need -t

mount -t ext4 /dev/block/platform/14700000.ufs/by-name/userdata /mnt/tmp/                                              
mount: '/dev/block/platform/14700000.ufs/by-name/userdata'->'/mnt/tmp/': Invalid argument

mount -t f2fs /dev/block/platform/14700000.ufs/by-name/userdata /mnt/tmp/                                              
mount: '/dev/block/platform/14700000.ufs/by-name/userdata'->'/mnt/tmp/': Invalid argument

Can someone know how to mount userdata ?
OR any idea to resolve the boot issue ?

Thanks for your help

memory as in “disk space”? in any case, you’d need to free up space in userdata, not system

in an older thread I speculate “… the invalid arg error is originating from fs [recovery-] kernel module / mount-option incompatibility”, see How to mount encrypted /data partition in recovery mode? - #51 by tcecyk

Can you try suppling some of the mount options (oriole → raviole → gs101) of userdatas

fstab entry

(it’s f2fs)

mnt_flags / options:

noatime,nosuid,nodev,discard,reserve_root=32768,resgid=1065,fsync_mode=nobarrier,inlinecrypt,atgc,checkpoint_merge

fs_mgr_flags:

latemount,wait,check,quota,formattable,sysfs_path=/dev/sys/block/bootdevice,checkpoint=fs,reservedsize=128M,fileencryption=@fileencryption@,metadata_encryption=@metadata_encryption@,keydirectory=/metadata/vold/metadata_encryption,fscompress,readahead_size_kb=128

3 Likes

Hello @tcecyk thank you for your help :slight_smile:

  • the thread : How to mount encrypted /data partition in recovery mode? - #51 by tcecyk helps me but does not solve the problem.
    My issue is the exact same problem :

    memory to 100% - now, upon phone start, MicroG and system services immediately crash, shutting down the phone.

  • I can’t managed to find twrp for my phone : no Pixel6 here twrp.me/Devices/Google

  • I tried many many mount options (thanks for the link) but I don’t know how to deal with mnt_flags or fs_mgr_flags en the -o
    The option line is very long ! ! !

Work in progress

pixels seems special in terms of recovery.
as for the mount, I’d try to start with mnt_flags only.

mount -v -t f2fs -o noatime,nosuid,nodev,discard,reserve_root=32768,resgid=1065,fsync_mode=nobarrier,inlinecrypt,atgc,checkpoint_merge /dev/block/bootdevice/by-name/userdata /mnt/tmp/

I’ll try this week-end