Root partition running out of space

Hey all, I’ve got a situation where my root partition is slowly filling up. I’m on KDE Dragonized, running on BTRFS. I’ve got 60 GiB allocated to it, which oughta be plenty, but even after clearing out snapshots (down to just the most recent 2) and running Scrub in the BTRFS Assistant, I’m at only 2.76 GiB free. I’ve also tried using Garuda Assistant to clear the package cache as suggested here, and seen no change. It seems like there must be info there that I don’t need, but I’m at a loss as to how to identify it and what to do about it.

Any help or references appreciated. Here’s my garuda-inxi:

╭─kestrel@gurgeh in ~ took 4s
[🔍] × garuda-inxi
System:
Kernel: 6.7.9-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 13.2.1
clocksource: tsc avail: hpet,acpi_pm
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=0fed58b0-5df8-4f4e-bb81-6c319af09561 rw rootflags=subvol=@
quiet quiet rd.udev.log_priority=3 vt.global_cursor_default=0 loglevel=3
ibt=off
Desktop: KDE Plasma v: 6.0.1 tk: Qt v: N/A info: frameworks v: 6.0.0
wm: kwin_wayland vt: 1 dm: SDDM Distro: Garuda base: Arch Linux
Machine:
Type: Desktop Mobo: Gigabyte model: Z790 UD AC v: x.x
serial: <superuser required> uuid: <superuser required> UEFI: American
Megatrends LLC. v: F3k date: 01/05/2023
CPU:
Info: model: 13th Gen Intel Core i9-13900K bits: 64 type: MST AMCP
arch: Raptor Lake gen: core 13 level: v3 note: check built: 2022+
process: Intel 7 (10nm) family: 6 model-id: 0xB7 (183) stepping: 1
microcode: 0x11D
Topology: cpus: 1x cores: 24 mt: 8 tpc: 2 st: 16 threads: 32 smt: enabled
cache: L1: 2.1 MiB desc: d-16x32 KiB, 8x48 KiB; i-8x32 KiB, 16x64 KiB
L2: 32 MiB desc: 8x2 MiB, 4x4 MiB L3: 36 MiB desc: 1x36 MiB
Speed (MHz): avg: 846 high: 1101 min/max: 800/5500:5800:4300 scaling:
driver: intel_pstate governor: powersave cores: 1: 800 2: 1011 3: 800 4: 800
5: 800 6: 800 7: 800 8: 800 9: 1100 10: 1015 11: 800 12: 800 13: 800
14: 800 15: 800 16: 800 17: 1101 18: 800 19: 800 20: 1100 21: 800 22: 957
23: 800 24: 800 25: 800 26: 800 27: 800 28: 800 29: 800 30: 800 31: 800
32: 800 bogomips: 191692
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Vulnerabilities: <filter>
Graphics:
Device-1: Intel Raptor Lake-S GT1 [UHD Graphics 770] vendor: Gigabyte
driver: i915 v: kernel arch: Gen-13 process: Intel 7 (10nm) built: 2022+
ports: active: none empty: DP-1,HDMI-A-1,HDMI-A-2 bus-ID: 00:02.0
chip-ID: 8086:a780 class-ID: 0300
Device-2: AMD Navi 31 [Radeon RX 7900 XT/7900 XTX/7900M] driver: amdgpu
v: kernel arch: RDNA-3 code: Navi-3x process: TSMC n5 (5nm) built: 2022+
pcie: gen: 4 speed: 16 GT/s lanes: 16 ports: active: DP-4,HDMI-A-3
empty: DP-2,DP-3 bus-ID: 03:00.0 chip-ID: 1002:744c class-ID: 0300
Device-3: Logitech C920 HD Pro Webcam driver: snd-usb-audio,uvcvideo
type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-6.1.3:14
chip-ID: 046d:0892 class-ID: 0102 serial: <filter>
Display: wayland server: X.org v: 1.21.1.11 with: Xwayland v: 23.2.4
compositor: kwin_wayland driver: X: loaded: amdgpu,modesetting
unloaded: radeon alternate: fbdev,intel,vesa dri: radeonsi,iris
gpu: i915,amdgpu d-rect: 4920x2160 display-ID: 0
Monitor-1: DP-4 pos: primary,left res: 3840x2160 size: N/A modes: N/A
Monitor-2: HDMI-A-3 pos: right res: 1080x1920 size: N/A modes: N/A
API: EGL v: 1.5 hw: drv: intel iris drv: amd radeonsi platforms: device: 0
drv: iris device: 1 drv: radeonsi device: 2 drv: swrast surfaceless:
drv: iris wayland: drv: radeonsi x11: drv: radeonsi inactive: gbm
API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 24.0.2-arch1.2
glx-v: 1.4 direct-render: yes renderer: AMD Radeon RX 7900 XT (radeonsi
navi31 LLVM 17.0.6 DRM 3.57 6.7.9-zen1-1-zen) device-ID: 1002:744c
memory: 19.53 GiB unified: no display-ID: :1.0
API: Vulkan v: 1.3.279 layers: 13 device: 0 type: discrete-gpu name: AMD
Radeon RX 7900 XT (RADV NAVI31) driver: mesa radv v: 24.0.2-arch1.2
device-ID: 1002:744c surfaces: xcb,xlib,wayland device: 1
type: integrated-gpu name: Intel Graphics (RPL-S) driver: mesa intel
v: 24.0.2-arch1.2 device-ID: 8086:a780 surfaces: xcb,xlib,wayland
device: 2 type: cpu name: llvmpipe (LLVM 17.0.6 256 bits)
driver: mesa llvmpipe v: 24.0.2-arch1.2 (LLVM 17.0.6)
device-ID: 10005:0000 surfaces: xcb,xlib,wayland
Audio:
Device-1: Intel Raptor Lake High Definition Audio vendor: Gigabyte
driver: snd_hda_intel v: kernel alternate: snd_sof_pci_intel_tgl
bus-ID: 00:1f.3 chip-ID: 8086:7a50 class-ID: 0403
Device-2: AMD Navi 31 HDMI/DP Audio driver: snd_hda_intel v: kernel pcie:
gen: 4 speed: 16 GT/s lanes: 16 bus-ID: 03:00.1 chip-ID: 1002:ab30
class-ID: 0403
Device-3: SteelSeries ApS Arctis 7
driver: hid-generic,snd-usb-audio,usbhid type: USB rev: 1.1 speed: 12 Mb/s
lanes: 1 mode: 1.1 bus-ID: 1-5:4 chip-ID: 1038:12ad class-ID: 0300
Device-4: Logitech C920 HD Pro Webcam driver: snd-usb-audio,uvcvideo
type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-6.1.3:14
chip-ID: 046d:0892 class-ID: 0102 serial: <filter>
API: ALSA v: k6.7.9-zen1-1-zen status: kernel-api with: aoss
type: oss-emulator tools: N/A
Server-1: PipeWire v: 1.0.3 status: active with: 1: pipewire-pulse
status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
Device-1: Realtek RTL8821CE 802.11ac PCIe Wireless Network Adapter
vendor: AzureWave driver: rtw_8821ce v: N/A modules: rtw88_8821ce pcie:
gen: 1 speed: 2.5 GT/s lanes: 1 port: 4000 bus-ID: 06:00.0
chip-ID: 10ec:c821 class-ID: 0280
IF: wlp6s0 state: down mac: <filter>
Device-2: Realtek RTL8125 2.5GbE vendor: Gigabyte driver: r8169 v: kernel
pcie: gen: 2 speed: 5 GT/s lanes: 1 port: 3000 bus-ID: 07:00.0
chip-ID: 10ec:8125 class-ID: 0200
IF: enp7s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Info: services: NetworkManager, systemd-timesyncd, wpa_supplicant
Bluetooth:
Device-1: IMC Networks Bluetooth Radio driver: btusb v: 0.8 type: USB
rev: 1.1 speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-14:12
chip-ID: 13d3:3533 class-ID: e001 serial: <filter>
Report: btmgmt ID: hci0 rfk-id: 0 state: down bt-service: enabled,running
rfk-block: hardware: no software: yes address: <filter> bt-v: 4.2 lmp-v: 8
status: discoverable: no pairing: no
Drives:
Local Storage: total: 9.08 TiB used: 1.68 TiB (18.5%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Western Digital
model: WD BLACK SN850X 2000GB size: 1.82 TiB block-size: physical: 512 B
logical: 512 B speed: 63.2 Gb/s lanes: 4 tech: SSD serial: <filter>
fw-rev: 620281WD temp: 49.9 C scheme: GPT
ID-2: /dev/sda maj-min: 8:0 vendor: Toshiba model: HDWR460 size: 5.46 TiB
block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s tech: HDD
rpm: 7200 serial: <filter> fw-rev: 0601 scheme: GPT
ID-3: /dev/sdb maj-min: 8:16 vendor: Seagate model: ST1500DL003-9VT16L
size: 1.36 TiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
tech: HDD rpm: 5900 serial: <filter> fw-rev: CC3C scheme: MBR
ID-4: /dev/sdc maj-min: 8:32 vendor: Intel model: SSDSC2BP480G4
size: 447.13 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
tech: SSD serial: <filter> fw-rev: 0420 scheme: GPT
Partition:
ID-1: / raw-size: 60 GiB size: 60 GiB (100.00%) used: 56.57 GiB (94.3%)
fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
ID-2: /boot/efi raw-size: 1024 MiB size: 1022 MiB (99.80%)
used: 584 KiB (0.1%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
ID-3: /home raw-size: 1.76 TiB size: 1.76 TiB (100.00%)
used: 1.62 TiB (92.3%) fs: btrfs dev: /dev/nvme0n1p3 maj-min: 259:3
ID-4: /var/log raw-size: 60 GiB size: 60 GiB (100.00%)
used: 56.57 GiB (94.3%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
ID-5: /var/tmp raw-size: 60 GiB size: 60 GiB (100.00%)
used: 56.57 GiB (94.3%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default) zswap: no
ID-1: swap-1 type: zram size: 31.11 GiB used: 1.4 GiB (4.5%) priority: 100
comp: zstd avail: lzo,lzo-rle,lz4,lz4hc,842 max-streams: 32 dev: /dev/zram0
Sensors:
System Temperatures: cpu: 45.0 C mobo: 31.0 C gpu: amdgpu temp: 60.0 C
mem: 62.0 C
Fan Speeds (rpm): N/A gpu: amdgpu fan: 525
Info:
Memory: total: 32 GiB note: est. available: 31.11 GiB used: 6.67 GiB (21.5%)
Processes: 511 Power: uptime: 23h 15m states: freeze,mem,disk
suspend: deep avail: s2idle wakeups: 0 hibernate: platform avail: shutdown,
reboot, suspend, test_resume image: 12.42 GiB services: org_kde_powerdevil,
power-profiles-daemon, upowerd Init: systemd v: 255 default: graphical
tool: systemctl
Packages: pm: pacman pkgs: 2039 libs: 579 tools: octopi,paru Compilers:
clang: 17.0.6 gcc: 13.2.1 Shell: garuda-inxi default: Bash v: 5.2.26
running-in: konsole inxi: 3.3.33
Garuda (2.6.23-1):
System install date:     2023-08-26
Last full system update: 2024-03-08
Is partially upgraded:   No
Relevant software:       snapper NetworkManager dracut
Windows dual boot:       No/Undetected
Failed units:

Perhaps needs a btrfs “balance” operation.

1 Like

Thanks for the idea. Unfortunately balance doesn’t do anything either. When I try it, it says “0 of about 62 chunks balanced (59 considered)”, then counts up from there pretty quickly until it finishes, with no change.

is quite low. I think the balance would fail with an error rather than just do nothing if that is the problem, but I’d wipe it all with sudo pacman -Scc and try again just in case.

3 Likes

Thanks, that looks like it did the trick! I guess I’ll just have to remember to do that aggressive cache cleaning every so often. I’m back to 42.37GiB free.

You can use a hook to paccache on every update.
In a new file /etc/pacman.d/hooks/paccache.hook

[Trigger]
Operation = Install
Operation = Upgrade
Type = Package
Target = *

[Action]
Description = Prune package cache before updating
When = PreTransaction
Exec = /usr/bin/paccache -rvk1

or just install paccache-hook from AUR, it’s almost the same except it defaults to keeping two last versions (paccache -rvk2) and also clean up on package remove.

2 Likes

Hmm, I don’t have paccache-hook available in Octopi, even though I’ve got other stuff from AUR

I do not know

paru -Sss paccache-hook
aur/paccache-hook 1.1.1-2 [+39 ~2.35]
    A configurable hook to cleanup the pacman package cache using paccache
    AUR URL : https://aur.archlinux.org/packages/paccache-hook

anyways, correction: I was actually describing the older AUR (en) - pacman-cleanup-hook, this is AUR (en) - paccache-hook, read the comments and the .conf file, install by paru -S paccache-hook

1 Like

Thanks again; got it!

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