LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 07-21-2019, 03:12 PM   #1
temporpippo
LQ Newbie
 
Registered: Jul 2019
Posts: 6

Rep: Reputation: Disabled
Unhappy [SOLVED] Dependency failed for /boot LUKS on external USB drive after


Please somebody help me after a firmware update my Debian Sid with encrypted LUKS root does not boot clean anymore.

At boot, after inserting my passphrase, there are a bunch of messages and a timeout for like 30 seconds, and then finally I receive some yellow and red warnings about "dependency failed for /boot" and "/boot/efi". I am prompted for the root password for a recovery shell. The crazy thing is that in this shell the filesystem is mounted correctly! But I cannot start GDM3 or network.

My laptop is a Thinkpad X280 on dual boot. On partition 3 there is Windows 10, then there are three system and recovery partitions for windows, and then partition 5 is an encrypted LUKS which contains a single ext4 partition with root filesystem (including home etc, no swap). The boot drive is an external USB key which has two partitions: one to be mounted at /boot and one to be mounted at /boot/efi. I need to plug the USB key and then power on the laptop in order to boot linux, but the BIOS automatically boots Windows if a USB boot drive is not found.

Today, on Debian Sid, I did a firmware update (1.29 I think) and I guess something wrong happened. The GRUB entry 4.19.0-5 does not work anymore (complains about a missing UUID and gives me the initramfs shell, but I didn't touch the partition table!) and the old 4.19.0-4 as explained above hangs on for 30 seconds and then prompts me for the recovery shell (where, oddly, partitions are indeed mounted correctly).

Windows 10 boots correctly.

Some relevant info:

uname -r
Code:
4.19.0-4-amd64


lsblk -o name,uuid,mountpoint

Code:
NAME                UUID                                 MOUNTPOINT
sda                                                      
nvme0n1                                                  
├─nvme0n1p1         7C73-6F5A                            
├─nvme0n1p2                                              
├─nvme0n1p3         305C76675C76282C                     /media/windows
├─nvme0n1p4         FEA47899A478565D                     
└─nvme0n1p5         cb3c672b-efca-4dc5-8d2c-48e2b6bf5ebe 
  └─nvme0n1p5_crypt 624d89ed-ee58-42b9-a6c2-16bdb2bcecb8 /
```

/etc/crypttab
Code:
nvme0n1p5_crypt UUID=cb3c672b-efca-4dc5-8d2c-48e2b6bf5ebe none luks

/etc/fstab
Code:
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
/dev/mapper/nvme0n1p5_crypt /               ext4    errors=remount-ro 0       1
# /boot was on /dev/sdc2 during installation
UUID=3ace0b0e-e917-48d2-bdc9-db8032a0dbd7 /boot           ext4    defaults        0       2
# /boot/efi was on /dev/sdc1 during installation
UUID=2724-DDC9  /boot/efi       vfat    umask=0077      0       1
# added by me: windows partition
/dev/nvme0n1p3	/media/windows	ntfs	user	0	1

Any help appreciated

Last edited by temporpippo; 07-26-2019 at 02:15 PM. Reason: solved
 
Old 07-25-2019, 06:52 PM   #2
ordealbyfire83
Member
 
Registered: Oct 2006
Location: Leiden, Netherlands
Distribution: LFS, Ubuntu Hardy
Posts: 269

Rep: Reputation: 48
It sounds like something went wrong with your initrd. I haven't used Debian-based systems in a while, but is there any chance it made a backup initrd during your upgrade? If so you might want to try booting with that and see if there is any difference.
 
Old 07-26-2019, 02:14 PM   #3
temporpippo
LQ Newbie
 
Registered: Jul 2019
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ordealbyfire83 View Post
It sounds like something went wrong with your initrd. I haven't used Debian-based systems in a while, but is there any chance it made a backup initrd during your upgrade? If so you might want to try booting with that and see if there is any difference.
Good point, in fact booting with the old initrd worked, thanks!

In any case, this fixed the issue for me.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to access and decrypt LUKS encrypted SSD that has been moved from internal drive to external USB drive Chripcikas Linux - Newbie 8 02-21-2019 07:52 AM
Manjaro + LUKS ( full disk crypt) + key external USB drive + keyencrypt John Fergusson Linux - Security 2 11-11-2018 11:31 AM
LUKS on RAID or RAID on LUKS? retch Linux - Server 3 05-05-2010 01:57 PM
external enclosure for an internal hard drive vs external USB hard drive powah Linux - Hardware 1 03-10-2006 09:03 AM
how to solve failed dependency when dependency exists dwcramer Linux - Newbie 2 08-24-2004 09:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 03:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration