linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* can't mount encrypted dvd with 2.6.0
@ 2004-01-07 14:19 Thomas Fischbach
  2004-01-07 23:07 ` bill davidsen
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Fischbach @ 2004-01-07 14:19 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 733 bytes --]

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

-- 
Thomas Fischbach
http://www.kennygno.net
webmaster@kennygno.net

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: can't mount encrypted dvd with 2.6.0
  2004-01-07 14:19 can't mount encrypted dvd with 2.6.0 Thomas Fischbach
@ 2004-01-07 23:07 ` bill davidsen
  2004-01-08 14:09   ` Thomas Fischbach
  0 siblings, 1 reply; 4+ messages in thread
From: bill davidsen @ 2004-01-07 23:07 UTC (permalink / raw)
  To: linux-kernel

In article <20040107151948.4376d881@kyp.intra>,
Thomas Fischbach  <webmaster@kennygno.net> 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
| webmaster@kennygno.net
| 
| --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 majordomo@vger.kernel.org
| More majordomo info at  http://vger.kernel.org/majordomo-info.html
| Please read the FAQ at  http://www.tux.org/lkml/
| 


-- 
bill davidsen <davidsen@tmr.com>
  CTO, TMR Associates, Inc
Doing interesting things with little computers since 1979.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: can't mount encrypted dvd with 2.6.0
  2004-01-07 23:07 ` bill davidsen
@ 2004-01-08 14:09   ` Thomas Fischbach
  2004-01-08 14:46     ` Bill Davidsen
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Fischbach @ 2004-01-08 14:09 UTC (permalink / raw)
  To: bill davidsen; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 615 bytes --]

On 7 Jan 2004 23:07:45 GMT
davidsen@tmr.com (bill davidsen) wrote:

> In article <20040107151948.4376d881@kyp.intra>,
> Thomas Fischbach  <webmaster@kennygno.net> 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

-- 
Thomas Fischbach
http://www.kennygno.net
webmaster@kennygno.net

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: can't mount encrypted dvd with 2.6.0
  2004-01-08 14:09   ` Thomas Fischbach
@ 2004-01-08 14:46     ` Bill Davidsen
  0 siblings, 0 replies; 4+ messages in thread
From: Bill Davidsen @ 2004-01-08 14:46 UTC (permalink / raw)
  To: Thomas Fischbach; +Cc: linux-kernel

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1016 bytes --]

On Thu, 8 Jan 2004, Thomas Fischbach wrote:

> On 7 Jan 2004 23:07:45 GMT
> davidsen@tmr.com (bill davidsen) wrote:
> 
> > In article <20040107151948.4376d881@kyp.intra>,
> > Thomas Fischbach  <webmaster@kennygno.net> 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.

-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.

> 
> 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.

-- 
bill davidsen <davidsen@tmr.com>
  CTO, TMR Associates, Inc
Doing interesting things with little computers since 1979.

[-- Attachment #2: Type: APPLICATION/PGP-SIGNATURE, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-01-08 14:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-07 14:19 can't mount encrypted dvd with 2.6.0 Thomas Fischbach
2004-01-07 23:07 ` bill davidsen
2004-01-08 14:09   ` Thomas Fischbach
2004-01-08 14:46     ` Bill Davidsen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).