Unlike journaling file systems like ext4, BTRFS does not overwrite the data when it is modified, instead it writes the data to a new block and changes metadata to point to the latest version of the file. This provides better protection against power failures.
Snapshots
BTRFS offers fast incremental snapshot creation and tools to backup and restore.
Creating the file system and btrfs partition
parted /dev/nvmexxx
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) mklabel gpt
(parted) mkpart primary btrfs 4MiB 100%
(parted) print
(parted) quit
after the partition is created, create the btrfs file system on it by running
sudo mkfs.btrfs /dev/sdxy
Mounting the partition
Temporary mount with
sudo mount /dev/sdxy /mountpoint
Show info about the btrfs
To see the UUID, size, usage of all btrfs disks.
sudo btrfs filesystem show
See detailed disk usage
sudo btrfs filesystem usage /Subvol
Creating the subvolumes
To create a subvolume called data
sudo btrfs subvolume create /mountpoint/data
List all the subvolumes
To create a subvolume called data
sudo btrfs subvolume list /mountpoint/data
Mounting the subvolumes
to make the mount permanent, edit the '/etc/fstab' file
OpenSuse had recommended btrfs, but I chose ext4 as its more familiar/popular. Also, I was installing Leap in an HDD.
Will try it when I install linux again(athinini ethra kollam aavumoo aavo?)
Unrelated, but does anyone know to improve booting time in linux. I've looked up the archwiki n followed some of the points there.