Boot Hangs

So you just installed Ubuntu 18.04 with full disk encryption on your laptop which has a Nvidia graphics card. You install the graphics driver reboot and wham… your boot process gets stuck with something like this:

Failed to connect to lvmetad. Falling back to device scanning. /dev/mapper/ubuntu–vg–root: clean, 500699/15081472 files 9150222/60315648 blocks

  1. Open another tty screen (ALT+F3 or ALT + ➱)
  2. Log in to your user account
  3. edit grub config
    1. sudo nano /etc/default/grub
    2. Find the line:
      1. GRUB_CMDLINE_LINUX=”nomodeset
    3. Replace the “nomodeset” with “nouveau.modeset=0” so that the line reads:
      1. GRUB_CMDLINE_LINUX=”nouveau.modeset=0″
    4. Save the changes and exit nano
  4. sudo update-grub
  5. reboot

Infinite Login 

So you get to Gnome login screen. You try to login and no matter what it logs you in and then logs you right back out. 

  1. Open another tty screen (ALT+F3)
  2. Login
  3. ls -lA
  4. make sure the file “.Xauthority” is owned by the user. For example:

-rw——- 1 user user 0 Sep 14 14:17 .Xauthority

If not, sudo rm .Xauthority


A few other things I have found helpful to get 18.04 to play nicely with Nvidia, LVM, Gdm and disk encryption:

  • Add the group video to your user
    • sudo usermod -a -G video <USERNAME>
  • Uninstall and reinstall the Nvidia Driver
    • sudo apt purge nvidia-*
    • sudo ubuntu-drivers autoinstall
  • Make sure Gdm is setup correctly
    • sudo dpkg-reconfigure gdm3