Re: Mounting ISO file system on a hybrid CD
Re: Mounting ISO file system on a hybrid CD
- Subject: Re: Mounting ISO file system on a hybrid CD
- From: Shantonu Sen <email@hidden>
- Date: Wed, 1 Sep 2004 00:32:50 -0700
On Aug 31, 2004, at 9:30 PM, James W. Walker wrote:
I'm interested in mounting the ISO/Joliet part of a hybrid CD-ROM. I
can sort of get it to work using commands like:
$ mkdir /Volumes/Foreign
$ sudo mount -t cd9660 /dev/disk1s1 /Volumes/Foreign
This is the only way to accomplish this under Mac OS X.
Then the volume is shown by mount and seen by Carbon's
FSGetVolumeInfo, but it is not shown in the Finder or listed by either
of
$ diskutil list
$ disktool -l
If you do "open /Volumes/Foreign", you'll trigger the Finder process'
Carbon File Manager cache to "see" the filesystem, and will show an
icon in the sidebar.
I have the impression that this has something to do with disk
arbitration, not that I fully understand what that means. I tried
mounting the volume using the function DADiskMountWithArguments, but
apparently it only allows the -o arguments to mount, not the -t
arguments. Anyone have any wisdom to share on this?
You cannot force a file system, nor can you convince DiskArbitration
that there's anything to mount on disk1s1, because of the way it probes
media.
By the way, mount shows the HFS part of the CD as /dev/disk1s1s2, but
the ISO part as /dev/disk1s1. This offends my sense of symmetry. I
would expect that the two file systems would be at the same level of
the hierarchy. Not that I know what those s's and 1's and 2's really
mean.
Actually, they are symmetric. The ISO "filesystem" takes up the entire
media (disk1s1). disk1 represents the entire CD, and disk1s1 is the
first session.
On disk1s1, there are two overlapping containers. The ISO "filesystem",
and an Apple Partition Map. The Apple Partition Map further publishes
several slices corresponding to each partition in the map. That's where
disk1s1s2 comes from. The ISO filesystem and APM are peers, and
symmetric. Running "ioreg -l" or IORegistryExplorer.app may be
instructive.
What is your higher level goal? If you want two things to show up in
the Finder, you may want a multi-session disk with two Apple Partition
Maps, or a single session with a multi-partition map. You cannot do the
former with ISO content, though.
If you are trying to preview the ISO content of your hybrid, the manual
mount is your best bet.
Shantonu
_______________________________________________
darwin-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-development
Do not post admin requests to the list. They will be ignored.