How to convert ext4 to his potential sucessor bcachefs, on Linux Mint 21?
**The becachefs management software bcachefs-tools are available by Application Management of Linux Mint 21.
The follow part of the bcachefs manual, looks to try to describe a way, which offer the migration of ext4 to bcachefs.**
bcachefs migrate [options] device Migrate an existing filesystem to bcachefs
-f fs Root of filesystem to migrate
--encrypted
Enable whole filesystem encryption (chacha20/poly1305)
--no_passphrase
Don't encrypt master encryption key
-F Force, even if metadata file already exists
bcachefs migrate-superblock [options] device Create default superblock after migrating
-d device
Device to create superblock for
-o offset
Offset of existing superblock
Source:
https://web.archive.org/web/20230205130327/https://bcachefs.org/bcachefs-principles-of-operation.pdf
How to convert ext4 to his his potential successor bcachefs, on Linux Mint 21 ?
Any example exist ? Possible like the follow:
convert ext4 system to bcachefs system source /dev/sda /dev/sda
A comparable question can be found on stackexchange:
- https://unix.stackexchange.com/questions/734608/how-to-convert-ext4-to-his-potential-sucessor-bcachefs-on-linux-mint-21/735205?noredirect=1#comment1395748_735205
- https://unix.stackexchange.com/questions/734608/how-to-convert-ext4-to-his-potential-sucessor-bcachefs-on-linux-mint-21
The conversion is failing tests at the moment so I would wait till that is stable, see test single_device.migrate_from_ext4
https://evilpiepirate.org/~testdashboard/ci?branch=bcachefs
you can see the source code for the test here, that shows you how to use it: https://evilpiepirate.org/git/ktest.git/tree/tests/bcachefs/single_device.ktest#n1061
The gist of it seems to be run migrate on the mounted file system, then unmount and run migrate-superblock on the block device.
THX for the answer:
The gist of it seems to be run
migrateon the mounted file system, then unmount and runmigrate-superblockon the block device.
How to:
- run migrate
- migrate-superblock
Not everybody are a programmer, which are able to figure out this from follow:
- https://evilpiepirate.org/git/ktest.git/tree/tests/bcachefs/single_device.ktest#n1061
It's great that this works. Can an ext4 raid array be migrated? Raid 1? Raid 5?