From 2df55d28391c9b6fbf6f89d1bb1193dd81fb2146 Mon Sep 17 00:00:00 2001 From: MacRimi Date: Tue, 31 Mar 2026 23:14:48 +0200 Subject: [PATCH] Update health_monitor.py --- AppImage/scripts/health_monitor.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/AppImage/scripts/health_monitor.py b/AppImage/scripts/health_monitor.py index 257f2300..392ed8c1 100644 --- a/AppImage/scripts/health_monitor.py +++ b/AppImage/scripts/health_monitor.py @@ -4464,6 +4464,14 @@ class HealthMonitor: if not smart_lines and not io_lines: continue + # Skip if disk no longer exists (stale journal entries) + if not os.path.exists(dev_path): + # Also check base device for partitions (e.g., /dev/sda1 -> /dev/sda) + base_disk = re.sub(r'\d+$', '', disk_name) + base_path = f'/dev/{base_disk}' + if not os.path.exists(base_path): + continue # Disk was removed, skip this error + # Build a descriptive reason from the actual log entries # Deduplicate similar messages (keep unique ones) seen_msgs = set()