Skip to content

Instantly share code, notes, and snippets.

@koumaza
Last active May 26, 2020 05:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save koumaza/d10b4535f715d9380ba3f27b2a2dec34 to your computer and use it in GitHub Desktop.
Save koumaza/d10b4535f715d9380ba3f27b2a2dec34 to your computer and use it in GitHub Desktop.
Fix TWRP in Failed to mount '/data'
1 (Optional)

1-a adb push busybox-*** / ; adb shell

1-b chmod a+x busybox-* ; busybox mkfs.vfat /dev/block/bootdevice/by-name/userdata

2

2-a unmount data

2-b adb shell ; mke2fs -t ext4 /dev/block/bootdevice/by-name/userdata

At this point it is Ext4, but it may be vfat in TWRP advanced wipe page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment