Advertisement: Linux VPS from $4/month - contact support for custom offer.
+ Post New Thread
Results 1 to 1 of 1

Thread: cryptsetup: ERROR: sdb5_crypt: Source mismatch

  1. #1
    Administrator
    Join Date
    Mar 2013
    Posts
    2,780

    cryptsetup: ERROR: sdb5_crypt: Source mismatch

    $ sudo update-initramfs -u
    update-initramfs: Generating /boot/initrd.img-6.1.0-25-amd64

    ...cryptsetup: ERROR: sdb5_crypt: Source mismatch

    $ grep crypt /etc/crypttab

    sdb5_crypt UUID=UID1HERE none luks,discard
    $ sudo blkid|grep crypt

    /dev/nvme0n1p5: UUID="UID1HERE" TYPE="crypto_LUKS" PARTUUID="UID1bHERE"

    /dev/mapper/sdb5_crypt: UUID="UID2HERE" TYPE="LVM2_member"

    /dev/sda5: UUID="UID1HERE" TYPE="crypto_LUKS" PARTUUID="UID1bHERE"
    /dev/nvme0n1p5 is the clone of the /dev/sda5 if i am not mistaken - so the cause of the "source mismatch" MAY be this duplicity of UUIDs, but i have doubts


    This command works to get rid of the mismatch error in initramfs update:
    sudo cryptsetup luksUUID --uuid=newuuid /dev/sda5


    I am unsure if it is good idea but system booted later on, though running again above mentioned blkid and /etc/crypttab output commands, it still shows duplicity across the drives, yet somehow the "update-initramfs -u" no longer complains, I am unsure what fixed this issue. If it was really the UUID change command which modified UUID somewhere internally.


    I have replaced "errors=remount-ro" by "errors=remount-ro,nofail" inside /etc/fstab as someone suggested.
    Last edited by Fli; Yesterday at 09:51 AM.

+ Post New Thread

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
 Protected by : ZB BLOCK  &  StopForumSpam