You are not logged in.

#1 2008-12-16 17:07:21

Dieter@be
Forum Fellow
From: Belgium
Registered: 2006-11-05
Posts: 2,001
Website

How to see if a device file is an opened dm_crypt/luks device?

Hi,

cryptsetup luksFormat /dev/sda1
cryptsetup luksOpen /dev/sda1 moo

Now i need a way to find out afterwards if /dev/mapper/moo represents the opened luksdevice /dev/sda1.
Cryptsetup comes with an option 'isLuks' but it only works on the original device, not the opened representation
eg:

cryptsetup isLuks /dev/sda1 # exit's 0
cryptsetup isLuks /dev/mapper/moo # exit's 234

I also tried 'cryptsetup luksDump' and 'cryptsetup status', which give me some information, but no evidence that /dev/mapper/moo is the opened luksdevice /dev/sda1.

Anyone an idea?


< Daenyth> and he works prolifically
4 8 15 16 23 42

Offline

Board footer

Powered by FluxBB