Open jimis opened 4 years ago
backup exiting partition/ tar --create --preserve-permissions --gzip --verbose --file=/md0/RasPi.Backup.FS.tar.gz --acls --selinux --xattrs --exclude=/proc --exclude=/tmp --exclude=/mnt --exclude=/dev --exclude=/md0 --exclude=/sys --exclude=/media --exclude=/run --exclude=/boot --exclude=/var/log --exclude=/home/pi --exclude=/var/cache/apt/archives --exclude=/usr/src/linux-headers --exclude=/home//.gvfs --exclude=/home//.cache --exclude=/home//.local/share/Trash --one-file-system --record-size=715776K /
this will crate FS tarball /md0/RasPi.Backup.FS.tar.gz /md0 is external location like USB drive
take your sdcard and usb on the linux pc, format sdcrad parttion new F2FS then restore sudo tar -xvpzf /path/to/RasPi.Backup.FS.tar.gz -C /mount/sdc2 --numeric-owner
update your fastab
may this help you
F2FS has been designed on the basis of log-structured filesystems, with the goal of performing optimally on managed flash media like SD cards, minimizing writes and extending their lifetime. It has seen some usage on Android phones, and it's constantly being improved with features that Raspberry Pi would very much like to have, like online compression.
Currently Raspberry Pi OS root partition can be converted to F2FS using a time-consuming process:
fstab
and boot command line on the SD cardThis is a dangerous and write-intensive process. In order to avoid it, it would be nice if installation could be done directly on a F2FS root partition.