Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    " not found" error at boot

    Hi guys,

    I'm running an ubuntu based OS on an encrypted external hdd drive and recently ran "apt-get autoremove" which has damaged my ability to boot the drive.

    The kernel boots to the passphrase login point but then gives an error that reads something like "error loading shared library - /sbin/cryptsetup/ file/directory does not exist". It does let me enter the passphrase but gives an error when I submit it - "crypsetup failed: options or bad password"

    So I've mounted the drive in my normal ubuntu 11.04 environment and copied the from "/lib/i386-linux-gnu/" to:

    /media/"boot partition volume identifier"/tmp/sbin

    the same error still occurs.

    Any ideas? I have some vital and sensitive information on the disk so urgent help would be greatly appreciated.

    Thanks in advance

  2. #2
    Just to add,

    I can mount the encrypted filesystem in ubuntu with the passphrase - so it's definitely not a bad pass issue.

    I have tried chrooting into the mounted filesystem from a BT5 live cd and doing the same work, but to no avail. The below work in terminal just announces that all programs are present and up to date.

    apt-get update
    apt-get install cryptsetup ecryptfs-utils keyutils hashalot lvm2
    cryptsetup luksOpen /dev/[your logical partition] pvcrypt
    mkdir /mnt/backtrack5
    mount /dev/mapper/vg-root /mnt/backtrack5
    mount /dev/[boot partition] /mnt/backtrack5/boot
    chroot /mnt/backtrack5
    mount -t proc proc /proc
    mount -t sysfs sys /sys
    mount -t devpts devpts /dev/pts
    apt-get install cryptsetup ecryptfs-utils keyutils hashalot lvm2
    Basically I have done this:


    Do not run aptitude safe-upgrade! It will remove some vital tools. Run apt-get upgrade instead which appears to leave things installed that need to be installed. If you should happen to run aptitude safe-upgrade, ignore the warning about removing packages, type 'Y' and let it do its thing, you will need to run the following command before you reboot or your install will be broken.

    apt-get install cryptsetup ecryptfs-utils keyutils

    If you have problems, you can use the troubleshooting directions below to get back to the state where you can try to figure out how what went wrong.]Backtrack 5 – Bootable USB Thumb Drive with “Full” Disk Encryption

    Any solutions?

Posting Permissions

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