Here a "short" guide on the setup of a f2fs partition on Raspberry PI (just change the commands if necessary in the case of other distribution or different sdX etc.).
Prerequisite: to have a PC with Linux OS (lol)
- Install on the PC at least a kernel of version 3.8 (f2fs is only supported by 3.8 and later) and make sure it is compiled with support for f2fs (in case it should be compiled from source code)
- Compile and install the kernel 3.8 on Raspberry, also with support f2fs (included in the kernel and not as a separate module!) For instructions refer you to http://elinux.org/RPi_Kernel_Compilation (I highly recommend the Cross-compiling to save A LOT OF time). Therefore, make sure that the Raspberry start up properly with the new kernel.
EDIT: there is already a precompiled 3.8 kernel with f2fs support (thanks to portets)
Code: Select all
sudo rpi-update 2c4e92c01ff14d8f3e1ee35b995d430b4e6d1e1b
Code: Select all
sudo cp -a /mnt/* ~/backup_sd
- Install the f2fs-tools package on the PC:
Code: Select all
sudo apt-get install f2fs-tools
Code: Select all
sudo mkfs.f2fs /dev/sdb2
Code: Select all
sudo mount -t f2fs /dev/sdb2 /mnt
Code: Select all
sudo cp -a ~/backup_sd/* /mnt
Code: Select all
/dev/mmcblk0p2 / f2fs defaults,noatime,discard 0 0
Code: Select all
rootfstype=ext4
Code: Select all
rootfstype=f2fs
Code: Select all
sudo umount /mnt

Obviously I do not take any responsibility in case of damage (however very unlikely unless of human carelessness in the execution of all the steps).
The process is quite elaborate and not exactly proof beginner, but it's worth it. Let me know the results
