encrypted ext2 on cd?

James C. Tsiao (jtsiao@madoka.jpl.nasa.gov)
Tue, 10 Jun 1997 10:38:06 -0700 (PDT)


Recently I tried to write an encrypted ext2fs to a CD-R. I basically
dd'ed a 650M file and created the encrypted fs in that file, then wrote
that file to the CD-R using cdwrite. I can mount the image via loopback
and all is well, but when I tried to do the same with the CD, the mount
fails with:

VFS: Can't find an ext2 filesystem on dev 07:00.
EXT2-fs error (device 07:00): ext2_check_descriptors: Block bitmap for group 0 not in group (block 365000324)!
EXT2-fs: group descriptors corrupted !

When I use losetup and attach the CD to a loop device, then run e2fsck
on it, it produces lots of block bitmap not in group errors. When I
dd the CD image to a file, the file shows no errors and mounts fine as
an encrypted ext2fs. BTW, a standard ext2fs works just fine written to
a CD-R.

I'm not familiar enough with ext2fs/encryption patch/CD drivers to know
where to look. My system is:

- Linux 2.0.29+"old" encryption patch (running on p133)
- mount-2.5k
- e2fsprogs-1.09
- Toshiba 3401B CD-ROM
- Phillips 2000 CD-R
- Adaptec 1542-CF

I would appreciate any help in getting this working.



jtsiao@madoka.jpl.nasa.gov    || SCSI is *NOT* magic.  There are *fundamental
http://www.roadkill.com/thoth || technical reasons* why it is necessary to
                              || sacrifice a young goat to your SCSI chain
#include <disclaimer.h>       || now and then. -- jfw@proteon.com