[lug] Ubuntu 20.04 upgrade weirdness with udev

Bear Giles bgiles at coyotesong.com
Sun Aug 2 17:26:52 MDT 2020


I finally got around to upgrading my final desktop and hit a weird problem.
This might help others.

The upgrade seemed to go fine.

However when I was back at the GDM login screen I couldn't get it. I would
provide my credentials, wait a bit, then the login screen reset and I had
to login again. Unsuccessfully.

At a VT I was able to get in but there was a very long delay from MOTD to
prompt.

The google machine sent me down a few false trails but I eventually
realized that my /home partition wasn't mounted. I have a split system - /
is on a large HDD and /home is on an NVMe drive. The decrypted NVMe drive
wasn't appearing in /dev/mapper, and when I run a command like 'pvdisplay'
I get

  WARNING: Device /dev/sda not initialized in udev database even after
waiting 10000000 microseconds.

I think that's why my home directory isn't getting auto-decrypted. I don't
know the exact relationship but it looks like udev knows how to call
cryptsetup when it sees an encrypted disk. Normally it would see that the
second partition is encrypted and it would automatically decrypt it and add
it to /dev/mapper since it already had the passphrase but for some reason
udev isn't seeing either disk. I think I can boot since it's grub mounting
/.

I hope this will be quietly fixed in a routine update but wanted to mention
it in case anyone else hits it. I didn't see it in any of my other systems
but they don't have /home on a second drive.

Bear
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lug.boulder.co.us/pipermail/lug/attachments/20200802/8e9e9cf6/attachment.html>


More information about the LUG mailing list