{"id":325,"date":"2012-04-29T16:21:41","date_gmt":"2012-04-29T22:21:41","guid":{"rendered":"http:\/\/wmb11.wmbuck.net\/?p=325"},"modified":"2019-07-24T17:14:16","modified_gmt":"2019-07-24T23:14:16","slug":"ubuntu-12-04-and-luks-encrypted-root-drive","status":"publish","type":"post","link":"https:\/\/wmbuck.net\/blog\/?p=325","title":{"rendered":"Ubuntu 12.04 and luks encrypted root drive"},"content":{"rendered":"<p>I had trouble booting the last few kernels that came out in 11.10 (3.0.0-16 and 17), and alas the same trouble with booting 12.04 which I installed today.<\/p>\n<p>My root filesystem is encrypted, and I expect during the boot process to get a prompt for the encryption password. This doesn&#8217;t happen, and instead the boot drops into busybox. I was able to just keep using 3.0.0-15 under 11.10 but now that 12.04 is installed I can&#8217;t do that anymore. Actually have to try to track this down. .<\/p>\n<p>After a lot of digging around, I haven&#8217;t completely got it figured out, but I did find some hints in this tread: <a href=\"https:\/\/bugs.launchpad.net\/ubuntu\/+source\/cryptsetup\/+bug\/874774\">https:\/\/bugs.launchpad.net\/ubuntu\/+source\/cryptsetup\/+bug\/874774<\/a>\u00a0which gave me a start, and at least enabled me to boot. The thread describes a mixup in matching device names from udev to names in \/etc\/crypttab. If a match isn&#8217;t found, you don&#8217;t get a prompt for a password, the device doesn&#8217;t get luksOpened, and the boot fails waiting for it. So, the trick is to ensure the matching logic finds a match between the udev devname and the entry in \/etc\/crypttab. I actually didn&#8217;t even have an entry in \/etc\/crypttab for the root device. Silly me. I had entries for a couple of other encrypted devices. I would love to report that all I had to do was put in an entry in \/etc\/crypttab and it all worked. I alas not &#8211; I haven&#8217;t yet managed to get the problem solved. But I now know where to look, and more importantly reading the thread mentioned did make clear the short term workaround, which may be clear to everyone but me: it didn&#8217;t occur to me that once I dropped into busybox, I could just do cryptsetup luksOpen \/dev\/sde3 sde3_crypt, type in the correct password, and then exit busybox. The boot process resumes and is successful.<\/p>\n<p>Update: In the normal course of Ubuntu updates I got 3.2.24 and the problem spontaneously healied itself. Now upon boot, I get an early prompt for the root password. Bob&#8217;s your uncle. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>I had trouble booting the last few kernels that came out in 11.10 (3.0.0-16 and 17), and alas the same trouble with booting 12.04 which I installed today. My root filesystem is encrypted, and I expect during the boot process to get a prompt for the encryption password. This doesn&#8217;t happen, and instead the boot &hellip; <a href=\"https:\/\/wmbuck.net\/blog\/?p=325\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Ubuntu 12.04 and luks encrypted root drive<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[40,11,4,9],"tags":[],"class_list":["post-325","post","type-post","status-publish","format-standard","hentry","category-boot-issues","category-encryption","category-linux","category-ubuntu"],"_links":{"self":[{"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/325"}],"collection":[{"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=325"}],"version-history":[{"count":7,"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/325\/revisions"}],"predecessor-version":[{"id":363,"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/325\/revisions\/363"}],"wp:attachment":[{"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=325"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=325"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=325"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}