Just curious how to create a @snapshots subvolume and mount it to /.snapshots?
I tried:
#sudo btrfs sub create /.snapshots
it created .snapshots subvolume and correspondent folder /.snapshots
#sudo btrfs sub create @snapshots
it created @home/john/@snapshots subvolume and correspondent folder /home/john/@snapshots
Thanks.
Welcome to Manjaro!
- Please read the information behind this link. It will help you to post necessary information. [HowTo] Provide System Information
- Please press the three dots … below your post and then press the
- If you give us information about your system, we can see what we’re talking about and make better suggestions.
- You can do this by using
inxi
in a terminal or in console.
inxi --admin --verbosity=7 --filter --no-host --width
- Personally identifiable information such as serial numbers and MAC addresses are filtered out by this command
- Presenting the information in this way allows everyone to be familiar with the format and quickly find the items they need without missing anything.
- Copy the output from inxi (including the command) and paste it into your post.
- To make it more readable, add 3 backticks ``` on an extra line before and after the pasted text.
(Wisdom lies in reading
)
Some questions arising:
- Do you have already any snapshots at /.snapshots ?
- Do you use snapper ?
- Is snapper configured for config root ?
- Do you have entrys in /etc/fstab for /.snapshots
what you should see:
sudo btrfs subvolume list /
ID 258 gen 597866 top level 5 path @home
ID 287 gen 594120 top level 258 path @home/.snapshots
ID 3648 gen 597866 top level 5 path @snapshots
ID 4455 gen 597866 top level 5 path @nosnap
ID 5719 gen 597866 top level 5 path @home.snapshots
ID 36033 gen 597866 top level 5 path @
And for every snapshot (created by snapper) you would see something like:
ID 46595 gen 595631 top level 3648 path @snapshots/24850/snapshot
...
And in /.snapshots:
ls -lA /.snapshots
insgesamt 4
drwxr-xr-x 1 root root 32 8. Aug 00:01 24850
...
And in fstab:
cat /etc/fstab|grep -E btrfs
PARTUUID=3ee11111-19qf-4102-945d-90d957d3c111 / btrfs rw,noatime,compress=zstd:9,commit=300,subvol=@ 0 0
PARTUUID=3ee11111-19qf-4102-945d-90d957d3c111 /.snapshots btrfs rw,noatime,compress=zstd:9,commit=300,subvol=@snapshots 0 0
...
You can find good Information about Btrfs in the wiki