Dazed and Confused

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

 



I obviously don't get it.

I have two 5GB files, /data/data0 and /data/data1. I would like to be able to mount either, or both
(at the same time) using a cipher. First my problem, then my configuration.

$ /usr/local/sbin/losetup -e aes -k 192 /dev/loop1 /data/data1
$ /usr/local/sbin/mount /mnt/crypt/data1
$ /usr/local/sbin/mount /mnt/crypt/data0

I don't know how it is that I can even mount /data0, because the fstab file uses loop0 for data0. Anyway,

$ ls /mnt/crypt/data0
data lost+found

Notice, the data directory.

$ /usr/local/sbin/umount /mnt/crypt/data0
$ /usr/local/sbin/umount /mnt/crypt/data1
$ /usr/local/sbin/losetup -d /dev/loop1
$ /usr/local/sbin/losetup -e aes -k 192 /dev/loop0 /data/data0
$ /usr/local/sbin/mount /mnt/crypt/data0
$ ls /mnt/crypt/data0
lost+found

Notice, the data directory is nolonger there!

What the heck is going on? What is the proper way to mount multiple encrypted files via a loop back?

Here is my configuration.

$ lsmod
Module Size Used by Tainted: P cipher-aes 23636 1
cryptoloop 2716 1
loop 11960 6 [cryptoloop]
cryptoapi 7148 5 [cipher-aes cryptoloop]

/etc/fstab entries:

/dev/loop0 /mnt/crypt/data0 ext2 user,noauto,rw,loop 0 0
/dev/loop1 /mnt/crypt/data1 ext2 user,noauto,rw,loop 0 0
/dev/loop2 /mnt/crypt/data2 ext2 user,noauto,rw,loop 0 0
/dev/loop3 /mnt/crypt/data3 ext2 user,noauto,rw,loop 0 0
/dev/loop4 /mnt/crypt/data4 ext2 user,noauto,rw,loop 0 0

$ /proc/version
Linux version 2.4.18-24.8.0custom (root@bigdog.austin.rr.com) (gcc version 3.2 20020903 (Red Hat Linux 8.0 3.2-7)) #1 Wed Feb 5 07:47:43 CST 2003

cryptoapi-0.1.0.tar.gz
$Id: cryptoloop.c,v 1.5 2002/09/08 08:43:57 hvr Exp $
util-linux-2.11r.tar.gz

Thanks,

David




-
Linux-crypto: cryptography in and on the Linux system
Archive: http://mail.nl.linux.org/linux-crypto/


[Index of Archives]     [Kernel]     [Linux Crypto]     [Gnu Crypto]     [Gnu Classpath]     [Netfilter]     [Bugtraq]
  Powered by Linux