LUKS-OPs

Description

LUKS-OPs is a bash script to automate the most basic usage of LUKS and Cryptsetup in Linux.

Like:

  • Creating a virtual disk volume with LUKS format.

  • Mounting an existing LUKS volume

  • Unmounting a Single LUKS volume or all LUKS volume in the system.

  • Creating a LUKS encrypted filesystem on removable disks (like USBs)

Options

luks-ops.sh menu 
luks-ops.sh new disk_Name Size_in_numbers 
luks-ops.sh mount /path/to/device (mount point)  
luks-ops.sh unmount-all 
luks-ops.sh clean 
luks-ops.sh usage  

Example

cyborg@cyborg:~$ sudo luks-ops.sh menu









 ================================================= 
 	LUKS- OPs for basic LUKS operations. 
 		John Troony 
 	jayombagi (at) gmail.com 
 ================================================= 
 Select one of the option 
 
1) New Volumes		   4) Unmount all
2) Mount an existing vol   5) Clean after setup fail
3) Unmount a vol	   6) quit
#? 1
Enter size (MB) of virtual disk to create [default 512]  10
  10 MB  is set as your default virtual disk capacity. (Numbers Only) 
 
Enter name of virtual disk to create (default LUKS_randomString) LUKS_newvolume
  LUKSnewvolume  is set as your default virtual disk name. (No special chars). 
 
 Keep calm.. Creating File Block. This might take time depending on the File size and your machine! 
 
 
Done creating the block file LUKSnewvolume in /usr/ directory. 
 
 ################################################ 
 Select a full cipher/mode/iv specification to use 
 1) aes-cbc-essiv:sha256 2) aes-xts-plain64 3) twofish-ecb 4) serpent-cbc-plain 5) Custom 
4

WARNING!
========
This will overwrite data on /dev/loop0 irrevocably.

Are you sure? (Type uppercase yes): YES
Enter passphrase: 
Verify passphrase: 
Enter passphrase for /usr/LUKSnewvolume: 
 
List of dmsetup current on your system... 
ivdpoltj	(252:0)

 Select File system to use e.g 2 :
 
 1. ext3   2. ext4   3. btrfs  4. bfs  
 5. ntfs   6. vfat   7. Other 
1
 Disk-Name:	 LUKSnewvolume
 Path:		 /usr/LUKSnewvolume
 Loop-Device:	 /dev/loop0
 Mapper:	 /dev/mapper/ivdpoltj
 Mount point:	 /media/luks_ygsg
 
 You can delete /media/luks_ygsg after use. Logs at /tmp/luks-Oct-23-15-105939.log 
 
 Log File : /tmp/luks-Oct-23-15-105939.log 
0 Comments

Leave a reply

CONTACT US

We're are building as a community and a team. Be a part of it.

Sending

©2017 Ztrela Knowledge Solutions Pvt. Ltd

Log in with your credentials

Forgot your details?