0

I'm trying to format my ext4 partitions (EDIT: format from ext4 to f2fs format) on my android 5.1 J3 Pro using the following command, with plataform-tools:

make_f2fs.exe -c j3xproltechn data

but i get this error:

F2FS-tools: mkfs.f2fs Ver: 1.14.0 (2020-08-24)

Info: Disable heap-based policy
Info: Debug level = 0
Info: Trim is enabled
        Error: Failed to get device size! 

Can somebody help me? Thanks! (I rooted the phone already.)

8
  • 1
    What's data? You need to provide the filesystem path to the block device of the partition you want to create filesystem on: How to create filesystem in TWRP? // If you are trying to create ext4 filesystem then use mkfs.ext4, not mkfs.f2fs. ext4 and f2fs are different filesystems. Feb 22 at 17:40
  • 1
    @IrfanLatif As the executable is an make_f2fs.exe this question seems to be about the make_f2fs version that is included in the Android SDK on Windows. In the make_f2fs help a "device" can be specified but it is unclear what type of device, especially as a Linux block device would not make sense on Windows. Therefore it is completely unclear if this tool is of any use on Windows besides creating f2fs partition files for an emulator.
    – Robert
    Feb 23 at 8:07
  • @Robert never used mkfs.f2fs from Windows or Linux, so I expected it to be a block device. You must be correct. They say: "Block device target is not supported on Windows". Not sure what would be the correct form of command then. Feb 23 at 14:19
  • @IrfanLatif, i will edit the question. Im trying to format from ext4 to f2fs format, since the rom i have is in this format. Feb 23 at 14:56
  • @IrfanLatif, all TWRP that work on my phone don't have the mkfs.f2fs command. Ive downloaded some TWRP that support F2FS formatting, but they don't boot up on my phone. Thats why im trying using plataform-tools on windows, using the make_f2fs.exe on the cmd. Feb 23 at 15:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.