#!/bin/sh

#LV_NAME1=/dev/sdc2
LV_NAME1=8819b3a5-9cc2-4f3a-8f11-f0acc38d2792
LUKS_MNT1=luks-8819b3a5-9cc2-4f3a-8f11-f0acc38d2792
UNLOCK_MNT1=/media/luks-8819b3a5-9cc2-4f3a-8f11-f0acc38d2792
#
#
sudo umount $UNLOCK_MNT1
sudo cryptsetup luksClose $LUKS_MNT1

#
# open device
echo "unlock western digital 3T disk /dev/sdc2..."
sudo cryptsetup luksOpen UUID=$LV_NAME1 $LUKS_MNT1 
echo "mounting ..."
sudo mount /dev/mapper/$LUKS_MNT1 $UNLOCK_MNT1
#sudo mount -o rw, remount /dev/mapper/$LUKS_MNT1 $UNLOCK_MNT1


