cryptsetup.sh and cryptsetup luks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi. 

i created and use my crypted partition with crypsetup.sh. 

cryptsetup.sh -c aes -h -ripemd160 b `blockdev --getsize /dev/hda2` create
hda2 /dev/hda2 && mount /mnt/hda2

but when i use cryptsetup luks 1.0.3
it creates the device but i can't mount it 
cryptsetup -c aes -b `blockdev --getsize /dev/hda2` create hda2 /dev/hda2

i got:
$ dd if=/dev/mapper/hda2  bs=512 count=1|xxd
1+0 records in
1+0 records out
0000000: c6cc e6f3 39ce 6d0b 9e63 9861 264f 1c72  ....9.m..c.a&O.r
0000010: 232c 6f60 8fa8 576a 762b 9123 b7cf 28f6  #,o`..Wjv+.#..(.
0000020: 03ed 2892 0059 37cd 5599 d810 dfc1 21fb  ..(..Y7.U.....!.
0000030: 2eeb f2ec f653 0ade 3304 1276 5408 5ac1  .....S..3..vT.Z.

but when i use cryptsetup.sh 
$ dd if=/dev/mapper/hda2  bs=512 count=1|xxd
1+0 records in
1+0 records out
0000000: 5846 5342 0000 1000 0000 0000 0022 3220  XFSB........."2
0000010: 0000 0000 0000 0000 0000 0000 0000 0000  ................
0000020: f03d 9495 ac4a 4eb6 b47e 0815 ac22 7b9e  .=...JN..~..."{.
0000030: 0000 0000 0020 0004 0000 0000 0000 0080  ..... ..........

and you see the xfs flag of the partition

so what's wrong? what do i do wrong ? 


---------------------------------------------------------------------
 - http://www.saout.de/misc/dm-crypt/
To unsubscribe, e-mail: dm-crypt-unsubscribe@xxxxxxxx
For additional commands, e-mail: dm-crypt-help@xxxxxxxx


[Index of Archives]     [Device Mapper Devel]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux