Results 1 to 3 of 3

Thread: Cryptsetup: lvm not available after BIOS update

  1. #1
    Join Date
    May 2020
    Beans
    2

    Cryptsetup: lvm not available after BIOS update

    Hi everyone,

    I'm a bit of a newbie and haven't figured out how to fix this problem: I recently installed a BIOS update but afterwards, when I try booting into ubuntu, I get this error: "cryptsetup (nvme0n1p7_crypt): lvm is not available".

    For background:
    -Lenovo machine
    -dual boot with Windows
    -I'm able to get past the screen that asks me to choose between booting into Windows or Ubuntu
    -had installed ubuntu onto an encrypted partition, following the steps in this I believe https://www.hecticgeek.com/2012/10/h...-installation/
    -I installed the BIOS update from Windows, and actually also had problems with booting into Windows after the update (was stuck at "Preparing Automatic Repair") but eventually got that fixed and I'm now able to boot into Windows fine

    Searching for fixes, one included reinstalling lvm which I tried from the live ubuntu installation on the USB drive I had used, but I was not able to install it. Wondering if anyone might have any tips before I have to reinstall ubuntu altogether? Thanks in advance!
    Last edited by eefa1; May 25th, 2020 at 03:24 PM.

  2. #2
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Cryptsetup: lvm not available after BIOS update

    The initrd needs to understand both mdcrypt+LUKS and LVM. Instructions from 2012 are pretty old. I didn't think it was possible to setup a dualboot system with encryption.

    So, you'll need to convince mkinitramfs to include the tools needed to open the encrypted partition and read the LVM stuff. I don't know how to do that, but google should help.

  3. #3
    Join Date
    May 2020
    Beans
    2

    Re: Cryptsetup: lvm not available after BIOS update

    Thanks for replying! Even though the instructions are from 2012, they still managed to work for me (fortunately!). However I just noticed this thread https://ubuntuforums.org/showthread.php?t=2399092 and I'd probably go with that in the future.

    In case this helps other people in the future, the fix ended up being: in BIOS setup, had to change SATA mode to AHCI, then it was able to find everything appropriately. I had pretty much given up trying to fix this problem and was about to re-install Ubuntu following the steps in https://www.reddit.com/r/Lenovo/comm...n_yoga_730_13/ when I recalled reading somewhere that updating BIOS causes configurations to reset to their default values so when I came across that step, I decided to see if that would fix things - so happy it did!

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •