I have a Manjaro (v23) installation with the following configuration:
/
mounted on my SSD, which is/dev/sdb3
/home
mounted on my HDD, which is/dev/sdc1
This way:
sda 8:0 0 931.5G 0 disk
└─sda1 8:1 0 931.5G 0 part
sdb 8:16 0 223.6G 0 disk
├─sdb1 8:17 0 1G 0 part /boot/efi
├─sdb2 8:18 0 6G 0 part [SWAP]
└─sdb3 8:19 0 216.6G 0 part /var/log
/var/cache
/swap
/
sdc 8:32 0 931.5G 0 disk
└─sdc1 8:33 0 931.5G 0 part /home
I am using the btrfs
file system because I want to take system snapshots using Timeshift. The problem is that, by default, the installation only created the /@
subvolume and others that are inside /
:
ID 257 gen 1573 top level 5 path @cache
ID 258 gen 1575 top level 5 path @log
ID 259 gen 1468 top level 5 path @swap
ID 266 gen 1576 top level 5 path @
And this is my /etc/fstab
:
UUID=AE59-40E0 /boot/efi vfat umask=0077 0 2
UUID=a6d21c44-0cb4-4d5c-beb2-d0a1adef9dd9 swap swap defaults,noatime 0 0
UUID=a822aa8a-8f97-4b43-afd3-162d5e434822 / btrfs subvol=/@,defaults,discard=async,ssd 0 0
UUID=a822aa8a-8f97-4b43-afd3-162d5e434822 /var/cache btrfs subvol=/@cache,defaults,discard=async,ssd 0 0
UUID=a822aa8a-8f97-4b43-afd3-162d5e434822 /var/log btrfs subvol=/@log,defaults,discard=async,ssd 0 0
UUID=a822aa8a-8f97-4b43-afd3-162d5e434822 /swap btrfs subvol=/@swap,defaults,discard=async,ssd 0 0
UUID=3cb05b51-ade4-4206-bd9b-f221d599b3a3 /home btrfs defaults 0 0
/swap/swapfile swap swap defaults,noatime 0 0
tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
I would like, for testing, to also take a snapshot of my /home
. But it needs the subvolume /@home
to be created on /
, which, in my case, is another disk.
So, my question is:
- How can I do this?
- By doing this, would the data saved in
/home
remain on the HDD or would it be saved on the SSD, along with the installation of/
?
I’m new to btrfs
, so I was sorry for some hesitation.
Thanks.