Ubuntu 13.10 - How to disable LVM and cryptsetup? cryptsetup: evms_activate is not available
Posted
by
NeverEndingQueue
on Server Fault
See other posts from Server Fault
or by NeverEndingQueue
Published on 2014-01-29T13:08:07Z
Indexed on
2014/05/26
21:32 UTC
Read the original article
Hit count: 222
I am trying to remove whole drive encryption from my Ubuntu installation. I've run Ubuntu from Live CD, mounted crypt partition and copied it to another partition /dev/sda3.
sudo cryptsetup luksOpen /dev/sda5 crypt1
sudo dd if=/dev/ubuntu-vg/root of=/dev/sda3 bs=1M
After that I've run boot-repair: https://help.ubuntu.com/community/Boot-Repair
Added entry to /etc/fstab:
UUID=<uuid> / ext4 errors=remount-ro 0 1
Of course I've replaced with blkid result of my /dev/sda3. I've also deleted overlayfs and tmpfs lines from /etc/fstab. (I've just compared it to content of /etc/fstab in non-encrypted Ubuntu installation and could not find overlayfs and tmpfs).
I've chrooted from LiveCD into my system and rebuilt initramfs: http://blog.leenix.co.uk/2012/07/evmsactivate-is-not-available-on-boot.html
I've also removed cryptsetup using apt-get remove.
Basically I can easily mount my system partition from Live CD (without setting up the encryption and LVM stuff), but can not boot from it. Instead I see:
cryptsetup: evms_activate is not available
When I've chosen the Recovery mode I've seen this:
Begin: Mounting root file system ...
Begin: Running /script/local-top ...
Reading all physical volumes.
This may take a while ...
No volume groups found
cryptsetup: evms_activate is not available
Begin: Waiting for encrytpted source device ...
My /etc/crypttab is empty.
I am pretty sure that system tries to find encrypted partition, search for LVMs etc.
Do you have ideas what could be the problem or how can I fix it?
Thanks
© Server Fault or respective owner