LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-23-2019, 02:11 PM   #1
wandored
LQ Newbie
 
Registered: Mar 2019
Posts: 4

Rep: Reputation: Disabled
Question crypto luks UUID not found


my server died in november (CentOS 7), just now replaced the MOBO, CPU and Memory. I have 4 drives in lvm with LUKS encryption. I get the "UUID not found" when i try to startup. When I startup in rescue mode it asks for my passphrase and i can log in just fine. I can access everything in rescue mode.
I have looked over the crypttab and fstab and all seams to be consistent but i still get the error when i try regular login.

Code:
#
# /etc/fstab
# Created by anaconda on Sun Jan 28 16:01:35 2018
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/luks-629475c3-6815-403b-af6a-2f40d8ded61c /                       ext4    defaults,x-systemd.device-timeout=0 1 1
UUID=a5707a15-bf94-4eb9-b6ee-a0ca6e2db2b9 /boot                   ext4    defaults        1 2
/dev/mapper/luks-4cb5c396-d282-48c2-bfb0-e271475e5118 /home                   ext4    defaults,x-systemd.device-timeout=0 1 2
/dev/mapper/luks-460e73c9-8cd2-4c77-9ce5-09b8460dd7f0 /var                    ext4    defaults,x-systemd.device-timeout=0 1 2
/dev/mapper/luks-cf1a9462-2f25-43ff-93f1-14e76f842ad8 swap                    swap    defaults,x-systemd.device-timeout=0 0 0
Code:
[root@plexserver robert]# cat /etc/crypttab
luks-cf1a9462-2f25-43ff-93f1-14e76f842ad8 UUID=cf1a9462-2f25-43ff-93f1-14e76f842ad8 none 
luks-460e73c9-8cd2-4c77-9ce5-09b8460dd7f0 UUID=460e73c9-8cd2-4c77-9ce5-09b8460dd7f0 none 
luks-629475c3-6815-403b-af6a-2f40d8ded61c UUID=629475c3-6815-403b-af6a-2f40d8ded61c none 
luks-4cb5c396-d282-48c2-bfb0-e271475e5118 UUID=4cb5c396-d282-48c2-bfb0-e271475e5118 none
What am i missing!
 
Old 03-24-2019, 07:01 AM   #2
Brains
Senior Member
 
Registered: Apr 2009
Distribution: All OS except Apple
Posts: 1,591

Rep: Reputation: 389Reputation: 389Reputation: 389Reputation: 389
I know it would be silly to think the kernel parameters are different for normal boot and booting in rescue mode, but would be worth looking at. At the grub menu, hit the "e" key for each entry and see if there's a difference in the kernel lines.
 
Old 03-24-2019, 01:58 PM   #3
wandored
LQ Newbie
 
Registered: Mar 2019
Posts: 4

Original Poster
Rep: Reputation: Disabled
rescue:
link removed

normal boot:
link removed

a few differences. I don't know which might be the issue. The root UUID's are different, and that is the UUID it cannot find when i get the error.

Last edited by wandored; 03-28-2019 at 08:45 PM. Reason: edit image links
 
Old 03-24-2019, 05:09 PM   #4
Brains
Senior Member
 
Registered: Apr 2009
Distribution: All OS except Apple
Posts: 1,591

Rep: Reputation: 389Reputation: 389Reputation: 389Reputation: 389
Yeah..
Have you tried manually changing out root=/dev/mapper/luks-629475c3-6815-403b-af6a-2f40d8ded61c for: root=UUID=d3215eff-2f78-47de-9d78-8582dda2e90a?

They both have:
rd.luks.uuid=luks-629475c3-6815-403b-af6a-2f40d8ded61c
rd.luks.uuid=luks-cf1a9462-2f25-43ff-93f1-14e76f842ad8
Which is / and swap. Maybe these two only come into effect after the passphrase is entered.
 
Old 03-24-2019, 05:49 PM   #5
wandored
LQ Newbie
 
Registered: Mar 2019
Posts: 4

Original Poster
Rep: Reputation: Disabled
ill give that a try. Here is the blkid info. Dont know if this info helps.

Code:
[root@plexserver robert]# blkid
/dev/sdb1: UUID="a5707a15-bf94-4eb9-b6ee-a0ca6e2db2b9" TYPE="ext4" 
/dev/sdb2: UUID="YjBQrR-gFRl-IUNC-2Kzt-WSXv-ZBTA-ZThaGr" TYPE="LVM2_member" 
/dev/sdb3: UUID="629475c3-6815-403b-af6a-2f40d8ded61c" TYPE="crypto_LUKS" 
/dev/sdb5: UUID="cf1a9462-2f25-43ff-93f1-14e76f842ad8" TYPE="crypto_LUKS" 
/dev/sdc1: UUID="5DH18J-Oc2G-37ya-jBly-SXAC-QtBC-4mniX3" TYPE="LVM2_member" 
/dev/sde1: UUID="xDCSI7-MHEe-ywcQ-q1qF-exLs-O50u-MMmTMW" TYPE="LVM2_member" 
/dev/sdd1: UUID="OF6Jzh-nwqd-g3qA-Qb62-5pvF-YHLR-jpjIED" TYPE="LVM2_member" 
/dev/mapper/centosVG-01: UUID="460e73c9-8cd2-4c77-9ce5-09b8460dd7f0" TYPE="crypto_LUKS" 
/dev/mapper/centosVG-00: UUID="4cb5c396-d282-48c2-bfb0-e271475e5118" TYPE="crypto_LUKS" 
/dev/mapper/luks-cf1a9462-2f25-43ff-93f1-14e76f842ad8: UUID="db0f1885-5d8e-4b12-8647-0ec61ab8069c" TYPE="swap" 
/dev/mapper/luks-629475c3-6815-403b-af6a-2f40d8ded61c: LABEL="root" UUID="d3215eff-2f78-47de-9d78-8582dda2e90a" TYPE="ext4" 
/dev/mapper/luks-4cb5c396-d282-48c2-bfb0-e271475e5118: UUID="96e11679-8863-460c-a11f-f1a342075947" TYPE="ext4" 
/dev/mapper/luks-460e73c9-8cd2-4c77-9ce5-09b8460dd7f0: UUID="e5a9ea33-fff7-40d6-b084-c07a8e8d874a" TYPE="ext4"
 
Old 03-28-2019, 08:39 PM   #6
wandored
LQ Newbie
 
Registered: Mar 2019
Posts: 4

Original Poster
Rep: Reputation: Disabled
I haven't had any time to work on this all week. I left it running in rescue mode all week. It downloaded updates and when i re-booted, i was able to log in with normal boot. still not sure what the problem was but there you go.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] /dev/disk/by-uuid/<uuid here> does not exist and initramfs shell Mitt Green Linux - Kernel 4 08-03-2015 11:56 AM
[SOLVED] How to mount by-uuid if the device won't show in /dev/disk/by-uuid untill after blkid /dev/sd* ? masmddr Linux - General 4 01-10-2011 07:38 PM
Change UUID - Edit UUID using the dd command GMHilltop Linux - Newbie 10 10-28-2010 07:39 PM
Volume has problems including no uuid in /dev/disk/by-uuid abejarano Linux - Hardware 3 12-31-2008 08:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:21 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
Open Source Consulting | Domain Registration