You are not logged in.

#1 2013-06-08 06:46:20

cyker
Member
Registered: 2009-05-30
Posts: 86

[SOLVED] List all LUKS devices

I have multiple LUKS devices and want to know which of them are activated at a certain moment.

So is it possible to list all currently activated LUKS devices? Furthermore, is it possible to list all LUKS devices (active + inactive) in the current system?

I've looked at man page of cryptsetup but didn't find any clue. There is an isLuks option. But calling it on every device looks clumsy. Also it doesn't filter out the inactive ones.

Last edited by cyker (2013-06-08 08:52:40)


.

Offline

#2 2013-06-08 08:08:00

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,277

Re: [SOLVED] List all LUKS devices

The "isLuks" option does not give a lot of info too. Why not use just

lsblk --fs

it has a lot of filter and column options.

Offline

#3 2013-06-08 08:54:34

cyker
Member
Registered: 2009-05-30
Posts: 86

Re: [SOLVED] List all LUKS devices

Thank you!

lsblk --fs

works.

All LUKS devices are exactly those have FSTYPE crypto_LUKS. Among these, the active ones will have a child node.

Furthermore, the column MOUNTPOINT indicates whether a device is mounted or not. This makes everything clear in a LVM/LUKS setting.

Last edited by cyker (2013-06-08 08:57:52)


.

Offline

Board footer

Powered by FluxBB