2009-10-07 22:21:24

by Jack Byer

[permalink] [raw]
Subject: iso9660 mount problem

I have a CD of a commercial software program that I am attempting to run
under wine. The CD works without problems under Windows, but when I mount
it on linux the file system appears to be empty (no files or
directories). The drive is capable of reading the CD because "strings
/dev/cdrom" works.

What would I need to do in order to troubleshoot this problem?



2009-10-07 23:15:10

by Alan

[permalink] [raw]
Subject: Re: iso9660 mount problem

On Wed, 07 Oct 2009 17:22:02 -0500
Jack Byer <[email protected]> wrote:

> I have a CD of a commercial software program that I am attempting to run
> under wine. The CD works without problems under Windows, but when I mount
> it on linux the file system appears to be empty (no files or
> directories). The drive is capable of reading the CD because "strings
> /dev/cdrom" works.
>
> What would I need to do in order to troubleshoot this problem?

Firstly check what occurs if you mount it by hand with -t iso9660 and
with -t udf. Secondly check dmesg for any diagnostics from the mount such
as corrupt metadata on the CD.

2009-10-07 23:26:57

by Paul Hartman

[permalink] [raw]
Subject: Re: iso9660 mount problem

On Wed, Oct 7, 2009 at 5:22 PM, Jack Byer <[email protected]> wrote:
> I have a CD of a commercial software program that I am attempting to run
> under wine. The CD works without problems under Windows, but when I mount
> it on linux the file system appears to be empty (no files or
> directories). The drive is capable of reading the CD because "strings
> /dev/cdrom" works.
>
> What would I need to do in order to troubleshoot this problem?

Maybe try mounting with the "-o unhide" option. Or maybe it is a
multi-session disc?

2009-10-07 23:31:02

by Jack Byer

[permalink] [raw]
Subject: Re: iso9660 mount problem

On Wed, Oct 7, 2009 at 6:15 PM, Alan Cox <[email protected]> wrote:
> On Wed, 07 Oct 2009 17:22:02 -0500
> Jack Byer <[email protected]> wrote:
>
>> I have a CD of a commercial software program that I am attempting to run
>> under wine. The CD works without problems under Windows, but when I mount
>> it on linux the file system appears to be empty (no files or
>> directories). The drive is capable of reading the CD because "strings
>> /dev/cdrom" works.
>>
>> What would I need to do in order to troubleshoot this problem?
>
> Firstly check what occurs if you mount it by hand with -t iso9660 and
> with -t udf. Secondly check dmesg for any diagnostics from the mount such
> as corrupt metadata on the CD.
>
>

It will not mount as UDF:

UDF-fs: No VRS found
UDF-fs: No partition found (1)

As iso9660:

mount -t iso9660 /dev/cdrom /mnt/cdrom
mount: block device /dev/sr0 is write-protected, mounting read-only

dmesg:

ISO 9660 Extensions: Microsoft Joliet Level 1
ISO 9660 Extensions: IEEE_P1282

I tried this on three different machines all with the same result.

2009-10-07 23:42:12

by Jack Byer

[permalink] [raw]
Subject: Re: iso9660 mount problem

Paul Hartman wrote:

> On Wed, Oct 7, 2009 at 5:22 PM, Jack Byer <[email protected]> wrote:
>> I have a CD of a commercial software program that I am attempting to run
>> under wine. The CD works without problems under Windows, but when I mount
>> it on linux the file system appears to be empty (no files or
>> directories). The drive is capable of reading the CD because "strings
>> /dev/cdrom" works.
>>
>> What would I need to do in order to troubleshoot this problem?
>
> Maybe try mounting with the "-o unhide" option. Or maybe it is a
> multi-session disc?

-o unhide does not help. Can a factory-pressed disc be multisession? It's
not a CD-R

2009-10-08 05:55:40

by Dave Young

[permalink] [raw]
Subject: Re: iso9660 mount problem

On Thu, Oct 8, 2009 at 7:42 AM, Jack Byer <[email protected]> wrote:
> Paul Hartman wrote:
>
>> On Wed, Oct 7, 2009 at 5:22 PM, Jack Byer <[email protected]> wrote:
>>> I have a CD of a commercial software program that I am attempting to run
>>> under wine. The CD works without problems under Windows, but when I mount
>>> it on linux the file system appears to be empty (no files or
>>> directories). The drive is capable of reading the CD because "strings
>>> /dev/cdrom" works.
>>>
>>> What would I need to do in order to troubleshoot this problem?
>>
>> Maybe try mounting with the "-o unhide" option. Or maybe it is a
>> multi-session disc?
>
> -o unhide does not help. Can a factory-pressed disc be multisession? It's
> not a CD-R

Could you post the header part of the cd? ie:

dd if=/dev/cdrom of=header bs=1k count=32

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



--
Regards
dave

2009-10-08 10:32:02

by Jack Byer

