Subject: Detecting the format of a CD
To: None <Outbound News>
From: William O Ferry <WOFerry+@CMU.EDU>
List: netbsd-help
Date: 07/20/1996 18:04:29
    I am trying to write a program that given a CD would try to
determine what type it is, so that it can use the correct mount on it. 
Would there happen to be an area of the CD that might contain what
format it is (HFS, msdos, ISO9660, etc)?  If not, how is there any kind
of unique identifier stamped on a CD?  Even if the program had to grab a
block or two from each disk, and compare the blocks to determine which
disk it was, that would be fine by me.  In that case, is there any place
where there's guaranteed to be data on the disk?  It would seem to me
that the first 32 4K blocks of ISO9660 and msdos disks are blank, while
HFS disks start earlier, and audio CDs are completely unreadable to
NetBSD.

    Any help would be greatly appreciated.  Thanks in advance.

                                                          Will Ferry

-------------------------------------------------------------------------
William O Ferry <woferry@WarpDrive.COM> | finger:  woferry@WarpDrive.COM
http://www.warpdrive.com/~woferry/      | talk:  finger for online status
-------------------------------------------------------------------------