A disk management plugin for Cockpit, providing comprehensive disk monitoring and management features.
- Dashboard - Overview of all disks with status, temperature, runtime, and health
- Disk Info - Detailed disk information (model, serial, capacity, partitions, etc.)
- SMART Health - SMART attributes monitoring with health status
- Hibernation Control - Manage disk standby/hibernation with APM and write cache settings
- IO Monitor - Real-time disk I/O statistics with charts
- Self Test - SMART self-test management (short/long/conveyance)
- Cockpit >= 200
- Python 3
- smartmontools
- hdparm
sudo dpkg -i cockpit-diskviewer_1.1.41_all.deb
sudo systemctl restart cockpittar -xzf cockpit-diskviewer-v1.1.41.tar.gz
cd cockpit-diskviewer
sudo cp -r . /usr/share/cockpit/diskviewer
sudo cp backend/diskviewer.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable --now diskviewer
sudo systemctl restart cockpitsudo dpkg --purge cockpit-diskviewer
# Or for source installation:
sudo rm -rf /usr/share/cockpit/diskviewer
sudo systemctl disable --now diskviewer
sudo rm /etc/systemd/system/diskviewer.service
sudo systemctl daemon-reloadConfiguration files are stored in /etc/cockpit/diskviewer/:
setting.json- User preferences (theme, language, refresh interval)data.json- Runtime data (standby timestamps, disk cache)
| Feature | Data Source |
|---|---|
| Disk List | /sys/block/, lsblk |
| Disk Info | smartctl -a, hdparm -I |
| SMART Health | smartctl -H, smartctl -A |
| Hibernation State | hdparm -C |
| APM Settings | hdparm -B |
| Write Cache | hdparm -W |
| IO Statistics | /proc/diskstats |
| Self Test | smartctl -t, smartctl -l selftest |
MIT License
Current version: 1.1.41