Skip to contentSkip to conversation

can't mount encrypted dvd with 2.6.0

DISCUSSION Thomas Fischbach 2 participants 4 messages Jan 7, 2004 – Jan 8, 2004

lore
Share & tools
lore
#0 lore raw

Hi,

if I create an encrypted iso image:
dd if=/dev/zero of=/files/image.iso bs=512 count=$((1024*4400)) losetup -e aes -k 256 /dev/loop1 /files/image.iso mkisofs -r -o /dev/loop1 /files/stuff/*
losetup -d /dev/loop1

I can mount the file:
mount /files/image.iso /mnt/cd -t iso9660 \
-o loop=/dev/loop1,encryption=aes,keybits=256

but when I burned the iso and tried to mount, it failed with:
mount: wrong fs type ...

and the logs says:
hdc: cdrom_read_intr: data underrun (2 blocks)
end_request: I/O error, dev hdc, sector 64
isofs_fill_super: bread failed, dev=loop0, iso_blknum=16, block=32

under 2.4.22 it works fine.
Hope someone can help.

Thanks,
Thomas

Signature · 3 lines
Thomas Fischbach
http://www.kennygno.net
[email protected]
#1 lore raw

In article <[email protected]>,
Thomas Fischbach <[email protected]> wrote:

| if I create an encrypted iso image:
| dd if=/dev/zero of=/files/image.iso bs=512 count=$((1024*4400))
| losetup -e aes -k 256 /dev/loop1 /files/image.iso
| mkisofs -r -o /dev/loop1 /files/stuff/*
===> try adding -pad here
| losetup -d /dev/loop1 
| 
| I can mount the file:
| mount /files/image.iso /mnt/cd -t iso9660 \
| -o loop=/dev/loop1,encryption=aes,keybits=256
| 
| but when I burned the iso and tried to mount, it failed with:
| mount: wrong fs type ...
| 
| and the logs says:
| hdc: cdrom_read_intr: data underrun (2 blocks)
| end_request: I/O error, dev hdc, sector 64
| isofs_fill_super: bread failed, dev=loop0, iso_blknum=16, block=32
| 
| under 2.4.22 it works fine.
| Hope someone can help.
| 
| Thanks,
| Thomas
| 
| -- 
| Thomas Fischbach
| http://www.kennygno.net
| [email protected]
| 
| --Signature=_Wed__7_Jan_2004_15_19_48_+0100_UU_WVzZfteNnYfSx
| Content-Type: application/pgp-signature
| 
| -----BEGIN PGP SIGNATURE-----
| Version: GnuPG v1.2.4 (GNU/Linux)
| 
| iD8DBQE//BWEhty018ANwB4RAqbXAJ9qkmHhf18jcEyWS50Tls3Z5lR9/gCePi2G
| 7N2+AScX45pxWJlouVL8+AQ=
| =I4ry
| -----END PGP SIGNATURE-----
| 
| --Signature=_Wed__7_Jan_2004_15_19_48_+0100_UU_WVzZfteNnYfSx--
| -
| To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
| the body of a message to [email protected]
| More majordomo info at  http://vger.kernel.org/majordomo-info.html
| Please read the FAQ at  http://www.tux.org/lkml/
| 
Signature · 3 lines
bill davidsen <[email protected]>
  CTO, TMR Associates, Inc
Doing interesting things with little computers since 1979.
#2 lore raw
Quoted 8 lines · On 7 Jan 2004 23:07:45 GMT [email protected] (bill davidsen) wrote:

In article <[email protected]>,
Thomas Fischbach <[email protected]> wrote:

| if I create an encrypted iso image:
| dd if=/dev/zero of=/files/image.iso bs=512 count=$((1024*4400))
| losetup -e aes -k 256 /dev/loop1 /files/image.iso
| mkisofs -r -o /dev/loop1 /files/stuff/*

===> try adding -pad here

[...]

I think -pad is used by default.

I tried the patch from Ben and it works.
http://testing.lkml.org/slashdot.php?mid=442410

Thanks

Signature · 3 lines
Thomas Fischbach
http://www.kennygno.net
[email protected]
#3 lore raw
Quoted 12 lines · Thomas Fischbach
Quoted 8 lines · On 7 Jan 2004 23:07:45 GMT [email protected] (bill davidsen) wrote:

In article <[email protected]>,
Thomas Fischbach <[email protected]> wrote:

| if I create an encrypted iso image:
| dd if=/dev/zero of=/files/image.iso bs=512 count=$((1024*4400))
| losetup -e aes -k 256 /dev/loop1 /files/image.iso
| mkisofs -r -o /dev/loop1 /files/stuff/*

===> try adding -pad here

Quoted 3 lines

[...]

I think -pad is used by default.

-pad is used by default on cdrecord, but not on mkisofs AFAIK. Since you didn't specify how you did the burn, or I missed it, I thought it was worth a try in case you were using some other software.

Quoted 3 lines

I tried the patch from Ben and it works.
http://testing.lkml.org/slashdot.php?mid=442410

Then hopefully it will appear in a future bk after additional testing.

Signature · 3 lines
bill davidsen <[email protected]>
  CTO, TMR Associates, Inc
Doing interesting things with little computers since 1979.