Results 1 to 6 of 6

Thread: Boot Error with Encrypted Disk

  1. #1
    Join Date
    Jan 2008
    Beans
    33

    Boot Error with Encrypted Disk

    Hi folks,

    my problem is similar to this one but it's not quite the same.

    I installed the Intrepid Ibex from the CD and upgraded to Jaunty today. I used the encrypt the whole disk option when I installed Intrepid. Now my system isn't booting any more, no matter which kernel (2.6.27 and 2.6.28) I'm using. It just wont do anything more than this:
    Code:
    Enter passphrase to unlock the disk (sda2_crypt):
    key slot 0 unlocked
    Command successful
    cryptsetup: sda2_crypt setup successfully
    Begin: Waiting for encrypted source device ...
    Then it freezes and wont to anything no matter how long you wait.

    I can boot into a live system, install lvm2 and cryptsetup and then the partition is perfectly mountable and I'm able to read and write on it.

    I'm having the adventurous guess that it could be related to the LUKS failing automount in Jaunty bug but that's just I guess and I have no idea how to get around it.

    Do you need any more information, have you got any ideas that could eventually save me?

  2. #2
    Join Date
    Jan 2008
    Beans
    33

    Re: Boot Error with Encrypted Disk

    Absolutely no ideas?

    Do you think it would be worth a try creating an (unencrypted) image from the encrypted partition and use that again? I think I'm going to try that with a virtual machine and see what happens.

  3. #3
    Join Date
    Mar 2007
    Beans
    7

    Re: Boot Error with Encrypted Disk

    I'm having exactly the same problem. Solution found, thumbs up to zabuzzman
    Last edited by fieus; April 27th, 2009 at 01:13 PM.

  4. #4
    Join Date
    Mar 2007
    Beans
    7

    Re: Boot Error with Encrypted Disk

    OK! I was able to fix it.

    My setup:
    /dev/sda1 boot partition (unencrypted)
    /dev/sda5 root partition (encrypted)
    /dev/sda6 swap partition (encrypted)

    Boot a live-cd.
    # Become root
    sudo su
    # Mount the boot partition temporarily somewhere
    mount /dev/sda1 /mnt
    # make a temp directory to extract the initrd image
    mkdir /tmp/image
    # Copy your current initrd image to tmp/image (check this in /mnt/grub/menu.lst)
    cp /mnt/initrd.img-2.6.28-11-generic /tmp/image/initrd.img-2.6.28-11-generic.orig

    cd /tmp/image
    # extract the initrd image
    gzip -d < initrd.img-2.6.28-11-generic.orig | cpio --extract --verbose --make-directories --no-absolute-filenames
    vi conf/conf.d/cryptroot

    >> There you will see something like
    target=sda5_crypt,source=/dev/disk/by-uuid/blahdiblah,key=none

    Change this to:
    target=sda5_crypt,source=/dev/sda5,key=none

    find . | cpio -H newc --create --verbose | gzip -9 > initrd.img-2.6.28-11-generic

    cp initrd.img-2.6.28-11-generic /mnt

    Reboot and enjoy the Jaunty bitch

  5. #5
    Join Date
    Jan 2008
    Beans
    33

    Lightbulb Re: Boot Error with Encrypted Disk

    Thank you so much! It does boot now, did what you described there and that was just what needed to be done! Perfect! Can't thank you enough.


    Now I have no sound, but I think I'll fix that and I'll be able to listen to the guitar

  6. #6
    Join Date
    Apr 2008
    Location
    Kansas City
    Beans
    509

    Re: Boot Error with Encrypted Disk

    Didn't work for me.

    I upgraded Ubuntu 12.04.02 LTS kernel from 3.2 to 3.9 and when I rebooted I got this error... my root partition is encrypted.

    I tried these steps, looked promising the whole way through... but didn't work.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •