summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmount-data.sh5
-rwxr-xr-xunmount-data.sh5
2 files changed, 10 insertions, 0 deletions
diff --git a/mount-data.sh b/mount-data.sh
new file mode 100755
index 0000000..e3a57ca
--- /dev/null
+++ b/mount-data.sh
@@ -0,0 +1,5 @@
1#!/bin/sh
2
3sudo cryptsetup luksOpen /dev/sda1 sda1_crypt
4sleep 1
5sudo mount /dev/mapper/DATA--vg-data
diff --git a/unmount-data.sh b/unmount-data.sh
new file mode 100755
index 0000000..5d3a9b7
--- /dev/null
+++ b/unmount-data.sh
@@ -0,0 +1,5 @@
1#!/bin/sh
2
3sudo umount /dev/mapper/DATA--vg-data
4sleep 1
5sudo cryptsetup luksClose sda1_crypt