Booting a Sun from a Non-Sun CD-ROM

8. I just modified the drive according to these directions. It boots fine, but I get an "unrecognized vendor" error. Is this a problem?

There will not be any errors; all the system is telling you is that the sr driver does not recognize anything other than Sony and Hitachi (SunOS 4.1.3). You can try to correct this if you are into hacking:

"If you've got the source of the SunOS CDROM device driver (sr.c), you could add a line to the sr_drivetypes[] array of structures and specify the Toshiba and its (SCSI) capabilities. "

[courtesy adrie@ica.philips.nl (Adrie Koolen)]

9: What do you do if you have an old Sun that doesn't know about boot cdrom (or CD-ROMs for that matter)?

The generic practice is ">b sd(,30,1)"; that seems to have worked in mant cases. At issue is where on the disc Sun has placed the various architectures. There has been some `Net debate about this. I found this table, but cannot confirm it:

        0 .. mountable HSFS format
        1 .. sun4  bootable image       > b sd(,18,1)
        2 .. sun4c bootable image       > b sd(, 6,2)
        3 .. sun3x bootable image       > b sd(,30,3)
	4 .. sun3  bootable image       > b sd(,30,6)
[courtesy Yutaka.Matsumoto@Japan.Sun.COM (MATSUMOTO Yutaka - Nihon Sun Engineer) and doleh@mcs.kent.edu (Yaser Doleh)]

my own experience contradicts this, incidentally: my Sun 4/110 booted with b sd(0,30,1). Please clarify this if you can.

10. Can I make a bootable tape from a CD?

There doesn't seem to be a procedure for making SunOS 5 bootable tapes, so this information only applies to SunOS 4. (If anyone knows of a way to make bootable tapes from newer Solaris releases - the PROM supports booting tapes - please let me know - Martin).

For SunOS, yes. Sun no longer offers SunOS on tape, but clone manufacturers do [courtesy Carl Mueller ]. If you do not have a tape drive attached to your system, you can either use one of these clone tapes, set up another machine as a boot server or install on another machine and move the disk. If none of these options appeals to you and you have access to a CD that you can mount but from which you cannot boot, you can make your own boot tapes:

Select the appropriate MUNIX file for your KARCH:

karchfileCDROM partition
sun4MUNIX-sun4-4.1.31
sun4cMUNIX-sun4c-4.1.32
sun4mMUNIX-sun4m-4.1.33

The only way I know to copy MUNIX off of CDROM is using SunOS 5.x (Solaris 2.x). If some clever person knows how to do this using SunOS 4.1.x, I would like to hear from you.

Note: The 4.1.3 CDROM MUNIX differs from the 4.1.1 QIC MUNIX in that the CDROM MUNIX has the MUNIX kernel and the MUNIX filesystem combined together. In other words, you no longer need to load the MUNIX filesystem after booting the MUNIX kernel.

Mount your CDROM and select the appropriate miniroot for your KARCH:

karchfile
sun4/cdrom/export/exec/kvm/sun4_sunos_4_1_3/miniroot_sun4
sun4c/cdrom/export/exec/kvm/sun4c_sunos_4_1_3/miniroot_sun4c
sun4m/cdrom/export/exec/kvm/sun4m_sunos_4_1_3/miniroot_sun4m

Build your QIC-150 tape as follows:

        mt -f /dev/nrst0 rew
        dd if=MUNIX    of=/dev/nrst0 bs=8k conv=sync
        dd if=miniroot of=/dev/nrst0 bs=100k conv=sync
You may also want to dump a copy of your "/" and "/usr" filesystems to the end of tape as once booted you won't be able to run SunInstall (for obvious reasons).

The procedure to boot MUNIX from tape is as follows:

        Press L1-A (i.e. STOP-A) to enter console mode and type:
        ok> boot tape
        
        Make the following selection when asked:
        2 - exit to single user shell

        Format and/or partition your disk if necessary.

        Copy miniroot to disk:
        (You have to do this step manually, as the automated procedure
         will attempt to copy it from CDROM.)
        # mt -f /dev/rst0 rew
        # mt -f /dev/nrst0 fsf 1
        # dd if=/dev/nrst0 of=/dev/rsd0b bs=100k conv=sync

The procedure to boot the just loaded miniroot is as follows:

        Press L1-A (i.e. STOP-A) to enter console mode and type:
        ok> boot disk:b -sw

        Once miniroot is booted you can then restore your "/" and "/usr"
        partitions from tape, etc. "

[Courtesy markb@elen.utah.edu]

11. Not to look a gift horse in the mouth, but why does my AppleCD 300 work for booting and mounting?

As mentioned above in the brief review of the AppleCD 300, the Apple is an OEM Sony drive, just as the SunCD is. Consequently, it is the correct vendor (Sony) and it will respond to the MODE SELECT command from the system. Thus, when the Apple is brought on-line, it tells the system that it uses 2048 bytes/block, which generates an error. the system responds by telling the drive to switch to 512 bytes/block. Thus, you can mount and boot from an AppleCD. Contrast this to what happens with a NEC or Toshiba drive: the command is ignored, so it stays in the improper mode, causing the boot or mount to fail.

(Mike adds: Are there more drives like this?)