Contents
Where do I mount a subvolume in Btrfs?
To mount a Btrfs subvolume, you need to know either its name or its ID. You can find the name or the ID of all the Btrfs subvolumes created on the Btrfs filesystem mounted on the /data directory as follows: Let’s mount the projects Btrfs subvolume.
How to mount the Btrfs filesystem in Linux?
$ sudo mkdir -v /data To mount the Btrfs filesystem created on the sdb1 partition in the /data directory, run the following command: $ sudo mount /dev/sdb1 /data The Btrfs filesystem should be mounted as you can see in the screenshot below.
How to remove the test Btrfs subvolume in Linux?
To remove the test Btrfs subvolume, run the following command: NOTE: If you delete a Btrfs subvolume, all the files/directories in that subvolume will also be removed. As you can see, the Btrfs subvolume test is removed.
Where can I find the UUID of Btrfs?
Find the UUID of the Btrfs filesystem on the sdb1 partition as follows: As you can see, the UUID of the Btrfs filesystem is 0b56138b-6124-4ec4-a7a3-7c503516a65c. Now, edit the /etc/fstab file with the nano text editor as follows: Type in the following lines in the /etc/fstab file: NOTE: Make changes as required.
https://www.youtube.com/watch?v=8yDkE7l_Usc
What are the features of Btrfs file system?
Btrfs has self-healing features and have the capability of spanning multiple volumes. In Btrfs we can shrink, grow the file-system, add or remove block device in online mode. It also provides subvolumes, Subvolumes are not a separate block devices, we can create snapshots and restore the snapshot for those subvolumes.
How to Mount Btrfs filesystem in sdb1 partition?
To mount the Btrfs filesystem created on the sdb1 partition in the /data directory, run the following command: $ sudo mount /dev/sdb1 /data The Btrfs filesystem should be mounted as you can see in the screenshot below. $ df -h /data