jaegeuk / f2fs-tools

Other
38 stars 31 forks source link

F2FS tools need a serious clean up #21

Open CliveMcCarthy opened 9 months ago

CliveMcCarthy commented 9 months ago

Using f2fs tools on Ubuntu: I wanted to format half-a-dozen USB flash drives to be identical and have the F2FS filesystem. I'm 'lazy' and wanted to write a simple shell script to do the job. But first, sensibly, I needed to see what options mkfs.f2fs had and then use them in the script.

After a series of attempts I couldn't get the mkfs.f2fs to work. It simply said it couldn't find the device. So I tried mkfs.ext4 and it worked just fine.

Frustrated I gave up on the idea of writing the script and used the disk drive GUI instead. However, even then it seems that mkfs.f2fs would only work if the drive was already ext4 formatted -- not the plain FAT format that the Samsung USB flash drives normally come with.

I also note that when a drive is F2FS formatted the disk drive GUI says that the contents are: "unknown (f2fs 1.11)" -- quite ugly.

My sense is that the F2FS tools need a serious clean up.

kalvdans commented 1 week ago

Did you try with mkfs.f2fs -f flag?