Alvin Thompson <alvin@xxxxxxxxxxxxxxxxx> wrote: > Can you later determine the mapped device name ('backup' in this case) if all you know is the device (/dev/sdd1)? There is no way to do this offline, i.e. as long as the mapped device is not created. LUKS does not store information about "preferred names" or something like that. If the device is online, you can try ls -l /sys/block/dm-*/slaves/* Just modify the pattern to your needs, like /sys/block/dm-*/slaves/sdd1 The mapping from dm-x to the symbolic name could be a bit harder, just in case the dm-* names don't fit your needs. I'd go for ls -l /dev/mapper/* | grep " $(sed -e 's/:/, */' /sys/block/dm-x/dev) " or something like that. Mind the surrounding spaces to get the pattern safe or use grep -w. regards Mario -- There are trivial truths and the great truths. The opposite of a trivial truth is plainly false. The opposite of a great truth is also true. -- Niels Bohr _______________________________________________ dm-crypt mailing list dm-crypt@xxxxxxxx http://www.saout.de/mailman/listinfo/dm-crypt