New beggining.
This commit is contained in:
commit
6964b2b200
33 changed files with 1281 additions and 0 deletions
13
mount-luks
Executable file
13
mount-luks
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/sh
|
||||
|
||||
# get the drive path
|
||||
drive="$1"
|
||||
|
||||
# open the encrypted drive
|
||||
sudo cryptsetup luksOpen $drive luks
|
||||
|
||||
# check if the /mnt/encrypted directory exists if not create it
|
||||
[ -d "/mnt/encrypted/" ] || sudo mkdir -p /mnt/encrypted
|
||||
|
||||
# mount the decrypted drive to /mnt/encrypted/ directory
|
||||
sudo mount /dev/mapper/luks /mnt/encrypted
|
Loading…
Add table
Add a link
Reference in a new issue