mirror of
https://github.com/byReqz/stocheck.git
synced 2024-11-22 06:41:14 +00:00
fix
This commit is contained in:
parent
2773f2a40b
commit
e50cb424b5
@ -19,6 +19,8 @@ while [ -z "$1" ]; do
|
||||
echo "------------------- /dev/sd$x --------------------"
|
||||
smartctl -i /dev/sd$x | grep -e "=== START OF INFORMATION SECTION ===" -e "Device Model:" -e "Serial Number:" -e "Firmware Version:" -e "User Capacity:" -e "SMART support is:" -e "Sector Size:" -e "Rotation Rate:"
|
||||
echo ""
|
||||
smartctl -H /dev/sd$x | grep -e "=== START OF READ SMART DATA SECTION ===" -e "SMART overall-health self-assessment test result:"
|
||||
echo ""
|
||||
smartctl -A /dev/sd$x | grep -e "=== START OF READ SMART DATA SECTION ===" -e "SMART overall-health self-assessment test result:" -e "Reallocated_Sector_Ct" -e "Power_On_Hours" -e "Temperature_Celsius" -e "Media_Wearout_Indicator" -e "Power_Cycle_Count" -e "Reported_Uncorrect"
|
||||
echo "-------------------------------------------------"
|
||||
else
|
||||
@ -37,6 +39,8 @@ while [ -z "$1" ]; do
|
||||
echo "------------------- /dev/nvme$x --------------------"
|
||||
smartctl -i /dev/nvme$x | grep -e "=== START OF INFORMATION SECTION ===" -e "Device Model:" -e "Serial Number:" -e "Firmware Version:" -e "User Capacity:" -e "SMART support is:" -e "Sector Size:" -e "Rotation Rate:"
|
||||
echo ""
|
||||
smartctl -H /dev/nvme$x | grep -e "=== START OF READ SMART DATA SECTION ===" -e "SMART overall-health self-assessment test result:"
|
||||
echo ""
|
||||
smartctl -A /dev/nvme$x | grep -e "=== START OF READ SMART DATA SECTION ===" -e "SMART overall-health self-assessment test result:" -e "Reallocated_Sector_Ct" -e "Power_On_Hours" -e "Temperature_Celsius" -e "Media_Wearout_Indicator" -e "Power_Cycle_Count" -e "Reported_Uncorrect"
|
||||
echo "---------------------------------------------------"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user