Just found out why I did not notice this before: When the disk is not present at mount time, the respective entry is not created in /dev/scsi/ and you get the traditional output. I think "status" should always give the traditional one as it has a fixed mapping between major/minor and device (see Documentation/devices.txt in the Linux sources), while the /dev/scsi/ entry has not. Maybe have the device in /dev/scsi/ in addition, if present, e.g. like this: root ~>cryptsetup status c1 /dev/mapper/c1 is active: cipher: aes-cbc-essiv:sha256 keysize: 256 bits device: /dev/sdd (/dev/scsi/sdh4-0c0i0l0) offset: 0 sectors size: 1953525168 sectors mode: read/write root ~> Arno On Sun, Jan 10, 2010 at 04:16:59PM +0100, Arno Wagner wrote: > Cryptsetup seems to report the device in /dev/scsi/* > if they are present, instead of the device name > mappings were created with. So I created with /dev/sdd > and status tells me I have /dev/scsi/sdh4-0c0i0l0, > which is really a problem because it could cause me > to confuse devices and map them twice or the like. > > Is there an easy way to map this back or turn off this > behaviour or list both device names? What I do at the > moment is to look at major and minor of the reported > device and than look up which traditional device this > matches. > > If this is a fundamental problem, I will likely > write a wrapper (something like crypt-status) > that does the lookup for me, but maybe there is > an easier solution? > > Arno > > -- > Arno Wagner, Dr. sc. techn., Dipl. Inform., CISSP -- Email: arno@xxxxxxxxxxx > GnuPG: ID: 1E25338F FP: 0C30 5782 9D93 F785 E79C 0296 797F 6B50 1E25 338F > ---- > Cuddly UI's are the manifestation of wishful thinking. -- Dylan Evans > > If it's in the news, don't worry about it. The very definition of > "news" is "something that hardly ever happens." -- Bruce Schneier > _______________________________________________ > dm-crypt mailing list > dm-crypt@xxxxxxxx > http://www.saout.de/mailman/listinfo/dm-crypt > -- Arno Wagner, Dr. sc. techn., Dipl. Inform., CISSP -- Email: arno@xxxxxxxxxxx GnuPG: ID: 1E25338F FP: 0C30 5782 9D93 F785 E79C 0296 797F 6B50 1E25 338F ---- Cuddly UI's are the manifestation of wishful thinking. -- Dylan Evans If it's in the news, don't worry about it. The very definition of "news" is "something that hardly ever happens." -- Bruce Schneier _______________________________________________ dm-crypt mailing list dm-crypt@xxxxxxxx http://www.saout.de/mailman/listinfo/dm-crypt