mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* 2.6 cryptoloop+cdrom
@ 2003-10-26 21:46 Mike
  0 siblings, 0 replies; only message in thread
From: Mike @ 2003-10-26 21:46 UTC (permalink / raw)
  To: linux-kernel

Heyas,

Has anyone been able to create encrypted cdroms with cryptoloop in 2.6? Since the initial patches for 2.5.x were released, I've been trying without success.

dd if=/dev/urandom of=test bs=1MB count=50
losetup /dev/loop0 test -e blowfish
mkfs -t ext2 -b 2048 /dev/loop0
mount /dev/loop0 /mnt
# copy some files
umount /mnt ; losetup -d /dev/loop0

cdrecord -v speed=12 dev=/dev/cdrom test

losetup /dev/loop0 /dev/cdrom -e blowfish ; mount /dev/loop0 /mnt

mount: block device /dev/loop0 is write-protected, mounting read-only
mount: wrong fs type, bad option, bad superblock on /dev/loop0,
       or too many mounted file systems

dmesg shows:
   hdc: cdrom_read_intr: data underrun (4 blocks)
   end_request: I/O error, dev hdc, sector 2
   EXT2-fs: unable to read superblock

With the loop device setup, I can cat /dev/loop0 > /tmp/test, then mount the file.

Most of the docs I've read have been for 2.4, but I'm able to use partitions and obviously files, so I don't think anything is missing... Tried various block sizes (1024-4096), various file systems (ext2, ext3, vfat), ide-scsi enabled or disabled and other ciphers like aes.

I'm using debian/testing. mount/util-linux have both been put on hold and stock util-linux 2.12 installed.

Any info would be appreciated, but please cc me as I'm not on the list.

Thanks,

Mike

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-10-26 21:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-26 21:46 2.6 cryptoloop+cdrom Mike

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome