View: 2286|Reply: 1

howto change to f2fs

[Copy link]

5

threads

8

posts

76

credits

Registered member

Rank: 2

credits
76
Published in 2022-6-19 07:09:54 | Show all floors |Read mode

Usually, i'm using an extra micro-SD-card through an USB-adapter, for frequently saving (small) data every few minutes  ..
and have this SD-card formatted with F2FS-filesystem to increase it's lifetime.
On OrangePi Zero 2 with one single USB slot, the USB-slot is needed for another device (RTL-SDR dongle).
Thus, it would be great, to have the bootable SD-card - containing the operating-system, formatted with F2FS.
On devices like Orange Pi 3 LTS, which has enough USB slots, this would save one SD-card and the USB-adapter.



https://home.strw.leidenuniv.nl/~dullaart/programming/raspberrypi/2022/01/12/raspi-f2fs-image.html
gives a nice tutorial for Raspberry Pi .. but i couldn't get it run, as the image
Orangepizero2_3.0.0_debian_bullseye_server_linux5.16.17.7z
does contain one single partition including / and /boot.

Ideally, the provided images would use F2FS and/or have separate /boot and / partitions.
For now, can someone point out, how to convert the ext4 partition to F2FS and keep it bootable?




5

threads

8

posts

76

credits

Registered member

Rank: 2

credits
76
 Author| Published in 2022-6-19 18:47:44 | Show all floors

meanwhile, i found a partial solution, which keeps the image/sd-card bootable:

* keep root / as ext4, just shrink it (used 'gparted')
* added extra partition behind for /home, formatted with F2FS
* moved contents of /home to new partition ('rsync -axv' + 'rm -rf')
* amended fstab for new /home with F2FS

this solution isn't ideal, cause system updates and logs are still on ext4 ..
however, at least it works.

i'm still looking for a full solution!


You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list