On Wed, Sep 19, 2007 at 06:59:00PM +0200, Thomas Bächler wrote: > Petar Bogdanovic schrieb: > >> $ sudo losetup -a > >> $ mount -p 0 /mnt/POOL < /home/petar/keys/POOL.key > >> ioctl: LOOP_SET_STATUS: No such file or directory > > > > Sorry, I forgot this: > > > > $ grep /mnt/POOL /etc/fstab > > /opt/POOL /mnt/POOL ext2 rw,user,noauto,loop,encryption=blowfish128 0 0 > > I seriously have no idea what to do about that. The version in the repos > has a cryptoloop patch included (no idea where that is from), the > version I posted here is an unpatched util-linux-ng version. > > I will look into this further.
There is no need for that -- see below. :) > In the meantime, could you try if you can > open your volume with cryptsetup? The command would look like > > losetup /dev/loop0 /opt/POOL > cryptsetup create --cipher blowfish --key-size 128 --hash ??? pool > /dev/loop0 > mount /dev/mapper/pool /mnt/POOL > > While the ??? for --hash is whatever losetup used as a hash before (I > have no idea what it used, maybe someone else can help). Thanks for pointing me to `--hash'. I did the same with: $ sudo losetup -e blowfish128 -H unhashed2 /dev/loop0 /opt/POOL and it worked. `unhashed2' is part of the `cryptoloop-support.patch' and this is what it does: +static void unhashed2_key_setup(unsigned char *keyStr, int ile, unsigned char *keyBuf, int bufSize) +{ + memset(keyBuf, 0, bufSize); + strncpy((char *)keyBuf, (char *)keyStr, bufSize - 1); + keyBuf[bufSize - 1] = 0; +} Just out of curiosity: Who did this patch and what was the reason for including it? Thanks & regards, Petar _______________________________________________ arch mailing list arch@archlinux.org http://archlinux.org/mailman/listinfo/arch