PDA

View Full Version : Mounting Hybrid CD as ISO9660 (Ignoring HFS Extended Format)


lx
03-28-2002, 02:52 PM
I have a hybrid CD that I would like to mount on my Biege G3 Tower running Mac OS X in order to move some files to my Linux laptop (which doesn't have a CD drive). The unforseen issue I am having is that the CD is hybrid and my Mac will only see the HFS portion of it, while the file I want is not included in the HFS extended format file structure. How can I force my Mac to mount the CD as a plain ISO9660 file system?

Thanks!
lx

xchanyazy
03-28-2002, 02:57 PM
I don't have a CD that I can test this on right now, but can you get to the files you want through the command line? Also, while the disk is inserted, check out Disk Utility in /Application/Utilities, and see if one of those screens will let you show the ISO partition (or whatever the word may be)

lx
03-28-2002, 03:58 PM
Thanks for the suggestion. Unfortunately, it is not just the Finder which is limiting itself to the HFS file structure, as good 'ol "ls -Fla" from the terminal only yields the HFS content as well. Similarly for Disk Utility.

I think I need to unmount the CD and mount it again forcing it's type to iso9660, but I am not familiar enough with Darwin nor Unix-style devices in general to know how to do this.

A 'df' seems to say that the cd-rom drive is '/dev/disk1s1s2' on my computer, but I don't know how to interpret the devices in Darwin/BSD. A naive attempt to unmount (as root): 'umount /dev/disk1s1s2' gives a "Device busy" error. If I could get it unmounted, then I imagine that I would want to do something like 'mount -rt cd9660 /dev/disk1s1s2 /Volumes/CDROM', but I am just guessing.

I gather that there is an automounting daemon lurking around which mounts the CD when I pop it in the drive, so alternatively I could temporarily modify it's preferences to force plain iso9660 over HFS, or something. I know NFS uses 'automount' to keep tabs on remote NFS filesystems, but I don't know how Darwin handles removable media like the cd-rom.

Thanks!
lx

P.S. I was able to unmount the CD with Disk Utility, but when I tried to mount it with "mount /dev/disk1s1s2 /cdrom" I got "/dev/disk1s1s2 on /cdrom: Device busy", where /cdrom is a directory I created to be the mount point. Any thoughts?

xchanyazy
03-28-2002, 04:55 PM
There's a process called autodiskmount (not automount) that's in charge of checking for media being inserted. You may be able to kill that before inserting the cd, as far as I can tell it does not automatically respawn after being killed.