問題如下:
$ fastboot format:ext4 userdata Warning: userdata type is f2fs, but ext4 was requested for formatting. mke2fs 1.44.5 (15-Dec-2018) Warning: RAID stripe-width 1 not an even multiple of stride 2. /tmp/TemporaryFile-hADjY5: Unimplemented ext2 library function while setting up superblock /usr/lib/android-sdk/platform-tools/mke2fs failed with status 1 mke2fs failed: 1 error: Cannot generate image for userdata
解法如下:
使用新版platform-tools,如:platform-tools_r33.0.3-linux.zip