[pkg-cryptsetup-devel] Bug#576186: cryptsetup: Setting up crypto device on Startup takes too long w/ ext3

hvx at divara.de hvx at divara.de
Thu Apr 1 11:07:10 UTC 2010


Package: cryptsetup
Version: 2:1.0.6-7
Severity: normal


Mounting a 250gb crypto device from /etc/mtab takes almost one minute at
startup with almost no harddrive activity. This problem startet to occur
when switching from JFS to ext3.

/etc/crypttab:
# <target name>	<source device>		<key file>	<options>
cryptofs	/dev/sda3		none
check,tries=3,cipher=aes-cbc-essiv:sha256

/var/log/boot: (see the timestamps)
Thu Apr  1 11:09:57 2010: Starting early crypto disks...cryptofs (starting).
Thu Apr  1 11:09:57 2010: Enter passphrase to unlock the disk /dev/sda3 (cryptofs): 
Thu Apr  1 11:10:50 2010: done.

In order to check whether using so much time is normal, I bought another
harddisk of the same type and mirrored my system to this new disk using
the "dd" command. Mounting this disk (via usb) when the system is
startet up already takes less then 2 seconds. 

Therefore i believe that some bug is causing cryptsetup to wait 50
seconds before doing something sensible.


-- System Information:
Debian Release: 5.0.4
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.33 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages cryptsetup depends on:
ii  dmsetup                     2:1.02.27-4  The Linux Kernel Device Mapper use
ii  libc6                       2.7-18lenny2 GNU C Library: Shared libraries
ii  libdevmapper1.02.1          2:1.02.27-4  The Linux Kernel Device Mapper use
ii  libpopt0                    1.14-4       lib for parsing cmdline parameters
ii  libuuid1                    1.41.3-1     universally unique id library

cryptsetup recommends no packages.

Versions of packages cryptsetup suggests:
pn  dosfstools                <none>         (no description available)
ii  initramfs-tools [linux-in 0.92o          tools for generating an initramfs
ii  udev                      0.125-7+lenny3 /dev/ and hotplug management daemo

-- no debconf information





More information about the pkg-cryptsetup-devel mailing list