SUMMARY: CDROM: filetype (0x8) not supported

From: Cristian A. Levin (clevin@eso.org)
Date: Fri May 22 1992 - 03:31:20 CDT


Dear Sun Managers,

Thanks a lot for the responses you sent to me. My original
question was:

> I am trying to read a CD-ROM in a SS2,SUNOS4.1.1 and I got the
>following error:
> filetype (0x8) not supported
> Do you have any idea of the problem ?

Effectively, I was trying to read the Guide Star Survey Sampler, so
it was an ISO 9660 CD. I will include the response of Nigel Sharp
here:
--------------------------------------------------------------------

Looks like you're trying to read the Guide Star Survey Sampler !
This is a known bug in Sun's driver for ISO 9660 CDs.
Herewith the notification from STScI ...

----------------------

>From postman@stsci.edu Mon Apr 6 13:04:36 1992
Subject: GS Sampler CD Installation instructions
To: allusers
Status: RO

There is a known bug with the SUN CD I/O package.
A patch is now available. The information required
to install the patch on your SUN UNIX system is
appended below. It is also available via anonymous ftp
(for your colleagues and friends to get if they need
it as well). To get the patch information via ftp,
type the following:

        ftp stsci.edu
        login: anonymous
        username: your username
        cd software/stsdas/gasp
        get README_CD

This file was originally created
when we released the Guide Star Catalog and thus there
are references to that CD. However, the same fix is
required to read and load the GS Sampler CD so the information
is still relevant.

PATCH FOR SUN SYSTEMS:

The way we access the Guide Star Catalog CDs on a Sun is with two Sun
CD ROM drives connected to a SparcStation running SunOS 4.1 or 4.1.1.
I haven't tried this yet with 4.1.1b, but it should work. The only
really annoying feature is that eject doesn't work properly with an
argument of "sr1". You have to use /dev/rsr1 instead.

You can probably also use a Sun CD attached to a SparcServer, but need
two SCSI controllers to support two CD's or just have one CD mounted
at a time. The "sun4" version of the CD ROM driver (sr.o) that comes
with 4.1 and 4.1.1 has some major problems with handling more than one
CD ROM drive on a single SCSI bus.

There is also a minor bug in the HSFS driver from sun in the way it
handles the Extended Record Attributes in the ISO 9660 format that are
present on the GSC disks. You star getting messages about not being
able to handle a certain record type when you start using ls on the
mounted disk. To fix this problem you need to patch the file
/usr/sys/sun4c/OBJ/hsfs_node.o by doing the following:

login as root or su
cd to /usr/sys/sun4c/OBJ
Save a copy of the file hsfs_node.o so that you can go back to it if
necessary.

Under SunOS 4.1, 4.1.1, or 4.1.1b:

adb -w hsfs_node.o
hs_parsedir+0x9c?W 0ba0da0e6
hs_parsedir+0x14c?W 0ba0da0e6
$q

Under SunOS 4.1.2:

adb -w hsfs_node.o
hs_parsedir+c0?Wba0de0e6
hs_parsedir+1a4?Wba0de0e6
$q

By doing this you will modify two instructions in the part of the
driver that handles parsing the directory structure. Basically it
causes it to ignore extra information.

If you are running SunOS 4.1.1 or 4.1.1b on a SparcStation, you can pick
up a patched copy of hsfs_node.o via anonymous ftp from hoth.stsci.edu in
the directory pub. Remember to use binary mode in copying the file.

You will need to check your kernel configuration file and make sure it
contains a line like:

options HSFS # Support for ISO 9660 CDs

and a line like:

        disk sr0 at scsibus0 target 6 lun 0 # CD-ROM device

If you are planning on connecting two CD Rom drives, you will ether
need second SCSI interface for the machine (assuming it is not an SLC),
to have a Sun supported configuration, or change the SCSI target on the
second CD, and connect them to the same SCSI bus. I made sr0 target 6
and sr1 as target 5. The lines in to kernel configuration file look
like:

        disk sr1 at scsibus0 target 5 lun 0 # CD-ROM device

After you do this you will need to rebuild the kernel, and make sure
you save an old copy of the kernel before installing the new one in
case you have to go back to the old version.

Once the new kernel is installed, you will need to reboot the machine.

To mount one of the GSC disks, you will need to put it in one of the
supplied cases that comes with the CD ROM drive, and insert it into the
CD ROM drive. To mount the disk you will need to login as root or su
and issue a command like:

        mount -t hsfs -o ro,noquota /dev/sr0 /gsc/vol1

Where /dev/sr0 is the device name and /gsc/vol1 is the directory you
are mounting it on. The directory you are mounting it on must exist
prior to issuing the command. A similar command can be used to mount
the second volume in another drive.

What we do is do here is mount the disks at system boot assuming the
correct volumes are in the correct drives. To do this you will need to
modify /etc/fstab and add the following lines:

/dev/sr0 /gsc/vol1 hsfs ro,noquota 0 0
/dev/sr1 /gsc/vol2 hsfs ro,noquota 0 0

and then add the following line to /etc/rc.local somewhere near where the
nfs partitions are mounted:

intr -a mount -vat hsfs

If you have any problems you can probably find help in the System and
Networking Administration Guide and in the mount(8), eject(1),
fstab(5), and sr(4s) man pages.

----------------------------------------------------------------------

Thank you very much for the responses of:

sharp@noao.edu (Nigel Sharp)
Kenton C. Phillips <kenton@space.mit.edu>
jdavis@noao.edu (Jim Davis)
Michael.Meyers@Corp.Sun.COM (Michael Meyers)
mann@emma.la.asu.edu (Mark Mann)
era@niwot.scd.ucar.EDU (Ed Arnold)
Steve Seaney <seaney@robios.me.wisc.edu>
antonson@Software.ORG (Todd S. Antonson)
Piete Brooks <Piete.Brooks@cl.cam.ac.uk>

Best regards,
            Cristian

+------------------------------+-------------------------------------------+
|Cristian A. Levin |INTERNET: clevin@eso.org SPAN: ESO::CLEVIN |
+------------------------------+-------------------------------------------+
|Phone: (562)6993425 ext. 4191 | Si desean ver los cielos mas limpios del |
|Addr.: casilla 19001 Santiago | mundo y las mas hermosas puestas de sol, |
|European Southern Observatory | no dejen de visitarme... |
|La Silla - CHILE | |
+------------------------------+-------------------------------------------+



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:06:42 CDT