Hello Garuda users.
I want to do this:
have opt as a subvolume.
(etc/fstab)
UUID=5fbd1add-9f9f9f-492d-bf66-9f61355d7cdc /opt btrfs subvol=/@opt_,noatime,compress=zstd,discard=async,ssd 0 0
I have been doing some research and I understand that I need to create a subvolume
is this the correct way?
sudo btrfs subvolume create @opt
If I reboot in theory this should work fine?
Yes, except you have an underscore after the subvolume name in /etc/fstab
which is not in the subvolume name you noted. The rest looks fine.
3 Likes
If there is already content in /opt you should first move it away and then move it into the subvolume, when it is mounted.
2 Likes
Austin
#4
I think you would first have to mount your root partition, maybe at /mnt/data
, cd
to /mnt/data
and the run sudo btrfs subvolume create @opt
1 Like