View: 3950|Reply: 2

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!


191

threads

299

posts

1229

credits

Gold member

Rank: 6Rank: 6

credits
1229
Published in 4 daybefore | Show all floors
Živjo. Želel sem si kupiti novo električno kolo za vožnjo v službo, vendar je bila cena zame previsoka. Poskusil sem priigrati nekaj denarja na spletu, a sem imel smolo in izgubil 60 evrov v trenutku. Bil sem res razočaran in jezen nase zaradi neumnosti. Našel sem sweetyspin in se odločil za zadnji poskus z višjo stavo, vse ali nič. Srce mi je razbijalo, a zadel sem velik dobitek. Takoj sem naročil kolo in čelado. To je bila tvegana poteza, ki se je na koncu izplačala in mi olajšala vsakdanje poti v službo.
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list