marrowhk Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 25 Jul 2007 Posts: 250
|
Posted: Tue Mar 18, 2008 3:40 pm Post subject: dmcrypt rc errors (SOLVED) |
|
|
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! [ 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...) |
|