FOGProject / fogproject

An open source computer cloning & management system
https://fogproject.org
GNU General Public License v3.0
1.09k stars 221 forks source link

[Feature req] Support F2FS #517

Closed bence98 closed 1 year ago

bence98 commented 1 year ago

I installed Linux to an NVMe drive, and I heard that EXT4 is not great for flash-based media, so I chose to use F2FS as my root partition instead. Now I can't image it with FOG, as it fails with "No resizable partitions found". Using FOG 1.5.9, FOS kernel 5.15.68 on amd64 arch.

George1422 commented 1 year ago

FOG uses partclone for imaging (same as clonezilla) so FOG is limited to supported operating systems as Partclone supports. https://partclone.org/usage/partclone.php#:~:text=Partclone%20supported%20file%20system%20include,)%20and%20MINIX(MINIX3). Beyond that FOG does not supported all of the filesystems that partclone supports either. Your only hope for cloning these unsupported file systems with FOG is by using RAW mode, that does a sector by sector block copy.

bence98 commented 1 year ago

It is possible to copy the partition with Partclone.image, when I edited out the check for NTFS or EXT4 partitions being present from the fog.upload script, it uploaded fine. However, a proper F2FS support would be better (resize.f2fs etc.)

Quazz commented 1 year ago

@bence98 Can you create an issue at https://github.com/FOGProject/fos ? That's the boot environment OS for FOG, this one is for the WebGUI.

That said, while partclone supports F2FS, we don't have anything in the code to resize F2FS partitions at the moment.

Since partclone supports this filesystem, you don't have to use RAW, you can just non-resizable type.

Sebastian-Roth commented 1 year ago

Closing this in favour of the newly opened request in the fos repo, thanks.