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:[EMAIL PROTECTED]:~]# uname -r 2.6.18-4-486 [23:18:[EMAIL PROTECTED]:~]# 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:[EMAIL PROTECTED]:~]# modprobe dm-crypt [23:19:[EMAIL PROTECTED]:~]# lsmod | grep !$ lsmod | grep dm-crypt [23:19:[EMAIL PROTECTED]:~]# lsmod | grep dm_crypt dm_crypt 10888 1 dm_mod 48952 7 dm_crypt,dm_snapshot,dm_mirror [23:19:[EMAIL PROTECTED]:~]# cryptsetup -c aes -s 256 -d /dev/stdin create root /dev/md0 </key Command failed: device-mapper: reload ioctl failed: Invalid argument [23:19:[EMAIL PROTECTED]:~]# 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:[EMAIL PROTECTED]:~]# > 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:[EMAIL PROTECTED]:~]$ 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:[EMAIL PROTECTED]:~]$ su Password: [23:24:[EMAIL PROTECTED]:/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:[EMAIL PROTECTED]:/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 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]