[Bug 1037703] Re: Not possible to mount cryptsetup luks partitions at boot

luislupe luislupe at gmail.com
Wed Sep 5 15:35:57 UTC 2012


The crypttab I presented before was just one of many attempts I tried.

I've just tried with the four fields per line, like this:

# cat /etc/crypttab | grep -v '^#' | grep -v '^$'
encriptado		/dev/sda6   none      tries=4
cryptswap		/dev/sda5  		/dev/urandom   		swap

The result is the same.
I guess this is not a problem of incorrect configuration made by me, as I had this working in 10.04 and also in another distro.

** Changed in: cryptsetup (Ubuntu)
       Status: Invalid => New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to cryptsetup in Ubuntu.
https://bugs.launchpad.net/bugs/1037703

Title:
  Not possible to mount cryptsetup luks partitions at boot

Status in “cryptsetup” package in Ubuntu:
  New

Bug description:
  I installed a fresh 12.04, after wiping 10.04 and encrypted a partition via cryptsetup luks...
  I followed the same procedure as in 10.04 and it was working fine there.

  After the boot process, I can manually open the encrypted partition as well as swapon on the swap partition.
  The problem is that this doesn't work during the boot process as it should. 
  Ive been searching and this seems to be an 'old' problem now.

  Here's my data:

  Description:	Ubuntu 12.04.1 LTS
  Release:	12.04

  # apt-cache policy cryptsetup
  cryptsetup:
    Instalado: 2:1.4.1-2ubuntu4
    Candidato: 2:1.4.1-2ubuntu4
    Tabela de Versão:
   *** 2:1.4.1-2ubuntu4 0
          500 http://pt.archive.ubuntu.com/ubuntu/ precise/main i386 Packages
          100 /var/lib/dpkg/status

  # apt-cache policy cryptmount
  cryptmount:
    Instalado: 4.2.1-1
    Candidato: 4.2.1-1
    Tabela de Versão:
   *** 4.2.1-1 0
          500 http://pt.archive.ubuntu.com/ubuntu/ precise/universe i386 Packages
          100 /var/lib/dpkg/status

  # apt-cache policy cryptsetup-bin
  cryptsetup-bin:
    Instalado: 2:1.4.1-2ubuntu4
    Candidato: 2:1.4.1-2ubuntu4
    Tabela de Versão:
   *** 2:1.4.1-2ubuntu4 0
          500 http://pt.archive.ubuntu.com/ubuntu/ precise/main i386 Packages
          100 /var/lib/dpkg/status

  # cat /etc/crypttab | grep -v '^#' | grep -v '^$'
  encriptado		/dev/sda6
  cryptswap		/dev/sda5  		/dev/urandom   		swap

  Although the process doesn't get to this point, there's my relevant lines of fstab
  # grep -e 'cryptswap' -e 'encriptado' /etc/fstab
  /dev/mapper/cryptswap swap swap defaults 0 0
  /dev/mapper/encriptado /encriptado ext4 defaults 0 0

  When I boot, I get these messages:
  """
  The disk drive for /dev/mapper/encriptado is not ready yet or not present 
  Continue to wait; or press S to skip mounting or M for manual recovery

  The disk drive for /dev/mapper/cryptswap is not ready yet or not present
  Continue to wait; or press S to skip mounting or M for manual recovery
  """

  If I wait, nothing happens.
  If I press S (twice), none of the partitions are mapped:
  # ls -l /dev/mapper/
  total 0
  crw------- 1 root root 10, 236 Ago 16 18:50 control

  Thanks for any help, as this computer will not be used by me but by a
  non savvy person in this area.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cryptsetup/+bug/1037703/+subscriptions




More information about the foundations-bugs mailing list