diff options
Diffstat (limited to 'share/hydractl')
-rwxr-xr-x | share/hydractl/mount-media | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/share/hydractl/mount-media b/share/hydractl/mount-media index f6e3642..d6adf70 100755 --- a/share/hydractl/mount-media +++ b/share/hydractl/mount-media @@ -32,12 +32,16 @@ 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..." $sudo cryptsetup luksOpen /dev/$VOLUME $MEDIA && \ + echo "Checking filesystem..." $sudo fsck -v -y /dev/mapper/$MEDIA && \ + echo "Mounting volume at $MOUNTPOINT..." $sudo mkdir -p $MOUNTPOINT $sudo mount /dev/mapper/$MEDIA $MOUNTPOINT |