Article 6NCH5 Grub freezes with cryptomount

Grub freezes with cryptomount

by
lucmove
from LinuxQuestions.org on (#6NCH5)
I am trying to make Grub unlock a partition at boot:

Code:menuentry "Locked partition" {
insmod luks
1. search.fs_uuid 297bf30d-39bb-4e13-bf50-45d704294e7e root
2. search --no-floppy --fs-uuid --set=root 297bf30d-39bb-4e13-bf50-45d704294e7e
3. cryptomount ($root)
4. cryptomount -u 297bf30d-39bb-4e13-bf50-45d704294e7e
5. cryptomount hd1,1
insmod btrfs
linux (crypto0)/target/vmlinuz noauto
initrd (crypto0)/target/initrd.xz
}The numbered lines typed in here are not identical to what I really have. They are just all there and numbered to indicate everything I have tried. In reality, I used:

1. and 3.
Result: Grub says there is no such cryptodisk.

2. and 3.
Result: Grub says there is no such cryptodisk.

Only 4.
Result: Grub says there is no such cryptodisk.

I have triple checked the uuid. I copied and pasted it.

Only 5.
Result: Grub prompts for a password! So I type the password, press Enter and... it freezes. Nothing else happens and even Ctrl+Alt+Del won't work, I have to hard reset.

What am I doing wrong?
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments