I wish to convert my current
/home partition to BTRFS (or other file systems) without losing data if possible, what steps should I take for this? is it safe?
If you install
First run an
To rollabck, run:
To clean up a bit of space, and make the conversion permanent, delete
Of course, while this is a relatively safe procedure as only 1 MB needs to be moved, and the original Ext2/3/4 FS is available as an image, it is up to you to decide whether to back up. As with any filesystem operations, there is an inherent risk of data loss.
Your data stays in place, as well as your Ext4 metadata. However, the first 1 MB is moved, and a series of BTRFS metadata is created within Ext4 free space.
You (and many others) use "sudo fsck.ext3 -f /dev/xxx" (with 3 "x"s) as an example. That's fine if you understand that xxx = a partition (which is typically 4 letters long, as in sdxn), not a volume (typically 3 letters long, as in sdx). In other words, use "sdb1" (or similar), not "sdb" (as I initially did, generating errors during fsck). I'm sure this is obvious to most, just wanted to clarify for the rest of us.