#!/bin/bash

for disk in $(lsblk -nd -o NAME); do
    if skdump "/dev/$disk" &>/dev/null; then
        echo "📌 Vérification de /dev/$disk"
        skdump "/dev/$disk" | awk '/Device:/ || /Overall/'
        echo "----------------------------------------"
    else
        echo "❌ Impossible d'analyser /dev/$disk avec skdump"
    fi
done



#for disk in $(lsblk -nd -o NAME); do
#    echo "📌 Vérification de /dev/$disk"
#    skdump /dev/$disk | grep -E "Overall Health:|Device:"
#    echo "----------------------------------------"
#done
