Can't delete @.snapshots subvolume (BTRFS)
Heya! Loving BTRFS so far. Decided to do a new install with the archinstall script and use the default BTRFS subvolume layout. I'm trying to delete my @.snapshots subvolume in order to create a @snaphots subvol due to my OCD.
I've tried changing the permissions from RO to RW, deleting the default mount point at /.snapshots and re-mounting the subvol at /mnt/snapshots to no avail.
I'm running sudo btrfs subvolume delete /mnt/snapshots/@.snapshots with the error "ERROR: Could not statfs: No such file or directory"
If I try a different syntax with sudo btrfs subvolume delete /mnt/snapshots/ /@.snapshots I end up getting back
"Delete subvolume (no-commit): '/mnt/snapshots'
ERROR: Could not destroy subvolume/snapshot: Invalid argument"
Any help would be much appreciated.
Cheers!
Edited 28 Jun 2022. We only hold this version.
About this post
- Posted
- Archived
- Edited
- Score
- 11 · 88% up
- Kind
- Text
- ID
- vm07ae
10 comments
Why would you just not rename your subvolume?
When I run this I'm getting
mv: cannot stat '@.snapshots': No such file or directoryHere are the results of
sudo btrfs subvol list /.snapshotsand
sudo findmnt -nt btrfsI'm also wondering why my @log and @pkg, and basically all my other subvolumes have lower ID's than my @ and @home. It should be reversed. I was playing around with timeshift BTRFS snapshots and it completely decimated my ID's and ended up having to delete the snapshots as they were in a completely different subvolume and directory. I ended up having to go back and change my actual ID, as it was providing the wrong subvolid on boot and would not boot. Going to use snapper from here on out, but would like to resolve these issues first.
It's easier to mount toplevel somewhere then just rename the subvol:
sudo mkdir /mnt/toplevel
sudo mount -o subvolid=5 /dev/disk... /mnt/toplevel
sudo mv /mnt/toplevel/@.snapshots /mnt/toplevel/@snapshots
So I'm just re-mounting top level to a different directory? What's the point of that, just curious. Can I not rename top level subvols unless it is mounted elsewhere than the default?
You need to mount it, so that you can access it. What do you mean by remounting? Top-level shouldn't be mounted, just sub volumes.
This seemed to work. Thank you!
what does
btrfs subvol list /mntreport?Find the path for your
@.snapshotssubvol from above, and you should be able to delete that with the btrfs command.Edit: you can also move/rename the
@.snapshotssubvol with just amv [old/path] [new/path]It reports this.
Try:
This worked. Thank you! :) Do you know why my subvol id's are basically upside down? Most of the time I see @ and being the lowest subvol ID, but in my case it's basically reversed.
It's super annoying this way, and the fact that there are also gaps in the subvolume ID's is also triggering my OCD, lol.
Maybe if I somehow umount them, they will re-order the IDs?