Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DietPi-FS_partition_resize | F2FS filesystem not expanded #6143

Open
MichaIng opened this issue Feb 9, 2023 · 8 comments
Open

DietPi-FS_partition_resize | F2FS filesystem not expanded #6143

MichaIng opened this issue Feb 9, 2023 · 8 comments

Comments

@MichaIng
Copy link
Owner

MichaIng commented Feb 9, 2023

I downloaded the latest beta image DietPi_RPi-ARMv8-Bullseye_F2FS.7z and installed on my RPi 3B which had Samsung Ultra SD card of size 64GB. I was running stable version of dietpi prior which was formatted for this beta install.

While running the first boot setup itself I could see that the drive manager is only showing less than 1GB file system size for my / folder and is not allowing to increase though I had a 64GB SD card. My install of additional software was all failing since there is not enough free space.

Again formatted the SD and reinstalled the stable version of Dietpi and I could see that the drive manager shows full 64 GB.

Originally posted by @sajimenon in #6130 (comment)

@MichaIng MichaIng changed the title I downloaded the latest beta image "[DietPi_RPi-ARMv8-Bullseye_F2FS.7z](https://dietpi.com/downloads/images/testing/DietPi_RPi-ARMv8-Bullseye_F2FS.7z)" and installed on my RPi 3B which had Samsung Ultra SD card of size 64GB. I was running stable version of dietpi prior which was formatted for this beta install. DietPi-FS_partition_resize | F2FS image not expanded Feb 9, 2023
@MichaIng
Copy link
Owner Author

MichaIng commented Feb 9, 2023

@sajimenon
I made a new image from this since it is not related to the beta. The F2FS and Btrfs images are experimental for testing purpose only. However, since we aim to offer them as well when proven stable. Can you show the output of:

cat /var/tmp/dietpi/logs/fs_partition_resize.log

@MichaIng MichaIng added the F2FS label Feb 9, 2023
@sajimenon
Copy link

sajimenon commented Feb 9, 2023 via email

@MichaIng
Copy link
Owner Author

MichaIng commented Feb 9, 2023

mount: /: mount point is busy.

Ah that is the problem, remounting R/O fails, and online resizing is not supported on F2FS.

Can you try it manually:

mount -o remount,ro /
resize.f2fs "$G_ROOTFS_DEV"
mount -o remount,rw /

Ah, I think the problem is that we are writing this exact log file. Uff this is complicated to solve since we want to have the log file, of course.

Probably a temporary little tmpfs to write the log file to and move to rootfs via exit trap. Or stop writing the log file temporarily, but this makes the script very complicated. I need to think about this...

@MichaIng MichaIng changed the title DietPi-FS_partition_resize | F2FS image not expanded DietPi-FS_partition_resize | F2FS filesystem not expanded Feb 9, 2023
@Joulinar
Copy link
Collaborator

Joulinar commented Feb 9, 2023

Probably using a temporary filesystem would be easiest

@sajimenon
Copy link

sajimenon commented Feb 9, 2023 via email

@rekcodocker
Copy link

rekcodocker commented Feb 22, 2023

I had a conversation about this too.
When it failed I tried to resize the SD card on my laptop.
Resize failed with an error. It was not mounted. So it is not limited to the raspberry.
I found that the partition was resized correctly but the F2FS filesystem on the partition was not - because resize-f2fs errored.

Details and the exact output are in #606

My workaround was to use a laptop:

  • copy all the files (sudo rsync -ax)
  • create a totally new partition on the SD card from scratch, which of course filled the partition
  • copy the files back.

This is running on two Rpi3 s right now.

@MichaIng
Copy link
Owner Author

I found that the partition was resized correctly but the F2FS filesystem on the partition was not

Yes, partition resizing of course works (otherwise the whole thing would break with any rootfs type), it is F2FS only which has this limitation of not allowing online resizing. Together with the fact that shrinking F2FS is not possible at all, it makes it quite hard to ship images with F2FS rootfs, but we'll be able to deal with those issues. There are a bunch of ways, I just did not decide yet which one is most robust while having least impact on rootfs of other types.

@MichaIng MichaIng modified the milestones: v8.15, v8.16 Mar 11, 2023
@MichaIng MichaIng modified the milestones: v8.16, v8.17 Apr 7, 2023
@MichaIng MichaIng modified the milestones: v8.17, v8.18 May 6, 2023
@MichaIng MichaIng modified the milestones: v8.18, v8.19 Jun 3, 2023
@MichaIng MichaIng modified the milestones: v8.19, v8.20 Jul 2, 2023
@MichaIng MichaIng modified the milestones: v8.20, v8.21 Jul 29, 2023
@MichaIng MichaIng removed this from the v8.21 milestone Aug 27, 2023
@MichaIng MichaIng added this to the v8.22 milestone Aug 27, 2023
@MichaIng MichaIng modified the milestones: v8.22, v8.23 Sep 23, 2023
@MichaIng MichaIng modified the milestones: v8.23, v8.24 Oct 21, 2023
@MichaIng MichaIng modified the milestones: v8.24, v8.25 Nov 19, 2023
@rekcodocker
Copy link

I check every now and then.
I still like F2FS support.
I have run an f2fs system running Docker, PiHole, Zigbee2Mqtt, NodeRed and MQTT for almost a year now - without FS problems.

@MichaIng MichaIng modified the milestones: v8.25, v9.0 Dec 20, 2023
@MichaIng MichaIng modified the milestones: v9.0, v9.1 Jan 20, 2024
@MichaIng MichaIng modified the milestones: v9.1, v9.2 Feb 20, 2024
@MichaIng MichaIng modified the milestones: v9.2, v9.3 Mar 17, 2024
@MichaIng MichaIng modified the milestones: v9.3, v9.4 Apr 16, 2024
@MichaIng MichaIng modified the milestones: v9.4, v9.5 May 13, 2024
@MichaIng MichaIng modified the milestones: v9.5, v9.6 Jun 10, 2024
@MichaIng MichaIng modified the milestones: v9.6, v9.7 Jul 10, 2024
@MichaIng MichaIng modified the milestones: v9.7, v9.8 Aug 26, 2024
@MichaIng MichaIng modified the milestones: v9.8, v9.9 Oct 18, 2024
@MichaIng MichaIng modified the milestones: v9.9, v9.10 Dec 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants