Manually delete snapshots?

I wanted to try out Timeshift instead of Snapper.
Okay, I like snapper better. :no_mouth:
So I reinstalled the snapper packages.
Problem: my previous snapshots don't appear anymore in Snapper tools. But I think they are still there, and eating up lots of disk space. How to delete them manually?
See screenshot.

I'm not familiar with Timeshift and Snapper, but first, you need to show all your subvolumes.

Hopefully the standard command would work:

sudo btrfs subvol list /

Plz post output from the terminal (no picture of the terminal plz).

sudo btrfs subvol list / 20:14:33
[sudo] password for shmuel:
ID 256 gen 13099 top level 5 path @_backup_20220610124549273
ID 257 gen 14448 top level 5 path @home
ID 258 gen 14447 top level 5 path @root
ID 259 gen 5981 top level 5 path @srv
ID 260 gen 14441 top level 5 path @cache
ID 261 gen 14448 top level 5 path @log
ID 262 gen 14432 top level 5 path @tmp
ID 428 gen 12240 top level 5 path @_backup_20220610150448433
ID 435 gen 14333 top level 5 path @_backup_20220610173533264
ID 456 gen 14448 top level 5 path @
ID 457 gen 14348 top level 5 path timeshift-btrfs/snapshots/2022-11-22_19-24-27/@
ID 458 gen 14446 top level 456 path .snapshots
⋊> ~

This is the one from Timeshift, I don't know the @_backup, maybe those are Snapper's?

What if you try

sudo btrfs subvol delete timeshift-btrfs/snapshots/2022-11-22_19-24-27/@

Hum, I think it won't work cuz it's the same Level 5 as your root. I can't recall, let's see what you get.

sudo btrfs subvol delete timeshift-btrfs/snapshots/2022-11-22_19-24-27/@
[sudo] password for shmuel:
ERROR: Could not statfs: No such file or directory
⋊> ~

Maybe I need to mount the root somewhere, to reveal the true path. If you think that might work, please guide me how to mount it.

1 Like

Ok so that's it you have to mount your disk partition somewhere, like in /mnt, so you can access all subvolumes from a higher level. Been a while I haven't played with that.

Once you mount your disk partition into say /mnt, you can issue:

sudo btrfs subvol delete /mnt/timeshift-btrfs/snapshots/2022-11-22_19-24-27/@

If you don't know how to mount the partition like that, plz provide garuda-inxi output.

garuda-inxi                                                        20:25:54
System:
  Kernel: 6.0.9-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
    root=UUID=1ae1827d-082e-4190-8d66-84aa16e7a79c rw [email protected]
    quiet quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
    loglevel=3
  Desktop: Xfce v: 4.16.1 tk: Gtk v: 3.24.34 info: xfce4-panel wm: xfwm
    v: 4.16.1 vt: 7 dm: LightDM v: 1.32.0 Distro: Garuda Linux base: Arch Linux
Machine:
  Type: Desktop Mobo: ASUSTeK model: PRIME B365M-A v: Rev X.0x
    serial: <superuser required> UEFI: American Megatrends v: 2208
    date: 07/09/2021
CPU:
  Info: model: Intel Core i7-9700 bits: 64 type: MCP arch: Coffee Lake
    gen: core 9 level: v3 note: check built: 2018 process: Intel 14nm family: 6
    model-id: 0x9E (158) stepping: 0xD (13) microcode: 0xF4
  Topology: cpus: 1x cores: 8 smt: <unsupported> cache: L1: 512 KiB
    desc: d-8x32 KiB; i-8x32 KiB L2: 2 MiB desc: 8x256 KiB L3: 12 MiB
    desc: 1x12 MiB
  Speed (MHz): avg: 4192 high: 4601 min/max: 800/4700 scaling:
    driver: intel_pstate governor: performance cores: 1: 4543 2: 3000 3: 4600
    4: 4597 5: 3000 6: 4601 7: 4600 8: 4601 bogomips: 48000
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities:
  Type: itlb_multihit status: KVM: Split huge pages
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data mitigation: Clear CPU buffers; SMT disabled
  Type: retbleed mitigation: Enhanced IBRS
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: Enhanced IBRS, IBPB: conditional, RSB
    filling, PBRSB-eIBRS: SW sequence
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort mitigation: TSX disabled
Graphics:
  Device-1: Intel CoffeeLake-S GT2 [UHD Graphics 630] vendor: ASUSTeK
    driver: i915 v: kernel arch: Gen-9.5 process: Intel 14nm built: 2016-20
    ports: active: HDMI-A-1,HDMI-A-2 empty: DP-1 bus-ID: 00:02.0
    chip-ID: 8086:3e98 class-ID: 0300
  Device-2: USB C Video Adaptor type: USB driver: N/A bus-ID: 1-3.1.1:8
    chip-ID: 25a4:9321 class-ID: 1100 serial: <filter>
  Device-3: Microdia USB Live camera type: USB
    driver: snd-usb-audio,uvcvideo bus-ID: 1-3.3:9 chip-ID: 0c45:636b
    class-ID: 0102 serial: <filter>
  Display: x11 server: X.Org v: 21.1.4 compositor: xfwm v: 4.16.1 driver: X:
    loaded: modesetting alternate: fbdev,intel,vesa dri: iris gpu: i915
    display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 3840x1080 s-dpi: 96 s-size: 1016x286mm (40.00x11.26")
    s-diag: 1055mm (41.55")
  Monitor-1: HDMI-A-1 mapped: HDMI-1 pos: primary,left model: VG27AQ1A
    serial: <filter> built: 2020 res: 1920x1080 hz: 120 dpi: 82 gamma: 1.2
    size: 596x336mm (23.46x13.23") diag: 685mm (27") ratio: 16:9 modes:
    max: 2560x1440 min: 720x400
  Monitor-2: HDMI-A-2 mapped: HDMI-2 pos: right model: Samsung S24B300
    serial: <filter> built: 2013 res: 1920x1080 hz: 60 dpi: 94 gamma: 1.2
    size: 521x293mm (20.51x11.54") diag: 598mm (23.5") ratio: 16:9 modes:
    max: 1920x1080 min: 720x400
  API: OpenGL v: 4.6 Mesa 22.2.3 renderer: Mesa Intel UHD Graphics 630 (CFL
    GT2) direct render: Yes
Audio:
  Device-1: Intel 200 Series PCH HD Audio vendor: ASUSTeK
    driver: snd_hda_intel bus-ID: 1-3.3:9 v: kernel chip-ID: 0c45:636b
    bus-ID: 00:1f.3 class-ID: 0102 chip-ID: 8086:a2f0 serial: <filter>
    class-ID: 0403
  Device-2: Microdia USB Live camera type: USB
    driver: snd-usb-audio,uvcvideo
  Sound API: ALSA v: k6.0.9-zen1-1-zen running: yes
  Sound Server-1: PulseAudio v: 16.1 running: no
  Sound Server-2: PipeWire v: 0.3.60 running: yes
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: ASUSTeK PRIME B450M-A driver: r8169 v: kernel pcie: gen: 1
    speed: 2.5 GT/s lanes: 1 port: e000 bus-ID: 03:00.0 chip-ID: 10ec:8168
    class-ID: 0200
  IF: enp3s0 state: down mac: <filter>
  Device-2: MediaTek WiFi type: USB driver: mt76x0u bus-ID: 1-3.2:7
    chip-ID: 0e8d:7610 class-ID: 0000 serial: <filter>
  IF: wlp0s20f0u3u2 state: up mac: <filter>
  Device-3: Realtek RTL8153 Gigabit Ethernet Adapter type: USB driver: r8152
    bus-ID: 2-4.1:5 chip-ID: 0bda:8153 class-ID: 0000 serial: <filter>
  IF: enp0s20f0u4u1 state: down mac: <filter>
Bluetooth:
  Device-1: Cambridge Silicon Radio Bluetooth Dongle (HCI mode) type: USB
    driver: btusb v: 0.8 bus-ID: 1-10:6 chip-ID: 0a12:0001 class-ID: e001
  Report: bt-adapter ID: hci0 rfk-id: 0 state: up address: <filter>
Drives:
  Local Storage: total: 2.26 TiB used: 857.44 GiB (37.1%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/sda maj-min: 8:0 vendor: Kingston model: SA400S37480G
    size: 447.13 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    type: SSD serial: <filter> rev: K1B3 scheme: GPT
  ID-2: /dev/sdb maj-min: 8:16 vendor: Toshiba model: HDWD120 size: 1.82 TiB
    block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s type: HDD
    rpm: 7200 serial: <filter> rev: ACF0 scheme: GPT
Partition:
  ID-1: / raw-size: 45.38 GiB size: 45.38 GiB (100.00%)
    used: 24.46 GiB (53.9%) fs: btrfs dev: /dev/sda5 maj-min: 8:5
  ID-2: /boot/efi raw-size: 100 MiB size: 96 MiB (96.00%)
    used: 39.5 MiB (41.2%) fs: vfat dev: /dev/sda1 maj-min: 8:1
  ID-3: /home raw-size: 45.38 GiB size: 45.38 GiB (100.00%)
    used: 24.46 GiB (53.9%) fs: btrfs dev: /dev/sda5 maj-min: 8:5
  ID-4: /var/log raw-size: 45.38 GiB size: 45.38 GiB (100.00%)
    used: 24.46 GiB (53.9%) fs: btrfs dev: /dev/sda5 maj-min: 8:5
  ID-5: /var/tmp raw-size: 45.38 GiB size: 45.38 GiB (100.00%)
    used: 24.46 GiB (53.9%) fs: btrfs dev: /dev/sda5 maj-min: 8:5
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: zram size: 15.49 GiB used: 0 KiB (0.0%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 39.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 315 Uptime: 33m wakeups: 0 Memory: 15.49 GiB
  used: 9.33 GiB (60.2%) Init: systemd v: 252 default: graphical
  tool: systemctl Compilers: gcc: 12.2.0 Packages: pm: pacman pkgs: 1465
  libs: 386 tools: pamac,paru,yay pm: appimage pkgs: 0 Shell: fish v: 3.5.1
  default: Bash v: 5.1.16 running-in: xfce4-terminal inxi: 3.3.23
Garuda (2.6.9-1):
  System install date:     2022-09-12
  Last full system update: 2022-11-22
  Is partially upgraded:   No
  Relevant software:       NetworkManager
  Windows dual boot:       Probably (Run as root to verify)
  Snapshots:               Snapper
  Failed units:            
⋊> ~                                                                    20:26:00


Is deleting the subvolumes from btrfs assistant not an option?

4 Likes

I ticked the little box at the bottom, "Include Timeshift and Snapper Snapshots", and that did it. After deleting the backups, my disk space was recovered.

1 Like

If i were you, I'd also run garuda-update remote reset-snapper real quick, since you may or may not have deleted a subvolume or 2 necessary for normal snapper operation.

4 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.