[pkg-cryptsetup-devel] Bug#669861: cryptsetup: Unable to select correct swap device
Rodolfo García Peñas (kix)
kix at kix.es
Sat Apr 21 13:18:24 UTC 2012
Package: cryptsetup
Version: 2:1.4.1-3
Severity: important
Hi,
cryptsetup is unable to select the correct swap device, then is unable to decrypt the correct drive.
I got this error:
update-initramfs: Generating /boot/initrd.img-3.2.0-2-686-pae
cryptsetup: WARNING: found more than one resume device candidate:
sda3_crypt
81c6f99f-d571-497c-a6db-759f4beb0b2d
But my swap device is:
root at hakata:~# dmesg | grep swap
[ 598.327480] Adding 4198972k swap on /dev/mapper/sda3_crypt. Priority:-1 extents:1 across:4198972k
root at hakata:~# cat /etc/fstab | grep swap
/dev/mapper/sda3_crypt none swap sw 0 0
root at hakata:~#
On the other hand, I don't know where cryptsetup finds "81c6f99f-d571-497c-a6db-759f4beb0b2d", because my drives are:
root at hakata:~# ls /dev/disk/by-uuid -l
total 0
lrwxrwxrwx 1 root root 10 abr 21 13:33 2b4c0c84-a2ca-499b-81ad-23212b953653 -> ../../dm-0
lrwxrwxrwx 1 root root 10 abr 21 13:41 37b3da30-224d-4068-9174-d6c59269863b -> ../../sda2
lrwxrwxrwx 1 root root 10 abr 21 13:41 9CECBF41ECBF148C -> ../../sda4
lrwxrwxrwx 1 root root 10 abr 21 13:42 b0eba5e3-50f8-4b1a-a0d8-3d8c9e59b61b -> ../../dm-1
lrwxrwxrwx 1 root root 10 abr 21 13:41 d67c66b0-3bf4-4316-8e13-46e8551f292b -> ../../sda1
lrwxrwxrwx 1 root root 10 abr 21 13:42 f3bd4025-a010-48c5-8e3a-237d501aedb1 -> ../../sda3
root at hakata:~#
Then, uswsusp is unable to find /dev/dm-1 and then I cannot load the suspend image:
root at hakata:~# dmsetup ls
sda2_crypt (254, 0)
sda3_crypt (254, 1)
root at hakata:~#
root at hakata:~# cat /etc/uswsusp.conf | grep dev
resume device = /dev/dm-1
root at hakata:~#
Best regards,
kix
-- Package-specific info:
-- /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-3.2.0-2-686-pae root=UUID=d67c66b0-3bf4-4316-8e13-46e8551f292b ro quiet
-- /etc/crypttab
sda2_crypt UUID=37b3da30-224d-4068-9174-d6c59269863b none luks
sda3_crypt UUID=f3bd4025-a010-48c5-8e3a-237d501aedb1 none luks,swap
-- /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'vol_id --uuid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# / was on /dev/sda1 during installation
UUID=d67c66b0-3bf4-4316-8e13-46e8551f292b / ext3 errors=remount-ro 0 1
/dev/mapper/sda2_crypt /home ext3 defaults 0 2
/dev/mapper/sda3_crypt none swap sw 0 0
#/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0
# /dev/sda4 /mnt/win ntfs-3g user,noauto 0 0
UUID=9CECBF41ECBF148C /mnt/win ntfs-3g user,noauto 0 0
-- lsmod
Module Size Used by
hid_logitech_dj 12991 0
usbhid 31523 1 hid_logitech_dj
hid 60120 2 usbhid,hid_logitech_dj
acpi_cpufreq 12807 1
mperf 12421 1 acpi_cpufreq
cpufreq_conservative 12987 0
cpufreq_stats 12762 0
cpufreq_powersave 12422 0
cpufreq_userspace 12520 0
binfmt_misc 12813 1
uinput 12991 1
fuse 52153 1
nfsd 173714 2
nfs 261507 0
nfs_acl 12463 2 nfs,nfsd
auth_rpcgss 32143 2 nfs,nfsd
fscache 31978 1 nfs
lockd 57255 2 nfs,nfsd
sunrpc 143853 6 lockd,auth_rpcgss,nfs_acl,nfs,nfsd
loop 17810 0
snd_hda_codec_realtek 142180 1
snd_hda_intel 21856 0
snd_hda_codec 63477 2 snd_hda_intel,snd_hda_codec_realtek
snd_hwdep 12943 1 snd_hda_codec
snd_pcm_oss 36181 0
snd_mixer_oss 17668 1 snd_pcm_oss
snd_pcm 53390 3 snd_pcm_oss,snd_hda_codec,snd_hda_intel
snd_page_alloc 12867 2 snd_pcm,snd_hda_intel
snd_seq_midi 12744 0
snd_seq_midi_event 13124 1 snd_seq_midi
joydev 17010 0
snd_rawmidi 18376 1 snd_seq_midi
arc4 12418 2
ath9k 67776 0
ath9k_common 12648 1 ath9k
ath9k_hw 311354 2 ath9k_common,ath9k
uvcvideo 56896 0
i915 303459 2
ath 17114 3 ath9k_hw,ath9k_common,ath9k
mac80211 171359 1 ath9k
snd_seq 39487 2 snd_seq_midi_event,snd_seq_midi
cfg80211 117454 3 mac80211,ath,ath9k
videodev 61658 1 uvcvideo
snd_seq_device 13016 3 snd_seq,snd_rawmidi,snd_seq_midi
snd_timer 22356 2 snd_seq,snd_pcm
drm_kms_helper 22699 1 i915
media 13692 2 videodev,uvcvideo
drm 134178 3 drm_kms_helper,i915
iTCO_wdt 16945 0
acer_wmi 21651 0
snd 42691 11 snd_timer,snd_seq_device,snd_seq,snd_rawmidi,snd_pcm,snd_mixer_oss,snd_pcm_oss,snd_hwdep,snd_hda_codec,snd_hda_intel,snd_hda_codec_realtek
sparse_keymap 12680 1 acer_wmi
iTCO_vendor_support 12632 1 iTCO_wdt
evdev 17225 8
rfkill 18516 2 acer_wmi,cfg80211
i2c_algo_bit 12713 1 i915
psmouse 54927 0
i2c_i801 12670 0
ac 12552 0
battery 12957 0
power_supply 13283 2 battery,ac
soundcore 12921 1 snd
wmi 13051 1 acer_wmi
i2c_core 19116 6 i2c_i801,i2c_algo_bit,drm,drm_kms_helper,videodev,i915
video 17412 1 i915
serio_raw 12803 0
processor 27483 1 acpi_cpufreq
button 12817 1 i915
ext3 138190 2
mbcache 12897 1 ext3
jbd 51377 1 ext3
cryptd 14125 0
aes_i586 16608 16
aes_generic 32970 1 aes_i586
xts 12557 8
gf128mul 12922 1 xts
dm_crypt 18039 2
dm_mod 57278 5 dm_crypt
sd_mod 35425 4
crc_t10dif 12332 1 sd_mod
ata_generic 12439 0
ata_piix 21175 3
libata 124981 2 ata_piix,ata_generic
scsi_mod 135194 2 libata,sd_mod
uhci_hcd 22337 0
ehci_hcd 35509 0
fan 12594 0
usbcore 104352 5 ehci_hcd,uhci_hcd,uvcvideo,usbhid
thermal 13103 0
thermal_sys 17752 4 thermal,fan,processor,video
atl1c 31542 0
usb_common 12338 1 usbcore
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 3.2.0-2-686-pae (SMP w/2 CPU cores)
Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages cryptsetup depends on:
ii debconf [debconf-2.0] 1.5.42
ii dmsetup 2:1.02.67-2
ii libc6 2.13-27
ii libcryptsetup4 2:1.4.1-2
ii libpopt0 1.16-3
cryptsetup recommends no packages.
Versions of packages cryptsetup suggests:
ii busybox 1:1.19.3-5
ii dosfstools 3.0.12-1
ii initramfs-tools [linux-initramfs-tool] 0.101
ii liblocale-gettext-perl 1.05-7+b1
ii udev 175-3.1
-- debconf information:
cryptsetup/prerm_active_mappings: true
More information about the pkg-cryptsetup-devel
mailing list