If you create a raw dm-crypt partition with cryptsetup, there is no valiadation at all, i.e. you can do this on a non-encrypted partition and not get an error message. Ir is extremely unlikely for encrypted data to just match the magic number, so something else is likely wrong here. Arno On Mon, Sep 06, 2010 at 08:33:58PM +0800, Aaron Lewis wrote: > Hi, > blkid told me the type of an encrypted partition is "ext4" , while > cryptsetup works fine. > > * blkid /dev/sda8 > /dev/sda8: LABEL="ROOT" UUID="92d7eb3f-617d-4d63-8d1c-86b99ddeb5e4" > TYPE="ext4" > > ( TYPE should be crypto_LUKS ) > > I've went through util-linux's source code , all magic code are defined here: > shlibs/blkid/src/superblocks/luks.c > > I should not modify partition directly , should be some tools could help , > anyone know ? > > Many thanks ! > > -- > Best Regards, > Aaron Lewis - PGP: 0x4A6D32A0 > FingerPrint EA63 26B2 6C52 72EA A4A5 EB6B BDFE 35B0 4A6D 32A0 > irc: A4R0NL3WI5 on freenode > _______________________________________________ > 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