cryptsetup and encrypted partition NOT mounting
#1
Hi,

I have successfully encrypted partition on external HDD using cryptsetup and guide from this address:

http://ubuntu-tutorials.com/2007/08/17/7...able-disk/

I can mount this partition on my 2 laptops, but cannot do this on eeePC 701 with XBMC installed.

using
Code:
$ sudo cryptsetup luksOpen /dev/sdc1 secure
I got:
"Enter LUKS passphrase:
Command failed: unknown hash spec in phdr[/CODE]

my lsmod shows:
Code:
$ lsmod
Module                  Size  Used by
aes_i586                8124  0
aes_generic            27484  1 aes_i586
cryptd                  6496  0
lirc_mceusb            15520  0
lirc_dev               10804  1 lirc_mceusb
joydev                 10272  0
dm_crypt               12928  0
uvcvideo               59080  0
psmouse                56500  0
videodev               36736  1 uvcvideo
lp                      8964  0
v4l1_compat            14496  2 uvcvideo,videodev
serio_raw               5280  0
eeepc_laptop           13936  0
parport                35340  1 lp
atl2                   25716  0
fbcon                  36640  72
tileblit                2460  1 fbcon
font                    8124  1 fbcon
bitblit                 5372  1 fbcon
softcursor              1756  1 bitblit
i915                  221064  1
drm                   159584  1 i915
i2c_algo_bit            5760  1 i915
usb_storage            52576  0
intel_agp              27484  2 i915
agpgart                34988  2 drm,intel_agp
video                  19380  1 i915
output                  2780  1 video

I though that maybe I am missing some modules, but cannot really find any that I may be missing.

Does any of You use encrypted partition? Have You met this issue?
Reply
#2
Heh, probably not xbmc sepecific but make sure you have all your crypts and hashes on that box, cat /proc/crypto on the box that it works on and make sure you have all the same on your xbmc box. I would make sure the hash part like sha256 and sha512 are available to the kernel.
Reply
#3
Thanks! That put me closer to the root of the problem I think.

I have installed missing arc4 driver and loaded it. Currently comparing my box that disk is working with, with the xbmc box that it does not work by cat /proc/crypto I can find only one module missing on xbmc.
Code:
That is name         : ecb(arc4)
driver       : ecb(arc4-generic)
module       : kernel
priority     : 0
refcnt       : 3
selftest     : passed
type         : blkcipher
blocksize    : 1
min keysize  : 1
max keysize  : 256
ivsize       : 0
geniv        : <default>

I cannot get the way to get it installed/loaded on xbmc. Do U know what package do I miss. modprobing ecb does not work.

Here is my full cat /proc/crypto from xbmc box..

Code:
$ cat /proc/crypto
name         : arc4
driver       : arc4-generic
module       : arc4
priority     : 0
refcnt       : 1
selftest     : passed
type         : cipher
blocksize    : 1
min keysize  : 1
max keysize  : 256

name         : aes
driver       : aes-asm
module       : aes_i586
priority     : 200
refcnt       : 1
selftest     : passed
type         : cipher
blocksize    : 16
min keysize  : 16
max keysize  : 32

name         : aes
driver       : aes-generic
module       : aes_generic
priority     : 100
refcnt       : 1
selftest     : passed
type         : cipher
blocksize    : 16
min keysize  : 16
max keysize  : 32

name         : stdrng
driver       : krng
module       : kernel
priority     : 200
refcnt       : 1
selftest     : passed
type         : rng
seedsize     : 0

name         : md5
driver       : md5-generic
module       : kernel
priority     : 0
refcnt       : 1
selftest     : passed
type         : shash
blocksize    : 64
digestsize   : 16
descsize     : 88
Reply
 
Thread Rating:
  • 0 Vote(s) - 0 Average



Logout Mark Read Team Forum Stats Members Help
cryptsetup and encrypted partition NOT mounting00
This forum uses Lukasz Tkacz MyBB addons.