From 21723c5e2a0426eef1e87d65fd356505f0046648 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 24 Mar 2013 17:12:18 -0300 Subject: Checking drive health status on mount-media --- files/mount-media | 2 ++ 1 file changed, 2 insertions(+) (limited to 'files/mount-media') diff --git a/files/mount-media b/files/mount-media index b643a31..0073292 100644 --- a/files/mount-media +++ b/files/mount-media @@ -29,6 +29,8 @@ if [ "`whoami`" != 'root' ]; then fi if [ "$BASENAME" == "mount-media" ]; then + echo "Checking drive health status..." + $sudo smartctl -H /dev/$DISK echo "Disabling STANDBY on drive..." $sudo sdparm --clear STANDBY -6 /dev/$DISK echo "Initializing crypto layer..." -- cgit v1.2.3