[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[sid] [cryptsetup] Command failed: No key available for this passphrase.



Bonjour,

J'ai un gros soucis avec une debian sid qui ne veut plus se lancer
depuis une mise à jour début août.
Le problème survient lors de la saisie de la passphrase pour
déchiffrer une partition luks où se trouvent un groupe de volume lvm.
/, /home, /tmp, /usr, /var et mon swap sont dans ce groupe de volume,
mais /boot est une partition ext3 non chiffrée à part.
Je tape correctement la bonne passphrase, mais cryptsetup ne veut rien
entendre et m'envoie systématiquement sur les roses.
Je peux pourtant déchiffrer la partition à la main à partir du shell
de récupération busybox accessible après plusieurs essais infructueux
ou à partir d'un live cd.
J'ai fait toutes les mises à jour récentes via un live cd et chroot
mais sans aucun effet et je ne trouve pas de problème similaire dans
les forum debian, ni dans les listes de diffusions...
De plus, si j'arrive à déchiffrer manuellement ma partition dans le
shell busybox, je n'arrive pas à y monter mes volumes logiques lvm,
ceux ci n'apparaissant pas dans /dev/mapper/...

voici un log du démarrage (recopié à la main, donc quelques coquilles
sont peut être de la partie...)
Mes commentaires sont balisés "   </>"

Enter passphrase to unlock the disk /dev/sda2 (sda2_crypt):
  <my passphrase/>
Command failed: No key available for this passphrase.

cryptsetup: cryptsetup failed, bad password or options ?
  <6 times/>
done.
Begin: waiting for root file system ... done.
Gave up waiting for root device. Common problems:
 - Boot args (cat /proc/cmdline)
  - Check rootdelay= (did the system wait long enough?)
  - Check root= (did the system wait for the right device?)
 - Missing modules (cat /proc/modules; ls /dev)
ALERT! /dev/mapper/vgMain-lvRoot does not exist. Dropping to a shell!

  <then busybox shell/>
  <i successfully try to open the luks partition>
(initramfs) ./sbin/cryptsetup luksOpen /dev/sda2 sda2_crypt
Enter LUKS passphrase:
  <my passphrase/>
  <not easy with qwerty keyboard/>
key slot 0 unlocked.
Command successful.
(initramfs) cat /proc/cmdline
root=/dev/mapper/vgMain-lvRoot ro vga=791
(initramfs) cat /proc/modules
  <modules' names only, it's hand writing output after all.../>
ext3
jbd
mbcache
sha256_generic
aes_x86_64
aes_generic
cbc
dm_crypt
crypto_blkcipher
dm_mirror
dm_log
dm_snapshot
dm_mod
sg
sr_mod
cdrom
sd_mod
ata_piix
ata_generic
libata
scsi_mod
dock
b44
usbhid
hid
ff_memless
sdhci
ohci1394
mmc_core
ieee1394
ehci_hcd
ide_pci_generic
ssb
pcmcia
pcmcia_core
firmware_class
mii
ide_core
uhci_hcd
thermal
processor
fan
thermal_sys
(initramfs) ls -lh /dev
  <devices' names only, it's hand writing output after all.../>
bsg
bus
cdrom -> scd0
cdrw -> scd0
console
cpu_dma_latency
disk
dm-0
dvd -> scd0
dvdrw -> scd0
fb0
full
hidraw0
hidraw1
hidraw2
hpet
input
kmem
kmsg
mapper
mcelog
mem
network_latency
network_throughput
null
port
psaux
ptmx
ram[0 to 15] <too many/>
random
rtc -> rtc0
rtc0
scd0
sda
sda1
sda2
sg0
sg1
snapshot
sr0 -> scd0
tty[0 to 63] <too many/>
ttyS0
ttyS1
ttyS2
ttyS3
urandom
usbdev[x.x_epxx] <too many/>
usbmon0
usbmon1
usbmon2
usbmon3
usbmon4
usbmon5
vcs
vcs1
vcsa
vcsa1
zero
(initramfs) mount -t ext3 /dev/mapper/vgMain-lvRoot /
mount: No such file or directory
   <?/>
(initramfs) ls /dev/mapper/
control
sda2_crypt
   <why is there no lvm logical volume here?/>
   <vgchange -a y doesn't do anything.../>
   <dm_mod is all ready threre.../>

Voila où j'en suis à ce jour, je ne sais plus quoi faire alors je
sollicite votre aide ;)
Merci et bon appétit

Adrien

Reply to: