View previous topic :: View next topic |
Author |
Message |
krotuss Apprentice
Joined: 01 Aug 2008 Posts: 247
|
Posted: Sun Nov 12, 2023 10:38 pm Post subject: genkernel - initramfs wont mount crypt-root |
|
|
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 |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 23082
|
Posted: Sun Nov 12, 2023 11:12 pm Post subject: |
|
|
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 |
|
|
|
|
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
|
|