I was updating my crypttab to include a new encrypted disk that I added (/dev/sdd). I already have 3 other encrypted /dev/sda, sdb, and sdc.
I ran update-initramfs -u -k all and rebooted my machine.
Normally upon rebooting I get a prompt for the password to decrypt /dev/sda through /dev/sdc.
This time the prompt came up for /dev/sda but an error also popped up saying /dev/sda1 is not a valid LUKS device.
No matter how many times I typed in my password it would not accept it ( typed it really carefully too and rebooted many times). After 3 times the system told me I had tried too many times and continued to boot.
Another password prompt came up, worded slightly different and with a different text font because I believe the system passed the initramfs phase, for /dev/sda. This time when I typed my password it worked and continued to boot the machine.
There is something wrong going on with my initramfs boot. Because even though the system mounted the encrypted drive some things were wrong. The /dev/sda drive was not showing up in the OMV encrypted disks panel, even though I could see all my data at the linux prompt.
When I ran [tt]lsblk[\tt] it showed that /dev/sda had 2 partitions /dev/sda1 and /dev/sda2. This is not correct the drive is partitioned as one entire linux LUKs partition. The other drives /dev/sdb through /dev/sdd which are also LUKs drives don't show any partitions. I have checked in gpartd and fdisk to confirm that there is only 1 partition on /dev/sda.
I have run [tt]update-initramfs[\tt] multiple times and even removed the new drive that I added. But still /dev/sda is booting with the error showing that it has a /dev/sda1 & 2 partition.
I have run testdisk on the drive to check the partition table and it says it's ok.
When I boot form a SystemRescueCD image [tt]lsblk[\tt] shows the only one partition for /dev/sda as /dev/sda.
This problem has also broken my remote ssh unlocking of the drives via dropbear.
Is something wrong with the linux image/kernal used while making initramfs? what else can I check ?
Please any ideas would be greatly appreciated.