In case the partition you want to convert is your system partition you will need to perform the steps in this guide from another Linux distribution instance, like the RebornOS live ISO.
Do not perform this operation on data you can't afford to lose. There are reports of btrfs-convert failing, leaving behind a damaged partition.
Find out the device name of the partition you want to convert to Btrfs. lsblk
, fdisk -l
or a graphical partition manager are good ways to find the device name of the partition you want to convert.
If the partition is mounted, unmount it: sudo umount /dev/<device name of partition>
Run sudo fsck -fy /dev/<device name of partition>
to check the file system for inconsistencies and repair them if possible. If issues were found, run again.
Run sudo btrfs-convert --uuid copy /dev/<device name of partition>
to convert the file system to Btrfs. If no errors occurred, the file system should be Btrfs now.
In case the converted partition is a system partition:
To still be able to boot into the new Btrfs partition you have to perform the following steps:
sudo mount /dev/<device name of partition> /mnt
), and into it also the matching EFI system partition (sudo mount /dev/<device name of ESP > /mnt/boot/efi
).sudo arch-chroot /mnt
, then adjust the system's fstab (nano /etc/fstab
) by adjusting the filesystem type to "btrfs" and removing/replacing eventual Btrfs-incompatible mount options.mkinitcpio -P
and grub-mkconfig -o /boot/grub/grub.cfg
. You can now exit the chroot jail and reboot into your operating system, now on a Btrfs filesystem.To take full advantage of the Btrfs filesystem features read the following guide: https://osdn.net/projects/rebornos/wiki/Btrfs system snapshots and rollbacks with Timeshift