Home
      CentOS / Blue Quartz
      Online Store
      Main Cobalt Page
      Recent Updates
      Commercial Software
      Tech Support
      How To / Install Notes
      Free Downloads
      Cobalt Related Links
      About Us
      Site News
 
[RaQ 3/4] Make a Custom Restore CD
 

Building a Custom
Operating System Restore CD
for the Cobalt RAQ

QUALIFICATIONS

Do you have the hardware necessary to create the CD?

A GNU/Linux system with a CD-R drive (running a "recent" distro)
128 MB RAM is minimum (more is always better)
Approx 1-1.5 GB free hard disk space (enough to hold twice the contents of the original OSRCD plus all PKGs you're adding)

Does your system have the necessary software (tar, mkisofs, and cdrecord)?
Do the PKG file(s) you're adding to the CD operate as intended when installed through the UI?
Do you have a correct version of the official Sun Cobalt OS Restore CD for your product?

RIP THE SUN COBALT OSRCD TO YOUR HARD DRIVE

Log in as "root" on your GNU/Linux system
Insert the original Sun Cobalt OSRCD into your CD-ROM device
Mount the CD-ROM (assuming /dev/hdc):

mount /dev/hdc /mnt/cdrom

Check for free disk space:

df -h

Create a directory to hold the OSRCD contents (on a partition with 1-1.5GB of free space):

mkdir /home/osrcd

Copy the CD-ROM contents to the new directory:

cd /mnt/cdrom
tar -c * | tar -C /home/osrcd -xf -

Finish Up your new Custom CD

ADD YOUR PKG FILE(S)

PKG files should be named so that they appear alphabetically in the order you wish them to be installed when doing an "ls -l" command.  The easiest way to do this is to prepend "00" "01" 02" etc in front of each filename.

Example: I want "my-daemon" to be installed first, then "my-config", then "my-archiver". I would do the following (in whatever directory my PKG files are stored):

cd /my/pkgfile/directory
cp my-daemon.pkg 00my-daemon.pkg
cp my-config.pkg 01my-config.pkg
cp my-archiver.pkg 02my-archiver.pkg

If you are only adding a single PKG file, then you don't need to worry about this step.
Switch to the "bundles" directory:

cd /home/osrcd/nfsroot-x86/bto-sync/bundles

Copy your PKG files (individually):

cp /my/pkgfile/directory/00my-daemon.pkg .
cp /my/pkgfile/directory/01my-config.pkg .
cp /my/pkgfile/directory/02my-archiver.pkg .

or via wildcard (if you know you want _all_ PKG files in the directory):

cp /my/pkgfile/directory/*.pkg .

Double-check the order in which they will be installed:

ls -l

CREATE A NEW ISO-9660 IMAGE OF THE MODIFIED CD CONTENTS

cd /home/osrcd

mkisofs -P YourName -b boot/eltorito.img -c boot/boot.catalog -R -l -L -o /tmp/filename.iso .

This is ONE LONG LINE.  Make sure you copy the entire line!

Note: the trailing period (preceded with a space) is part of the mkisofs command!

Note: the third switch on the second line above is a small "L" -- not the number one!

Note: if YourName has whitespace in it, then put quotes around it ("Your Name")

Note: use "man mkisofs" to see what the various switches are for

This makes an ISO image of your new OSRCD, named filename.iso, in  the /tmp directory. We provide directions here how to burn the ISO to a CD under Linux using cdrecord. You can also transfer this ISO image (via FTP, etc) to another computer if that one has your CD burning software/hardware already installed.
BURN YOUR NEW ISO IMAGE TO A CD



Copyright (c) 2006.
NuOnce Networks, Inc.