Hi,
I tried to install Kali on an encryped HDD with both grub and boot partition on an external USB drive, but I got a I/O message during grub setup on the USB drive's MBR.
Then, on first reboot the system stopped at grub prompt and I tried to manually load and boot the linux kernel and initrd, but I got a kernel panic.
So after booting the live disk and manually mounting the encrypted partition, I found the /etc/crypttab file was empty. I then added the line:
Code:
sdax_crypt /dev/disk/by-uuid/[...] none luks
and did update-initramfs, and still no password prompt appears during boot to decrypt the HDD partition. The boot process now fails and I get back to initramfs prompt.
How can I fix my initramfs and correctly update grub?
Many thanks
EDIT: apparently, the issue was due to the following line in the /etc/boot/grub file:
Code:
GRUB_CMDLINE_LINUX="initrd=/install/gtk/initrd.gz"
I commented out that line and relaunched update-initramfs -u: the password prompt now appears on boot and the root partition can be successfully decrypted