Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dmcrypt rc errors (SOLVED)
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
marrowhk
Apprentice
Apprentice


Joined: 25 Jul 2007
Posts: 250

PostPosted: Tue Mar 18, 2008 3:40 pm    Post subject: dmcrypt rc errors (SOLVED) Reply with quote

Suddenly getting error with swap encryption (dmcrypt), any ideas?

Error

Code:
dmcrypt       | * Caching service dependencies ...                                                      [ ok ]
dmcrypt       | * Setting up dm-crypt mappings ...
dmcrypt       | * Checking swap is not LUKS
dmcrypt       | * dm-crypt map crypt-swap ...
dmcrypt       | * cryptsetup will be called with : -c aes -h sha1 -d /dev/urandom create crypt-swap /dev/sda5
dmcrypt       |Command failed: device-mapper: reload ioctl failed: Invalid argument
dmcrypt       | * failure running cryptsetup                                                            [ !! ]
dmcrypt       | * Failed to setup dm-crypt devices                                                      [ !! ]
dmcrypt       | * ERROR: dmcrypt failed to start

Installed:
Code:
[ebuild   R   ] sys-fs/device-mapper-1.02.24-r1  USE="(-selinux)"
[ebuild   R   ] sys-fs/cryptsetup-1.0.5-r1  USE="nls -build -dynamic (-selinux)"


SIMPLE SOLUTION! :oops: [ Make sure no running swap files when changing to dmcrypt ]

Remove all swap file details from /etc/fstab and reboot without a swap file. (swapoff doesn't seem to work for me)
Now running /etc/init.d/dmcrypt works (given that /etc/conf.d/dmcrypt has been edited correctly)
Add to boot by rc-update and Bob's ur uncle. Back to an ancrypted swap file. Ahhhh.

_________________
You'll always come back to GENTOOOOOOO ! (Trust me...)
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