Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
genkernel - initramfs wont mount crypt-root
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
krotuss
Apprentice
Apprentice


Joined: 01 Aug 2008
Posts: 247

PostPosted: Sun Nov 12, 2023 10:38 pm    Post subject: genkernel - initramfs wont mount crypt-root Reply with quote

Hi,

recently my SSD failed and I have moved my system to USB attached HDD, but now system fails to boot with what I consider to be correct boot parameters.

Kernel cmdline:
Code:
BOOT_IMAGE=/vmlinuz-6.1.57-gentoo-x86_64 root=UUID=[edited out] ro rootflags=subvol=root crypt_root=/dev/sdb3 root_trim=yes memtest=1


this results in initramfs complaining that it cannot find crypt-root, but when I type /dev/sdb3 and press enter system continues to boot and boots successfully. Can this be caused by some race condition with mass storage modules loading?

Code:

dmsetup deps
crypt-hdd: 1 dependencies       : (8, 3)
crypt-sda4: 1 dependencies      : (8, 4)
root: 1 dependencies    : (8, 19)

ls -l /dev/sdb3
brw-rw---- 1 root disk 8, 19 Nov 12 22:44 /dev/sdb3
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23081

PostPosted: Sun Nov 12, 2023 11:12 pm    Post subject: Reply with quote

Yes. USB is well known to be too slow to be reliably discovered by the time the kernel is ready to mount root. Move the hard disk to a non-USB connection, or instruct the initramfs to either retry a few times or to wait before the first attempt.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum