You are not logged in.

#1 2022-06-25 03:17:25

Bradley
Member
Registered: 2022-06-25
Posts: 20

[SOLVED] Can't delete btrfs snapshot

Hey, this is my first post, so sorry if i did something wrong. I made a read-only btrfs snapshot, and I can't delete it. I already tried btrfs property set -ts /path/to/snapshot ro false, but for some reason the command does nothing. There's no output. I didn't use snapper. I feel like I'm missing something obvious. Thanks!

Using btrfs-progs v5.18.1

sudo rm -rf /.snapshots/snapshot returns like 1000 of "rm: cannot remove '/.snapshots/snapshot/some random file': Read-only file system"

Last edited by Bradley (2022-06-27 22:19:49)

Offline

#2 2022-06-25 06:07:20

Alataw
Member
Registered: 2021-01-27
Posts: 20

Re: [SOLVED] Can't delete btrfs snapshot

Offline

#3 2022-06-25 14:26:12

Bradley
Member
Registered: 2022-06-25
Posts: 20

Re: [SOLVED] Can't delete btrfs snapshot

It didn’t work. I get the same error as the rm -rf.

Offline

#4 2022-06-26 04:55:19

moonpie
Member
Registered: 2022-06-25
Posts: 1

Re: [SOLVED] Can't delete btrfs snapshot

Use btrfs subvolume list / to list subvolumes, and nested subvolumes. Some snapshot apps (like timeshift for instance) create subvolumes within subvolumes, and it is not possible to delete subvolumes if they have another subvolume in them. Once you have located nested subvolumes, you can use btrfs subvolume delete, to delete nested subvolumes, and also to delete normal subvolumes.

(Sorry for no code blocks, this is literally my first comment on this forum)

Offline

#5 2022-06-27 22:19:14

Bradley
Member
Registered: 2022-06-25
Posts: 20

Re: [SOLVED] Can't delete btrfs snapshot

Thanks moonpie! I like how you're like sorry for the response, but I solved your problem. Thanks a lot. I'll mark it as solved.

Offline

Board footer

Powered by FluxBB