Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

348.1. plasma-disks-6.8.2

Drive health monitor — reads SMART through smartctl and warns before a disk fails

6.8.2-1 · GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL · 3.4 SBU · 775.5 KiB, 17 files · 50_desktop, 25 of 92 · ports/core/disk/plasma-disks

Homepage: https://invent.kde.org/plasma/plasma-disks

Why it is in KDOS. The comment above it in script/phases/50_desktop/packages.txt:

Warns from the tray before a disk fails, from SMART data read through smartctl.

plasma-disks watches the health of the machine’s drives. A kded module asks Solid for every disk, reads each one’s SMART status through smartctl from smartmontools, and raises a notification when a drive reports itself failing or past an alarming threshold; the SMART Status page of Info Center shows the full report.

Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, qt6-qtdeclarative, kconfig, kcoreaddons, kdbusaddons, knotifications, ki18n, solid, kservice, kio, kauth, kcmutils, kirigami, kdeclarative, smartmontools, udisks2.

Required by (1): kde-plasma.

Sources: plasma-disks-6.8.2.tar.xz (108.5 KiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/50_desktop/phase.env && kpkg install plasma-disks'

build.sh:

cmake -S . -B build -G Ninja \
	-D CMAKE_INSTALL_PREFIX=/usr \
	-D KDE_INSTALL_LIBDIR=lib \
	-D CMAKE_BUILD_TYPE=Release \
	-D KDE_INSTALL_USE_QT_SYS_PATHS=ON \
	-D BUILD_TESTING=OFF \
	-D KF_SKIP_PO_PROCESSING=ON \
	-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build

Directories: /usr/share/licenses/plasma-disks.

Reading SMART data needs root, so the module calls kded-smart-helper, a KAuth helper that runs smartctl --all --json=c with PATH set to /usr/sbin:/sbin:/usr/local/sbin. smartmontools installs smartctl in /usr/sbin, which is the first entry; a copy anywhere else is not found. The helper’s polkit action, org.kde.kded.smart.smartctl, is granted by upstream’s own policy to active and inactive local sessions, so the checks the module makes at login, once a day and for each drive plugged in ask for no password in a session elogind tracks (see The security model).

The configure looks for smartctl only to report it. Disks are enumerated through Solid’s UDisks2 backend, so udisks2 is in depends for run time; without it no drive is listed.