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

Problems encrypting disk partitions in 2.4.3




Greetings,

I have been trying to get loopback encryption working with the 2.4.3
patches.  I applied the pathes to a fresh copy of the kernel source and a
fresh copy of util-linux-2.11b.  Both sets of patches applied cleanly.
Everything seems to build OK.   When I tested it on a regular file (using
128 bit serpent) it seemed to work just fine.  When I attempted it on a
disk partition, it croaked with the following message.

[root@bailey mount]# ./mount -t ext2 /dev/loop0 /mnt
mount: wrong fs type, bad option, bad superblock on /dev/loop0,
       or too many mounted file systems


(This is the patched mount from the 2.11b release of util-linux).  Is it
obvious that I missed something, or is the 2.4 series not quite ready
(this worked quite reliably under the 2.2.17 kernel I have been using).


Thanks,
Tad

PS - Here is a complete transcript of the events leading to the preceding
message.

[root@bailey mount]# losetup -e serpent /dev/loop0 /dev/hdc6
Available keysizes (bits): 128 192 256
Keysize: 128
Password :
[root@bailey mount]# mke2fs /dev/loop0
mke2fs 1.18, 11-Nov-1999 for EXT2 FS 0.5b, 95/08/09
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
1281696 inodes, 2560060 blocks
128003 blocks (5.00%) reserved for the super user
First data block=0
79 block groups
32768 blocks per group, 32768 fragments per group
16224 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632

Writing inode tables: done
Writing superblocks and filesystem accounting information: done
[root@bailey mount]# ./mount -t ext2 /dev/loop0 /mnt
mount: wrong fs type, bad option, bad superblock on /dev/loop0,
       or too many mounted file systems



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