diff options
-rwxr-xr-x | mount-data.sh | 5 | ||||
-rwxr-xr-x | unmount-data.sh | 5 |
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 | |||
3 | sudo cryptsetup luksOpen /dev/sda1 sda1_crypt | ||
4 | sleep 1 | ||
5 | sudo 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 | |||
3 | sudo umount /dev/mapper/DATA--vg-data | ||
4 | sleep 1 | ||
5 | sudo cryptsetup luksClose sda1_crypt | ||