[permalink] [raw]
Subject: Re: iso9660 mount problem

> Could you post the header part of the cd? ie:
>
> dd if=/dev/cdrom of=header bs=1k count=32
>


Attachments:
header (32.00 kB)

2009-10-08 10:51:42

by Dave Young

[permalink] [raw]
Subject: Re: iso9660 mount problem

On Thu, Oct 8, 2009 at 6:31 PM, Jack Byer <[email protected]> wrote:
>> Could you post the header part of the cd? ie:
>>
>> dd if=/dev/cdrom of=header bs=1k count=32
>>
>

Sorry, my mistake, getting the meta data we need at least 64k.

Could you send again the header?

dd if=/dev/cdrom of=header bs=1k count=64

--
Regards
dave

2009-10-08 11:41:24

by Dave Young

[permalink] [raw]
Subject: Re: iso9660 mount problem

On Thu, Oct 8, 2009 at 6:51 PM, Dave Young <[email protected]> wrote:
> On Thu, Oct 8, 2009 at 6:31 PM, Jack Byer <[email protected]> wrote:
>>> Could you post the header part of the cd? ie:
>>>
>>> dd if=/dev/cdrom of=header bs=1k count=32
>>>
>>
>
> Sorry, my mistake, getting the meta data we need at least 64k.
>
> Could you send again the header?
>
> dd if=/dev/cdrom of=header bs=1k count=64

>From your previous 32k header, run `strings header` got:
...
Apple_partition_map
HDiscRecording 4.0.3d3
Apple_HFS
Apple
Apple_partition_map
...

So it must be an apple hfs disc, (or hybrid disc?).
Maybe you may try mount it as hfs, this problem is not relevant to iso9660.


>
> --
> Regards
> dave
>



--
Regards
dave

2009-10-08 13:38:38

by Jack Byer

[permalink] [raw]
Subject: Re: iso9660 mount problem

>So it must be an apple hfs disc, (or hybrid disc?).
>Maybe you may try mount it as hfs, this problem is not relevant to iso9660.

I have tested this disc on my Windows XP machine at work and it has no
problems reading it. The program supports Windows and OS X so it is probably a
hybrid disc. I can try mounting as hfs at home tonight as well as extracting
the rest of the metadata.

If I am able to mount as hfs I don't know how much good that will do unless it
is possible to run OS X programs under linux.

2009-10-08 16:40:11

by Paul Hartman

[permalink] [raw]
Subject: Re: iso9660 mount problem

On Wed, Oct 7, 2009 at 6:42 PM, Jack Byer <[email protected]> wrote:
> Paul Hartman wrote:
>
>> On Wed, Oct 7, 2009 at 5:22 PM, Jack Byer <[email protected]> wrote:
>>> I have a CD of a commercial software program that I am attempting to run
>>> under wine. The CD works without problems under Windows, but when I mount
>>> it on linux the file system appears to be empty (no files or
>>> directories). The drive is capable of reading the CD because "strings
>>> /dev/cdrom" works.
>>>
>>> What would I need to do in order to troubleshoot this problem?
>>
>> Maybe try mounting with the "-o unhide" option. Or maybe it is a
>> multi-session disc?
>
> -o unhide does not help. Can a factory-pressed disc be multisession? It's
> not a CD-R

Yes (for example "Enhanced CDs" which contain both audio and data
tracks). I think the default on MS Windows is to mount the last
session on the disc. You should be able to use mount paramater "-o
session=x" with x being the session number you want to mount.

2009-10-08 20:53:24

by Jack Byer

[permalink] [raw]
Subject: Re: iso9660 mount problem

> Sorry, my mistake, getting the meta data we need at least 64k.
>
> Could you send again the header?


Attachments:
header (64.00 kB)

2009-10-09 00:23:40

by Jack Byer

[permalink] [raw]
Subject: Re: iso9660 mount problem

> So it must be an apple hfs disc, (or hybrid disc?).
> Maybe you may try mount it as hfs, this problem is not relevant to iso9660.

I can mount the disc as hfsplus but it shows the OS X contents instead
of the Windows contents.

2009-10-09 21:45:15

by Paul Hartman

[permalink] [raw]
Subject: Re: iso9660 mount problem

On Thu, Oct 8, 2009 at 7:23 PM, Jack Byer <[email protected]> wrote:
>> So it must be an apple hfs disc, (or hybrid disc?).
>> Maybe you may try mount it as hfs, this problem is not relevant to iso9660.
>
> I can mount the disc as hfsplus but it shows the OS X contents instead
> of the Windows contents.

Looks like Rosetta Stone :) and i think it is hybrid HFS/iso9660. I
can see windows-related filenames in the sample you uploaded, so we
know they are out there somewhere. Maybe try this in your mount
options (thanks google):

mount -t iso9660 -o norock,map=off

Also, if that doesn't work, do you have CONFIG_JOLIET=y in your kernel
.config? Maybe it's needed...