Overview of a Solaris 9 Bootable CD


Home
UberJS Standard
UberJS Server
Links

Slice Layout

 

The best way to see what's up is to put in the Solaris9 software V1 disk and view the table of contents.

In order to do so on a CD, you must stop the volume management service.

  • /etc/init.d/volmgt stop
  • prtvtoc /dev/dsk/c0t2d0s0 (or wherever your disk is)
  • /etc/init.d/volmgt start

 

Slice Contents
0 Software packages (The Solaris_9 directory which has the Product subdirectory)
1 Generic Kernel + root directory structure (includes install scripts)
2 boot for sun4c
3 boot for sun4m
4 boot for sun4d
5 boot for sun4u & sun4us
 

 


Slice Extraction

 

If you are going to be making a Solaris 9 bootable cdrom, you will want to know how to extract the slices onto your hard drive so you can make iso's.

Slice 0 is just a filesystem, so you can copy it with cpio and volmgmt should be running.

  • mkdir -p /MySolarisCD/s0
  • cd /cdrom/cdrom0/s0
  • find . -print | cpio -pdm /MySolarisCD/s0

Slice 1 is a filesystem plus some other stuff, so you have to dd it, as well as the rest of the slices, below is a command to copy the other 5 slices at once. Volume management must be stopped.

  • /etc/init.d/volmgt stop
  • for SLICE in 1 2 3 4 5; do dd if=/dev/dsk/c0t2d0s$SLICE of=/MySolarisCD/sol9.s$SLICE bs=512; done
  • /etc/init.d/volmgt start

 


Modifying the images

 

Literally 99.9% of the work needed to tweak jumpstart configurations is on slice 1, very little is done to slice 0 in Solaris 9 images. It seems they moved a lot of it out of slice 0 and there now is a symlynk from slice0/Solaris_9/Tools/Boot to slice 1 instead.

The principal tool for modifying these dd images is lofiadm. To mount one of the images, run the following.

  • lofiadm -a /MySolarisCD/sol9.s1 /dev/lofi/1
  • mount /dev/lofi/1 /mnt

You may then make the necessary changes.

When done, unmount by running the following.

  • cd /
  • umount /mnt
  • lofiadm -d /dev/lofi/1

Mounting any other slice than s1 in this fashion produces only a file that is a boot redirector to slice 1.

 


Creating an iso

 

There is a single line command that will produce an iso of all the images. Another source mentions a way that involves several steps of cat'ing, etc. Both are valid.

from /MySolarisCD:

  • mkisofs -R -d -L -l -sparc-boot sol9.s1,sol9.s2,sol9.s3,sol9.s4,sol9.s5 -o sol9_boot.iso ./s0


Home UberJS Standard UberJS Server Links

 For problems or questions regarding this Web site contact uberjs@iastate.edu.
Last updated: 11/01/03.