Flashed Release 9 onto a 32GB SD card. System boots and is functional, though as noted in the release notes, the partition is not automatically resized.
However, while I am able to successfully resize the partition using parted, I'm unable to resize the filesystem itself:
$ sudo resize.f2fs /dev/mmcblk0p2
Info: Segments per section = 1
Info: Sections per zone = 1
Info: sector size = 512
Info: total sectors = 61809664 (30180 MB)
Info: MKFS version
"Linux version 5.11.0-0.rc4.129.fc34.x86_64 ([email protected]) (gcc (GCC) 11.0.0 20210116 (Red Hat 11.0.0-0), GNU ld version 2.35.1-21.fc34) #1 SMP Mon Jan 18 07:07:56 UTC 2021"
Info: FSCK version
from "Linux version 5.11.0-0.rc4.129.fc34.x86_64 ([email protected]) (gcc (GCC) 11.0.0 20210116 (Red Hat 11.0.0-0), GNU ld version 2.35.1-21.fc34) #1 SMP Mon Jan 18 07:07:56 UTC 2021"
to "Linux version 5.11.16-300.fc34.x86_64 ([email protected]) (gcc (GCC) 11.0.1 20210324 (Red Hat 11.0.1-0), GNU ld version 2.35.1-41.fc34) #1 SMP Wed Apr 21 13:18:33 UTC 2021"
Info: superblock features = 0 :
Info: superblock encrypt level = 0, salt = 00000000000000000000000000000000
Info: total FS sectors = 8486912 (4144 MB)
Info: CKPT version = 4cb3f394
Error: Device size is not sufficient for F2FS volume, more segment needed =5023
To eliminate the SD Card itself as a problem, I flashed the image to the Internal 32GB eMMC of my Pinephone Beta using jumpdrive over usb, but encountered the same issue as above (but with different device names)
To eliminate my computer's tools (Fedora 34), I booted this fedora image via SD and attempted to resize the internal emmc filesystem, encountering the same issue.
Noting that both SD and EMMC are 32GB, I attempted with various partition sizes via parted, instead of setting the end to 100%, I attempted 90% and 80% as well. Both failed, but with a higher "More segment needed" as the partition was made smaller.
It looks like resize.f2fs might be favouring large filesystems, either by design or by some settings at filesystem create time. There does not seem to be a tune.f2fs to attempt changing any settings, and I've well exhausted my f2fs knowledge.
My current assumption is that using a >32 GB SD card would probably resize correctly, but would like some confirmation before I order one.
Flashed Release 9 onto a 32GB SD card. System boots and is functional, though as noted in the release notes, the partition is not automatically resized.
However, while I am able to successfully resize the partition using parted, I'm unable to resize the filesystem itself:
To eliminate the SD Card itself as a problem, I flashed the image to the Internal 32GB eMMC of my Pinephone Beta using jumpdrive over usb, but encountered the same issue as above (but with different device names)
To eliminate my computer's tools (Fedora 34), I booted this fedora image via SD and attempted to resize the internal emmc filesystem, encountering the same issue.
Noting that both SD and EMMC are 32GB, I attempted with various partition sizes via parted, instead of setting the end to 100%, I attempted 90% and 80% as well. Both failed, but with a higher "More segment needed" as the partition was made smaller.
It looks like resize.f2fs might be favouring large filesystems, either by design or by some settings at filesystem create time. There does not seem to be a tune.f2fs to attempt changing any settings, and I've well exhausted my f2fs knowledge.
My current assumption is that using a >32 GB SD card would probably resize correctly, but would like some confirmation before I order one.