Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] cryptsetup luksFormat not working on AMD64
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
fangorn
Veteran
Veteran


Joined: 31 Jul 2004
Posts: 1886

PostPosted: Sun Mar 25, 2007 3:47 pm    Post subject: [Solved] cryptsetup luksFormat not working on AMD64 Reply with quote

Hi,

I tried all day getting cryptsetup to work. I have tested kernel 2.6.19 and 2.6.20, compiled the crypt options as modules or into the kernel, all I get is this
Code:
 -> /bin/cryptsetup -c blowfish-cbc-essiv:sha256 -y -s 256 luksFormat /dev/sde1

WARNING!
========
This will overwrite data on /dev/sde1 irrevocably.

Are you sure? (Type uppercase yes): YES
Enter LUKS passphrase:
Verify passphrase:
Unable to obtain sector size for /dev/sde1Failed to setup dm-crypt key mapping.
Check kernel for support for the blowfish-cbc-essiv:sha256 cipher spec and verify that /dev/sde1 contains at least 258 sectors.
Failed to write to key storage.
Command failed.

-> cryptsetup luksFormat /dev/sde1

WARNING!
========
This will overwrite data on /dev/sde1 irrevocably.

Are you sure? (Type uppercase yes): YES
Enter LUKS passphrase:
Verify passphrase:
Unable to obtain sector size for /dev/sde1Failed to setup dm-crypt key mapping.
Check kernel for support for the aes-cbc-essiv:sha256 cipher spec and verify that /dev/sde1 contains at least 133 sectors.
Failed to write to key storage.
Command failed.


Does cryptsetup-luks even work on AMD64? What am I missing?

I am seriously stuck here.

Thanks in advance for any hint.
fangorn
_________________
Video Encoding scripts collection | Project page


Last edited by fangorn on Sat Mar 31, 2007 7:47 am; edited 1 time in total
Back to top
View user's profile Send private message
Nylan
n00b
n00b


Joined: 14 Jun 2003
Posts: 38

PostPosted: Thu Mar 29, 2007 1:46 pm    Post subject: Reply with quote

Luks works fine on amd64 x2, only some issues with mounting (gnome-mount=solved, /etc/conf.d/cryptfs=solved)


Please check:
http://gentoo-wiki.com/SECURITY_System_Encryption_DM-Crypt_with_LUKS#FAQ

and

https://forums.gentoo.org/viewtopic-t-370023-start-0-postdays-0-postorder-asc-highlight-.html


Last edited by Nylan on Sat Mar 31, 2007 3:54 pm; edited 1 time in total
Back to top
View user's profile Send private message
fangorn
Veteran
Veteran


Joined: 31 Jul 2004
Posts: 1886

PostPosted: Sat Mar 31, 2007 7:46 am    Post subject: Reply with quote

Sorry I didnt post back.

I solved the problem. Seems to have been a kernel problem. As soon as I compiled ALL the crypto options into the kernel it worked. Strange. I loaded all the modules by hand and it didnt work. :roll:
_________________
Video Encoding scripts collection | Project page
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum