Zelrin / arch-btrfs-install-guide

Arch Linux installation guide with btrfs and snapper, this guide is based on the information from unicks.eu guide https://www.youtube.com/watch?v=TKdZiCTh3EM, and Arch Linux UEFI step-by-step installation guide https://www.youtube.com/watch?v=dOXYZ8hKdmc from ALU.
46 stars 8 forks source link

I cant delete the .snapshots subvolume #2

Open vsjoqvist opened 2 years ago

vsjoqvist commented 2 years ago

sudo btrfs sub del /.snapshots/
Delete subvolume (no-commit): '//.snapshots'
ERROR: Could not destroy subvolume/snapshot: Invalid argument```
Zelrin commented 2 years ago

Sorry for the late response, maybe you already solved it. But these are the commands from an install script I'm working on.

umount /.snapshots
rm -r /.snapshots
snapper  -c root create-config /
btrfs subvolume delete /.snapshots 
mkdir /.snapshots
mount -o $btrfs_opts,subvol=@snapshots $root_partition /.snapshots 
chmod 750 /.snapshots

This might also work

cp /usr/share/snapper/config-templates/default /etc/snapper/configs/root
printf 'SNAPPER_CONFIGS="root"' > /etc/conf.d/snapper