Bug#409875: [Pkg-cryptsetup-devel] Bug#409875: bug #409875
Johannes Schlumberger
asso at doriath.informatik.uni-erlangen.de
Wed Feb 7 23:26:16 CET 2007
Hi,
> This would suggest that the problem is not with cryptsetup at least.
> Something seems wonky with device-mapper in general.
Whom should I be talking to about this?
> Just to make sure, do you think you could install the Debian packaged
> kernel, boot it and try to setup the mapping with that kernel?
I still get an error.
[23:18:42][root at asso:~]# uname -r
2.6.18-4-486
[23:18:47][root at asso:~]# apt-cache policy linux-image-2.6.18-4-486
linux-image-2.6.18-4-486:
Installed: 2.6.18.dfsg.1-10
Candidate: 2.6.18.dfsg.1-10
Version table:
*** 2.6.18.dfsg.1-10 0
500 http://debian.informatik.uni-erlangen.de sid/main Packages
100 /var/lib/dpkg/status
[23:19:02][root at asso:~]# modprobe dm-crypt
[23:19:14][root at asso:~]# lsmod | grep !$
lsmod | grep dm-crypt
[23:19:19][root at asso:~]# lsmod | grep dm_crypt
dm_crypt 10888 1
dm_mod 48952 7 dm_crypt,dm_snapshot,dm_mirror
[23:19:29][root at asso:~]# cryptsetup -c aes -s 256 -d /dev/stdin create root /dev/md0 </key
Command failed: device-mapper: reload ioctl failed: Invalid argument
[23:19:36][root at asso:~]# dmesg | tail -n 3
device-mapper: table: 253:2: crypt: Device lookup failed
device-mapper: ioctl: error adding target to table
device-mapper: ioctl: device doesn't appear to be in the dev hash table.
[23:19:42][root at asso:~]#
> If it tries to setup 253:2, that suggests that there are two other
> device-mapper devices already setup...what is the output of "ls -al
> /dev/mapper", "dmsetup table" and "cat /proc/mounts"? Also, are you
> using udev?
That is right, my two encrypted swappartitions.
[23:21:59][spjsschl at asso:~]$ ls -al /dev/mapper/
total 0
drwxr-xr-x 2 root root 100 2007-02-07 23:21 .
drwxr-xr-x 14 root root 4520 2007-02-07 23:21 ..
crw-rw---- 1 root root 10, 63 2007-02-08 00:21 control
brw-rw---- 1 root disk 253, 0 2007-02-07 23:21 swap1
brw-rw---- 1 root disk 253, 1 2007-02-07 23:21 swap2
[23:23:52][spjsschl at asso:~]$ su
Password:
[23:24:04][root at asso:/home/spjsschl]# dmsetup table
swap2: 0 995967 crypt aes-cbc-plain
8fd07cf5cecac858cdd2c0ce673449b4c1734cecbe8a24e5be629d542c975cf1 0 22:5 0
swap1: 0 6458067 crypt aes-cbc-plain
dde5fec1ee7146100bc83af997171ce196c2d1c453134d21e574f85ccc296588 0 22:65 0
[23:24:11][root at asso:/home/spjsschl]# cat /proc/mounts
rootfs / rootfs rw 0 0
/dev/root / ext3 rw,data=ordered 0 0
tmpfs /lib/init/rw tmpfs rw,nosuid 0 0
proc /proc proc rw,nosuid,nodev,noexec 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec 0 0
usbfs /proc/bus/usb usbfs rw,nosuid,nodev,noexec 0 0
/dev/root /dev/.static/dev ext3 rw,data=ordered 0 0
tmpfs /dev tmpfs rw 0 0
tmpfs /dev/shm tmpfs rw,nosuid,nodev 0 0
devpts /dev/pts devpts rw,nosuid,noexec 0 0
/dev/hdc6 /home/spjsschl/data-scratch xfs rw 0 0
/dev/hdc3 /home/spjsschl/c vfat
rw,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1 0 0
/dev/hdc2 /home/spjsschl/winspace ext3 rw,data=ordered 0 0
none /tmp tmpfs rw 0 0
none /var/tmp tmpfs rw 0 0
none /sys/fs/fuse/connections fusectl rw 0 0
I am using udev.
best regards,
Johannes
More information about the Pkg-cryptsetup-devel
mailing list