27
submitted 5 months ago by tubbadu@lemmy.kde.social to c/linux@lemmy.ml

Hello! My disk space was out of space left, so I decided to remove some snapper snapshot. snapper list listed over 360 snapshots. I removed them, and freed 50Gb of space. One of these hasn't been deleted successfully:

Cannot delete snapshot 166 since it is the next to be mounted snapshot.

it's description is writable copy of #156. How can I remove it? should I do it using btrfs subvolume delete?

here's the output of sudo btrfs subvolume list -t /:

ID      gen     top level       path
--     
***
    ---------       ----
256     178487  5               timeshift-btrfs/snapshots/2023-09-18_18-25-33/@
257     341688  5               @home
258     341680  5               @cache
259     341688  5               @log
260     26      256             timeshift-btrfs/snapshots/2023-09-18_18-25-33/@/var/lib/portables
261     27      256             timeshift-btrfs/snapshots/2023-09-18_18-25-33/@/var/lib/machines
708     341688  5               @
710     341680  708             .snapshots
2781    178991  5               timeshift-btrfs/snapshots/2024-05-07_12-20-43/@
2968    326034  710             .snapshots/166/snapshot
2969    341679  710             .snapshots/167/snapshot

all those timeshift subvolumes are there because before snapper, I used to use timeshift. I tried to remove them:

sudo btrfs subvolume delete timeshift-btrfs/snapshots/2023-09-18_18-25-33/@/var/lib/machines    
ERROR: Could not statfs: No such file or directory

If I understand correctly, it means that I should give an actual "system" path instead of the path in the table, but I don't understand which path

thanks in advance to everyone!

you are viewing a single comment's thread
view the rest of the comments
[-] mrvictory1@lemmy.world 1 points 5 months ago

Make sure it doesn't have anything valuable. Use rm -rf

[-] tubbadu@lemmy.kde.social 1 points 4 months ago* (last edited 4 months ago)

It worked, thank you very much for your help man! Now the only remaining problem is the snapshot 166, that snapper does not let me remove. I assume I should remove in a similar way as timeshift:

$ sudo btrfs subvolume delete /.snapshots/166/snapshot
WARNING: not deleting default subvolume id 2968 '/.snapshots/166/snapshot'

I think there's something I'm missing about how these snapshot works

[-] mrvictory1@lemmy.world 0 points 4 months ago

The snapshot may be mounted to root. In the output of "mount" command, if there isn't a subvolid= or subvol= parameter for root mount, snapshot 166 is currently mounted to root.

this post was submitted on 01 Jul 2024
27 points (100.0% liked)

Linux

48376 readers
1131 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS