Mount LUKS encrypted volumes from command line | Drupal 8

Mount LUKS encrypted volumes from command line

Submitted by editor on Wed, 05/30/2018 - 15:57
Question

How to mount encrypted volumes from command line on linux (debian based) ?

Mount a linux partition encrypted with LUKS using terminal

Install Crypsetup:

sudo apt-get install cryptsetup

To decrypt the volume:

sudo cryptsetup luksOpen /dev/sda1 my_encrypted_volume

Mount:

sudo mkdir /media/my_device
sudo mount /dev/mapper/my_encrypted_volume /media/my_device

Unmount:

sudo umount /media/my_device
sudo cryptsetup luksClose my_encrypted_volume

 

To automatically put it in the /media location, use the udisks tool

sudo udisks --mount /dev/mapper/my_encrypted_volume

 

Errors

mount: unknown filesystem type 'LVM2_member'

Solution

Run:
sudo apt-get install lvm2 sudo lvscan

Then activate all LVM you see
sudo vgchange -ay

Then re-run the mount:
sudo mount /dev/mapper/my_encrypted_volume /media/my_device

Tags

Comments

Anonymous (not verified)

Tue, 06/05/2018 - 10:51

Another example of error :

Error unlocking /dev/sdb2: Error spawning command-line `cryptsetup luksOpen "/dev/sdb2" "luks-ac0dc77b-68a4-...." ': Failed to execute child process "cryptsetup" (No such file or directory) (g-exec-error-quark, 8)

Solution :

Install cryptsetup

sudo apt-get install cryptsetup

R HILDAN M (not verified)

Fri, 12/14/2018 - 16:55

ini ke 13 pabrik astm a283 c pabrik pipa boiler pabrik plat abrex 400 pabrik plat asme516 grade70 pabrik plat astm516 70 pabrik plat boiler pabrik plat hb 400 pabrik plat high tensile sm490 yb pabrik plat high tensile sm490ya pabrik plat kapal Distributor besi Wf Baja undangan pernikahan bahasa inggris islam Distributor Besi H beam Toko Besi Beton Supplier pipa besi Toko Wiremesh Besi Toko Wiremesh Besi Pabrik wiremesh Distributor bondek undangan pernikahan amplop surat Distributor Besi Beton Jual Besi Beton Toko pipa besi Jual besi beton Sni Ulir Polos polos ulir Agen Wiremesh Besi Agen Wiremesh Besi Pabrik besi unp Distributor wiremesh undangan pernikahan unik dan murah www.sentrabesibaja.com Harga Besi Beton Agen pipa besi Jual besi beton sii Pabrik Wiremesh Besi Pabrik Wiremesh Besi Pabrik besi cnp Distributor pipa besi baja sch 40 sch 80 undangan pernikahan elegan Jual Welded Beam T beam King Queen Cross Castellated Beam Pabrik Besi Beton Pabrik pipa besi Jual besi beton psi Ulir Polos Distributor Atap Spandek Distributor Atap Spandek Pabrik besi hollow Distributor besi hollow undangan pernikahan animasi Jual Bondek Cor Distributor Besi Wf Baja Distributor sch 40 Jual besi beton perwira Harga Atap Spandek Harga Atap Spandek Pabrik besi beton Sni Ulir Polos Distributor besi beton Sni Ulir Polos undangan pernikahan lucu Jual Atap Spandek Sni Supplier Besi Wf Baja Harga sch 40 Jual besi beton PAS Jual Atap Spandek Jual Atap Spandek ironsteelcenter.com Distributor besi wf baja undangan pernikahan kalender Jual Plat Bordes Kembang Agen Besi Wf Baja Jual sch 40 Jual besi beton master steel ms Supplier Atap Spandek Supplier Atap Spandek Distributor stainless steel Distributor besi unp undangan pernikahan ala india Jual Plat Besi Hitam Toko Besi Wf Baja Supplier sch 40 Jual besi beton ksty

Add new comment