Menu

#6 Problem with CD-ROM and CryptoAPI

open
nobody
None
5
2004-01-09
2004-01-09
Anonymous
No

I have an encrypted file that I wanted to burn on a
CD-ROM to backup some sensitive files. To do this, I
setup the file like this:

# losetup -e aes -k 256 /dev/loop0 /var/cryptfile
Password:
# mkfs -t ext2 -b 2048 /dev/loop0

I then mount the file:

# mount -t ext2 /dev/loop0 /mnt/cryptfile

And fill it with the files I wat to backup, unmount and
detatch it from loop0:

# umount /mnt/cryptfile
# losetup -d /dev/loop0

Then burn the file as a CD-ROM image using:

# cdrecord -v speed=8 dev=ATAPI:0,0,0
driveropts=burnfree -data /var/cryptfile

Once the CD is written I mount it using:

# losetup -e aes -k 256 /dev/loop0 /dev/cdroms/cdrom0
Password:
# mount -t ext2 /dev/loop0 /mnt/cryptfile

At this point I can see a listing of the files but I'm
unable to access any of them. The error I get is "cp:
reading `/mnt/cryptcdr/testfile': Input/output error".

I've also tried burning CD with the encrypted file
inside an ISO image, mounting the CD-ROM and then the
file as a loop device. I get the same results. However,
if I copy the file back to the hard drive then I'm able
to access the contents.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.