All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arno Wagner <arno@wagner.name>
To: dm-crypt@saout.de
Subject: Re: [dm-crypt] /sbin/cryptsetup: not found on boot after Grub repair - manual mounting works
Date: Sat, 21 May 2016 20:45:42 +0200	[thread overview]
Message-ID: <20160521184541.GA29592@tansi.org> (raw)
In-Reply-To: <066bd431719b6afc60cf696b1a7f6ede@whitehouse.kiwi.nz>

Hi,

I have no idea what Ubuntu does in the initramfs, but
this sounds like your initramfs was rebuilt without 
the cryptsetup binary. Just another reason why I 
do not like the initramfs: Everything gets hard to debug.
I have done an LUKS-unlocking initramfs manually though
for a server-installation that boots from memory-stick.

Maybe reinstaling the package that does booting from 
encrypted root on Ubuntu will fix this. Alternatively, 
you may try to add it to your initramfs manually, including
all libraries it uses. That may be a bit tricky though.

As for diagnostics, there are some explanations on the web
how to unpack an initramfs. You could check whether
there is an /sbin/cryptestup in there. That is probably
the easiest first step.

Regards,
Arno

On Sat, May 21, 2016 at 16:14:04 CEST, Aaron wrote:
> Hello,
> 
> I would really appreciate any help to make my system boot properly
> again. I can manually mount my encrypted partitions and they unlock
> correctly, so I'm pretty sure that I haven't lost my data, but
> something that used to work in the Ubuntu 16.04 boot process to
> unlock and boot the partitions must have broken, as whenever I boot
> now, typing my password no longer unlocks and boots Ubuntu. Instead
> it says:
> “cryptsetup: cryptsetup failed, bad password or options?”
> 
> If I press escape and get to the console output, it says:
> /scripts/local-top/cryptroot: line 1: /sbin/cryptsetup: not found
> over and over.
> 
> In case the history is relevant, I recently had to reinstall Windows
> on a dual-boot machine. That meant that I had to use boot repair to
> get my Grub back. I now have what seems to be a working Grub, but
> when I boot into Ubuntu and enter my password into the “Please
> unlock disk sda6_crypt”, it fails as described.
> http://paste.ubuntu.com/16443425/
> was the output of the boot-repair reconfiguration of Grub.
> 
> I booted in with a live CD and chrooted into my installation. I did
> an apt-get update and apt-get upgrade and I see the following in the
> output:
> Processing triggers for initramfs-tools (0.122ubuntu8) ...
> update-initramfs: Generating /boot/initrd.img-4.4.0-22-generic
> device-mapper: table ioctl on sda6_crypt failed: No such device or
> address
> Command failed
> cryptsetup: WARNING: failed to determine cipher modules to load for
> sda6_crypt
> 
> I asked for help here: https://answers.launchpad.net/ubuntu/+source/cryptsetup/+question/293750
> but nobody has had any ideas so far.
> 
> Any ideas would be greatly, greatly appreciated.
> 
> Kind regards,
> 
> Aaron
> _______________________________________________
> dm-crypt mailing list
> dm-crypt@saout.de
> http://www.saout.de/mailman/listinfo/dm-crypt

-- 
Arno Wagner,     Dr. sc. techn., Dipl. Inform.,    Email: arno@wagner.name
GnuPG: ID: CB5D9718  FP: 12D6 C03B 1B30 33BB 13CF  B774 E35C 5FA1 CB5D 9718
----
A good decision is based on knowledge and not on numbers. -- Plato

If it's in the news, don't worry about it.  The very definition of 
"news" is "something that hardly ever happens." -- Bruce Schneier

  reply	other threads:[~2016-05-21 18:45 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-21 14:14 [dm-crypt] /sbin/cryptsetup: not found on boot after Grub repair - manual mounting works Aaron
2016-05-21 18:45 ` Arno Wagner [this message]
2016-05-21 18:58 ` Hugh Bragg
2016-05-22  1:34 ` Sven Eschenberg
2016-05-25 18:25   ` Aaron
2016-05-25 19:25     ` Sven Eschenberg
2016-05-25 22:17       ` Arno Wagner
2016-05-25 23:13         ` Sven Eschenberg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160521184541.GA29592@tansi.org \
    --to=arno@wagner.name \
    --cc=dm-crypt@saout.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.