Bug 1979307 - [f2fs-tools] Unable to resize f2fs partition on F34 for the pinephone, but it works on F33
Summary: [f2fs-tools] Unable to resize f2fs partition on F34 for the pinephone, but it...
Keywords:
Status: NEW
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: f2fs-tools
Version: epel8
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Eduardo Echeverria
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-07-05 14:46 UTC by camorris@redhat.co
Modified: 2021-08-30 22:16 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github nikhiljha pp-fedora-sdsetup issues 109 0 None open "Device size is not sufficient" when resizing f2fs partition 2021-07-05 14:46:54 UTC

Description camorris@redhat.co 2021-07-05 14:46:55 UTC
Description of problem:
[fedora-mobile]# rpm -qa | grep f2fs
f2fs-tools-1.14.0-2.fc34.x86_64


Version-Release number of selected component (if applicable):
f2fs-tools-1.14.0-2.fc34.x86_64

How reproducible:
Everytime

Steps to Reproduce:
## Using the pinephone in jumpmode to have access to EMMC disk
1. dd if=fedora.img of=/dev/sdd bs=1M status=progress 
2. resize partition to use maximum capacity instead of 4gb
3. resize.f2fs /dev/sda2

Actual results:
Error: Device size is not sufficient for F2FS volume, more segment needed =5023

Expected results:
Should works

Additional info:
See this github issue: https://github.com/nikhiljha/pp-fedora-sdsetup/issues/109

This workaround works: 
sudo podman run --rm --device="/dev/<F2FS PARTITION>:/dev/f2fspart:rwm" --entrypoint '["/bin/bash", "-c"]' fedora:33 "dnf -y install f2fs-tools && resize.f2fs /dev/f2fspart"


Note You need to log in before you can comment on or make changes to this bug.