Softpanorama

May the source be with you, but remember the KISS principle ;-)
Home Switchboard Unix Administration Red Hat TCP/IP Networks Neoliberalism Toxic Managers
(slightly skeptical) Educational society promoting "Back to basics" movement against IT overcomplexity and  bastardization of classic Unix

Bootable CDs and CD Burning on Solaris

News Mounting CDROM in Solaris Recommended Links Man pages Reference Etc
cdrecord (now cdrtools) mkisofs        

Burn CDs With the Solaris[TM] 8 Operating Environment

CD-ROM drives are commonly used for duplicating existing CDs, and for making CD data backups of hard disk files. This article demonstrates how both tasks can be accomplished using cdrecord on the Solaris[TM] Operating Environment.

A simple command line program, cdrecord, means burning CDs using Solaris software is quick, simple, and cost-effective. The cdrecord program, which works for both SPARC[TM] and Intel Architecture systems, is included on the Solaris Software Companion CD, and is also available for free download from cdrecord 1.9 SPARC 8 or cdrecord 1.9 INTEL 8 (also cdrecord 1.9 SPARC 9 )

Cdrecord  is installed in /opt/sfw (/opt/sfw/bin/cdrecord). Blastwave.org has a Solaris cdrecord package (www.blastwave.org/packages.php/cdrtools). Most SCSII CD drves are compatible with solaris (for more information see Cdrecord-2.0 drive compatibility list)
 

For burning CDRs on Solaris, you have to stop the "removable media manager" process "vold", because it blocks the CD recorder device /etc/init.d/volmgt stop. then you can burn the CD and restart the media manager process /etc/init.d/volmgt start

While optional, configuring a cdrecord startup file, /etc/default/cdrecord, will save time in the future. This startup configuration file can hold information that cdrecord will need every time it's used, such as the CD recorder's speed, device name, the preferred buffer size, and so on. Alternately, these options can be entered into the command line before every use.

To discover the CD recorder and CD-ROM drive device names you can use cdrecord -scanbus at the root prompt. The command output should be similar to:

#  cdrecord -scanbus
cdrecord 1.9 (i386-pc-solaris2.8) Copyright (C) 1995-2000

1,0,0  100) 'CREATIVE' 'CD5233E ' '1.00' Removable CD-ROM
2,4,0  204) 'PLEXTOR' 'CD-R PX-R820T' '1.05' Removable CD-ROM
The device ID is the first three numbers listed in each entry -- in this case, device 2,4,0 is the CD recorder, for example. The configuraiton file can also include a recording speed (for example, 8 times), and a buffer size (for example, 8 megabytes) to help avoid under runs. To create the configuration file, located in /etc/default/cdrecord, type:
  	# cat /etc/default/cdrecord
  	CDR_FIFOSIZE=8m
  	CDR_SPEED=8
  	CDR_DEVICE=USCSI:2,4,0
The cdrecord program startup configuration file is now set up for the future!

CD to CD

To duplicate an existing CD, insert the CD into the CD-ROM drive. (Remember, duplicating CDs might require certain copyright and license permissions!) Then:

Determine the controller and target numbers. These are listed in the cdrecord -scanbus output (from before): 1,0,0 100) 'CREATIVE' 'CD5233E ' '1.00' Removable CD-ROM . The first number is the controller number, and the second number is the target number. In this case, they are one and zero, respectively. Also note that in the Solaris 8 platform, the IDE CD-ROM drive device names are very similar to SCSI device names -- both contain target numbers.

Choose an output file with sufficient free hard disk space (at least 700 megabytes recommended). For this example, the free space is located in the /local file system.

Capture an ISO image file of the CD by typing (at root prompt):

  # dd if=/dev/dsk/c1t0d0p0  of=/local/mycdromfile.iso

It will take about five to ten minutes to copy the entire CD image file to disk. After inserting a blank CD into the CD-ROM drive, burn the image from disk onto a second CD by typing:

	  # cdrecord -v /local/mycdromfile.iso	

This should take about 15 to 30 minutes, depending on the speed of the CD burner. In the above command, -v displays each step with extra information, just in case something isn't successful.

Data to CD

Many users also utilize CD-ROM drives to create data backups on CD of a system's home directory and files. The Solaris 8 Operating Environment includes a very useful command for this, mkisofs, which creates an image file when pointed at a system directory. To make an image file of a home directory, for example /home/neal, type:

  	# mkisofs -l -L -r -o /local/mycdromfile2.iso  /home/neal

This will take all the files in the /home/neal directory and create a CD-ROM ISO image file at /local/mycdromfile2.iso.

When this is finished, insert a blank CD into the CD-ROM drive, and type:

  	# cdrecord -v /local/mycdromfile2.iso

This will copy the data image onto the blank CD, and should take about 15 to 30 minutes depending on the speed of the burner. More information about the mkisofs command, including all its configurable options, can be found by typing man mkisofs at a shell prompt.

For additional software and hardware information, documentation, source code, and a list of supported CD recorders for cdrecord (an open source project), visit the Freshmeat Web site. To learn more about the Solaris Operating Environment, please visit www.sun.com/solaris.

Top Visited
Switchboard
Latest
Past week
Past month

NEWS CONTENTS

Old News ;-)

vold daemon can block access to CD writer.

For burning CDRs on Solaris:
  1. stop the volume manager daemon vold, because it blocks the CD recorder device
    /etc/init.d/volmgt stop
  2. Burn the CD using cdrecord
  3. Restart the daemon
    /etc/init.d/volmgt start

BigAdmin Submitted Article A Recovery CD for the Solaris OS and VERITAS NetBackup Software

This paper documents a method for building and using a recovery CD for the Solaris Operating System. This CD can be used to restore root file systems without having to install the OS on an alternate boot disk or configure and use a Solaris JumpStart server (as described in the BigAdmin Community-Submitted document "Restoring the Solaris OS From VERITAS NetBackup Software").

The BigAdmin Community-Submitted article "UberJS: A More Flexible Solaris JumpStart System" provided much of the information regarding the modification of the Solaris installation CD that is used in this process. If for some reason this process does not work in your environment, I would suggest reviewing these documents, as well as the documents they reference, for ideas.

The basic idea is to build a bootable CD that will allow the installation of the VERITAS NetBackup client software. Since some of the files in /etc directory will remain "read only", it is necessary to add entries that the NetBackup client installation won't be able to customize. To provide a file system to install the NetBackup client software, the host's swap partition will be formatted with newfs and mounted as /usr/openv.

This process assumes a fairly basic NetBackup configuration with a single NetBackup master server that is also the only media server as well. This process is not suited for situations where the target server is also a NetBackup media server although other ways to make it work may exist in this situation as well.

Burning a bootable CDRom for Solaris

Issues and methods stated in this article are outdated. Reading it may still help understand the problems.
You might want to check out the PDF from Sun Blueprints for a much easier way of doing things these days.
http://www.sun.com/software/solutions/blueprints/0301/BuildBoot.pdf

Preface:

I have been trying to customize a Solaris install CDROM to my own needs. After several searches without any usable results, I ran into some really good explanations on this topic on the SunManagers Mailinglist Archive.

The work of Victoria Lau ([email protected]) 'Log file to customize the Solaris 2.5 boot cdrom' and a paper of James Hutchinson ([email protected]) 'Summary: How to build a Solaris bootable CDROM' helped alot, but these documents are Solaris 2.5 specific. Sun changed the CD-Layout from 2.5 to 2.6 :=)

In this document, I will explain how the Sun boots off the CDROM and how this CDROM could be customized to fit someones needs. This paper refers to the Solaris 2.6 HW 5/98 CDROM. The new Solaris 2.7 CDROM seems to share the same layout.

This document is structured in several sections:

1. Introduction to the Sun CDROM layout

2. How is the machine booting off the CDROM and where does the installation begin.

3. Altering the CDROM
3.1 The VTOC explained
3.2 Two possible methods for changing the CD

4. Testing your future, bootable CDROM

5. Scripts and other goodies

6. Comments from Readers

CD-Recordable FAQ by Andy McFadden's Last-modified: 2005/11/13 Version: 2.63

This was originally developed (and is still maintained) as a Usenet newsgroup FAQ. If you'd like to check out the newsgroups, point your news reader at the following (or go to http://groups.google.com/ and read them with your web browser):

[ PDF] Building a Bootable JumpStart™ Installation CD-ROM
File Format: PDF/Adobe Acrobat - View as HTML

[PDF] Performing Network Installations Without a Local Boot Server

Burning a bootable CDRom for Solaris

cdrtools-mkisofs now supports Solaris x86 boot CDs - Talk Root - PC Hardware & Software Talk

cdrtools/mkisofs now supports Solaris x86 boot CDs


The new mkisofs now supports to create Solaris x96 boot CDs

ASs it allows to create more slices than the original Sun
CDs use there are even more possibble usage scenarios.

Please check the new sources at

ftp://ftp.berlios.de/pub/cdrecord/alpha

Summary Using SUNs ISO Images without toasting cd's to install Solaris 9!

Wanke Matthias Matthias.Wanke at itellium.com
Thu Mar 27 11:10:24 EST 2003
I had the following question to the List:

To: Sun Managers
Subject: Using SUNs ISO Images without toasting cd's to install solaris
9! ?

Hi,

i wanted to use the ISO images downlodable from SUN to setup an
installserver of Solaris 9 12/02. I am able to mount the CD's with the help
of lofi but this will give me just the first slice (s0) which is hsfs, the
other slices are ufs and can't seem to be accesses via lofi. Has aynone
tried to disassamble the images in a way the with the help of dd etc. one
can acces all data in the images without actually burning one or more cd's?
My goal is beeing able to do an "setup_install_server" from the images; but
even in the first step the script needs to access slice 1 which contains the
miniroot for jumpstart...

Cheers,
Mat.


Thanks for you answers; i was able to solve my problem and go ahead with
installation!

tkevans [tkevans at tkevans.com]
his has worked for me:
mount -F hsfs -o ro `lofiadm -a /path/to/iso/image` /mnt

Vberg Mats [mats.oberg at tietoenator.com]
Hi, I was able to do what you are trying to do by following the
instructions on http://www.bolthole.com/solaris/mount-cdrom.html
<http://www.bolthole.com/solaris/mount-cdrom.html>

Steve Wills [steve at stevenwills.com]
http://www.bolthole.com/solaris/mount-cdrom.html
<http://www.bolthole.com/solaris/mount-cdrom.html>
(This Link didn't work for me!)

some source ;-) told me that one can look at the first block of the ISO
Image and use the info there to extract the second slice which in turn can
be mounted with lofi as ufs; have a look at the other links to get more
details!
#!/bin/ksh
INPUT=$1
S1=`dirname $1`/slice1_`basename $1`
set -A vtoc `od -D -j 452 -N 8 < sol-9-u2-sparc-v1.iso | nawk ' $2 !~ /^$/ {
print $2*640,$3*1 }'`
dd if=$INPUT of=$S1 bs=512 skip=${vtoc[0]} count=${vtoc[1]}

#_________________________________________
sunmanagers mailing list
sunmanagers at sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
<http://www.sunmanagers.org/mailman/listinfo/sunmanagers>
_______________________________________________
sunmanagers mailing list
sunmanagers at sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers

Solaris Forums - CD-Writer A very nice dialog with the guy who never read (and never intended to read ) any manuals. the level of patience demonstrated is commendable. Very instructive thread that any attempt to produce something that is an idiot proof just produces better idiots and what in general tech support should expect of novices.

Hi there, I just installed Solaris 9 on my HP Vectra machine, I have a Mitsumi CD Writer , is there something like cd writing under solaris, if yes then how can one write a cd in solaris, and where can we find drivers and softwares for burnig cd's under solaris.

Samir


cdrecord is included with the "Software Companion CD", which is bundled with the Solaris Media Kit.
(/opt/sfw/bin/cdrecord). See also:

http://wwws.sun.com/software/solaris/freeware/index.html

Blastwave.org has a Solaris cdrecord package, too:

http://www.blastwave.org/
http://www.blastwave.org/packages.php/cdrtools

Hi there,
I downloaded the cdrec software from sun, also installed it, now the question is how to work with it, and how to know if it is compatible with my cd-rw drive. Is there a manual or a README where I can read and find out how to work with it?
Thanks though for information.


A list of compatible CD-writer drives is available on the author's web site:

http://www.fokus.fhg.de/research/cc/glone/employees/joerg.schilling/private/cdwriters-2.0.html

For burning CDRs on Solaris, you have to stop the "removable media manager" process
"vold", because it blocks the CD recorder device

/etc/init.d/volmgt stop

... burn CDR(s) using cdrecord ...

/etc/init.d/volmgt start


You can use the command "cdrecord -scanbus" to scan for SCSI / ATAPI devices, and find
the device address (bus / target / logical unit) of your CD-recorder.

To burn an ISO9660 image to a CD-R device at bus address X,Y,Z, use the command

cdrecord dev=X,Y,Z image.iso


A manual page is available under /opt/sfw/man:

man -M /opt/sfw/man cdrecord

Is Mitsumi CD-48X5TE compatible cd writer? I installed the package and I am trying to execute the command "cdrecord -scanbus", but it says that it cannot find /dev/rdsk/c1t1d0s2 in warning. What does it mean. I am new to Solaris and would like to know more.

Samir Patel

Try to post the exact error message printed by cdrecord.

You may want to run the command "devfsadm -v -C" to detect
new devices and to clean up unused device nodes. Maybe
/dev/rdsk/c1t1d0* is some old device that is not used any more.

Does the command "iostat -En" list your mitsumi cd writer?

It gives the following message,
# iostat -En
c1t0d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: TEAC Product: CD-532E-B Revision: 2.0A Serial No: CD-532E-B
Size: 0.00GB <0 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0
c1t1d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: MITSUMI Product: CR-48X5TE Revision: 1.8A Serial No: CR-48X5TE
Size: 0.00GB <0 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0

Does this mean anything.


Issuing the command cdrecord -scanbus following messages are given

# ./cdrecord -scanbus
Cdrecord 1.9 (i386-pc-solaris2.9) Copyright (C) 1995-2000 Jýrg Schilling
Warning: Using USCSI interface.
./cdrecord: No such file or directory. Cannot open '/dev/rdsk/c1t1d0s2'. Cannot open SCSI driver.
./cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are root.

Samir Patel


> c1t1d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
> Vendor: MITSUMI Product: CR-48X5TE Revision: 1.8A Serial No: CR-48X5TE
>
> Does this mean anything.

Now we know that

1. Solaris does see the "MITSUMI CR-48X5TE" device

2. It's device name is /dev/rdsk/c1t1d0*


> Issuing the command cdrecord -scanbus following messages are given
>
> # ./cdrecord -scanbus
> Cdrecord 1.9 (i386-pc-solaris2.9) Copyright (C) 1995-2000 Jýrg Schilling
> Warning: Using USCSI interface.
> ./cdrecord: No such file or directory. Cannot open '/dev/rdsk/c1t1d0s2'. Cannot open SCSI driver.
> ./cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are root.

OK, now I'm able to reproduce this error message: It happens when you run
cdrecord as an ordinary user, that does have permission to open the
'/dev/rdsk/c1t1d0s2' device.

If you carefully read the messages printed by cdrecord, the solution for the
problem is mentioned:

Make sure you are root.

You must run cdrecord as user root, non-root users are not allowed
direct access to disk devices and are not allowed to send SCSI
commands to them.
Trying the command after becoming root produced the same result, you say that the cd-recorder is detected by iostat command, is there something that I might have missed during the installation or during the configuration? I followed the steps that were given in the README file during the installation.

Samir


Hmm, try tracing the system calls using "truss cdrecord -scanbus" and check how the open
on /dev/rdsk/c1t1d0s2 fails.

If it fails with the error EACCESS:

open("/dev/rdsk/c1t1d0s2", O_RDONLY|O_NDELAY) Err#13 EACCES

when you're not root.

And if fails with EBUSY:

open("/dev/rdsk/c1t1d0s2", O_RDONLY|O_NDELAY) Err#16 EBUSY

when you didn't stop the "vold" process.

I ran the above given command "truss cdrecord -scanbus" and along with a series of messages I found this as well,

open("/dev/rdsk/c1t0d0s2", O_RDONLY|O_NDELAY) Err#16 EBUSY
open("/dev/rdsk/c1t1d0s2", O_RDONLY|O_NDELAY) Err#16 EBUSY

also at this time I was root.

# who
root console Apr 17 09:57 (:0)
root pts/4 Apr 17 10:01 (:0.0)

What does this mean?


Some process has these devices open with an exclusice lock. This is typical behaviour when "vold"
is still running.

Stop the "vold" process before using cdrecrod. Run

/etc/init.d/volmgt stop

to stop vold. Double check with "pgrep vold" that vold is not running any more.
(I've seen cases where vold refuses to die, to you may have to send some signal to vold, using
"pkill vold" or even "pkill -9 vold").


Ok I ran the cdrecord command after stopping the vold. The output looks like this,

#cdrecord -scanbus

Cdrecord 1.9 (i386-pc-solaris2.9) Copyright (C) 1995-2000 Jýrg Schilling
Warning: Using USCSI interface.
Using libscg version 'schily-0.1'
scsibus1:
1,0,0 100) 'TEAC ' 'CD-532E-B ' '2.0A' Removable CD-ROM
1,1,0 101) 'MITSUMI ' 'CR-48X5TE ' '1.8A' Removable CD-ROM
1,2,0 102) *
1,3,0 103) *
1,4,0 104) *
1,5,0 105) *
1,6,0 106) *
1,7,0 107) *

it says that its a cd-rom, does this mean that it cannot burn cd's.

Samir

> It says that its a cd-rom, does this mean that it cannot burn cd's.

cdrecord doesn't care about the SCSI device type, a device type "CD-ROM" is OK.

Sun Microsystems Support Forums

Messages: 1
Registered: May 2004
Location: Great Falls, Virginia

Junior Member

Hi,
I have a SUN Ultra 10 with TEAC CD Writer. I tried cdrw command to blank a cd and in fact it works. I can write a cd. But when I attempted to create a bootable CD, I am frustrated. I tried cdrecord, BurnIT (unfortunately they all have only source versions and when I try to build I get all kinds of hurdles). So I followed NetBSD's instructions and they seemed very straight forward as seen in
http://www.netbsd.org/Documentation/bootcd.html#sparc64image

But sunbootcd.sh uses sunlabel and I got stuck there. I could create a CD with solaris 10 .iso file and boot.sh, but without sunlabel, I cannot use that CD to boot.

Any suggestions?

I found this, may be usefull for you:
"The first step is to identify the cd recorder device name, which can be found by scanning the device buses. In order to scan the devices, however, the volume management must be turned off.
Log in as root
Turn off volume management by typing /etc/init.d/volmgt stop
Discover the CD recorder and CD-ROM drive device names by typing cdrecord -scanbus at the root prompt. The command output should be similar to:
# cdrecord -scanbus
cdrecord 1.9 (i386-pc-solaris2.8) Copyright (C) 1995-2000
1,0,0 100) 'CREATIVE' 'CD5233E ' '1.00' Removable CD-ROM
2,4,0 204) 'PLEXTOR' 'CD-R PX-R820T' '1.05' Removable CD-ROM

The device ID is the first three numbers listed in each entry -- in this case, device 2,4,0 is the CD recorder, for example. The configuraiton file can also include a recording speed (for example, 8 times), and a buffer size (for example, 8 megabytes) to help avoid under runs. To create the configuration file, located in /etc/default/cdrecord, type:
# cat /etc/default/cdrecord
CDR_FIFOSIZE=8m
CDR_SPEED=8
CDR_DEVICE=USCSI:2,4,0

The cdrecord program startup configuration file is now set up for the future!
After inserting a blank CD into the CD-ROM drive, burn the image from disk onto a second CD by typing:"

# cdrecord -v /local/mycdromfile.iso

I've used this to create my Solaris express CD's an work fine.
Good luck !

Computing.Net - Installing scsi CDROM into Ultra30

Name: Glenn Moores
Date: December 11, 2001 at 02:45:54 Pacific
Subject: Installing scsi CDROM into Ultra30

Hi,

I'm from a software background and so dont often get into this HW install stuff, so I need some guidence.....

I've got an Ultra 30 which I need to build, but it has no CDROM so I'm installing a standard Tosh scsi 40x.

At OK prompt, probe-scsi finds it on Target 3, but "boot cdrom" doesnt find a boot file and complains device not ready. I'm assuming this is because the std cdrom alias is for target 6? I've tried variations on boot but to no avail.

Any clues?

Response Number 1 Subject: Installing scsi CDROM into Ultra30

Hi mate, if the cdrom alias is for target 6, then I guess you can either try to change the target number of the drive by the jumpers/pins on the back of it, or you could use the openboot commands to create an alias...

at ok prompt:

show-devs

will show you devices .. basically look for your cdrom drive device + target on there and use devalias to create the alias for it.

it's prob set to:

/iommu/sbus/espdma@f,400000,esp@f,800000/sd@6,0:d

you could do

devailias mycdrom /iommu/sbus/espdma@f,400000,esp@f,800000/sd@3,0:d

and type boot mycdrom - however devalias is only a temporary thing and will be erased upon reboot or powerdown. you can use nvalias instead for a permanent setting. (if you can't change the scsi target ID then just change the cdrom alias as necessary)..

Hope this helps.

Sun Managers Mailing List Archives


Thanks to the following individuals:
Alan Reichert
David Foster
Jon Kump
Wolf Shaefer
Moti Levy
James Lick
Mark Hargrave
Michael Hills
Chris Marble

Consensus says that Sun does not make its own.

Experiences with cd-rom burners:
PlexWriter 12 SCSI drive (Linux box)
YAMAHA CRW4416SX (TATUNG UltraSparc 10 running Solaris 2.6)
Ricoh MP7120A drive
hp 9600 scsi (solaris)
Yamaha burners (SCSI interface)


Helpful URLs cdrom writing:

http://www.fokus.gmd.de/research/cc/glone/employees/joerg.schilling/private/cdrecord.html

http://www.fadden.com/cdrfaq/

http://www.hycd.com

http://www.sun.com/software/solutions/blueprints/0301/BuildBoot.pdf

http://www.freshmeat.net

Recording CDROMs
Joerg Schilling's cdrecord
http://www.fokus.gmd.de/research/cc/glone/employees/joerg.schilling/private/cdrecord.html
http://www.fokus.gmd.de/nthp/employees/schilling/cdrecord.html

webCDwriter : Web-based Java client for network multi-user cd-writes
http://www.uni-bielefeld.de/~jhaeger/webCDwriter/

SCG and FBK drivers (necessary for CDRecord on Solaris)
ftp://ftp.fokus.gmd.de/pub/unix/kernel/scg/

Joerg Schilling's other links:
http://www.fokus.gmd.de/research/cc/glone/employees/joerg.schilling/private/

Andy McFadden's CD-Recordable FAQ
http://www.fadden.com/cdrfaq

Sun CDROM FAQ
http://saturn.tlug.org/suncdfaq/


Note:  Option for freeware is to use "cdrecord" or "cdrw". "cdrw" is a Sun
product which is included in Solaris 8 10/00 or higher

David Foster also handed down some scripts if anyone wants.


bye,
Daniel

Recommended Links

Google matched content

Softpanorama Recommended

Top articles

Sites

cdrecord

freshmeat.net Project details for cdrtools

cdrtools (formerly cdrecord) creates home-burned CDs with a CDR/CDRW recorder. It works as a burn engine for several applications. It supports CD recorders from many different vendors; all SCSI-3/mmc- and ATAPI/mmc-compliant drives should also work. Supported features include IDE/ATAPI, parallel port, and SCSI drives, audio CDs, data CDs, and mixed CDs, full multi-session support, CDRWs (rewritable), TAO, DAO, RAW, and human-readable error messages. cdrtools includes remote SCSI support and can access local or remote CD writers.

Author:
Jörg Schilling [contact developer]

Misc FAQs

How to create a bootable Solaris x86 cdrom

Intention

Some weeks (December 2003) ago I had to create a bootable cdrom for and with Solaris x86. I wanted to boot an Intel system from a cdrom and then do some things like copying files to harddisk and so on. Unfortunately it looks like I'm the only one interested in doing this. A lot of googling did not help. That's why I think the following recipe will help you a lot.

Preconditions

Since I do not want and am not allowed to distribute Solaris, you need an orginal "Solaris9 Software 1of2" cdrom. All the parts to assemble a new ISO-image are grabbed from this disk. Put this cdrom into your drive and execute following commands in a directory where you have 1GB free space:
Now you can modify the directory news1 to all your needs. If you need more space to add your own software you could remove the installation packages in news1/Solaris_9/Product .
To execute your own script while booting from the cdrom, the best way is to alter the image s0. Take a hex editor and search the string "# Make sure all configuration necessary is completed in order". Start overwriting at # with something like "exec /cdrom/my_action.sh" Do not forget the newline after ".sh"! The script my_action.sh has to be placed in the directory news1.

Now let's create a new ISO image that can be burned to a cdrom:

Burn the new ISO image ./newsol9.iso to a CD-R and boot it!

All the steps described above are tested on a Solaris9-x86 system. They probably will work as well on a Linux system if the paths to the cdrom device are changed appropriate.

Internals

EL-Torito bootblock

The process described above creates a new ISO image as similar to the original Solaris cdrom as I could. One difference is, that the El-Torito bootblock on the new cdrom is not exactly where it is on the original one. There is a nice tool disktype available which shows, that the bootblock on the original cdrom starts at sector 0 of the ISO filesystem. I do not know how to do this with mkisofs, since I did not find any option to do this. That's why the first 4 blocks of the original cdrom are copied as a new file into the ISO filesystem and referenced with a path as an option for mkisofs.

VTOC

It looks like the first block and perhaps a few following blocks are not only the bootblocks for El-Torito but also contain the Solaris VTOC. If they are not copied from the original cdrom, Solaris will not be able to mount s1.

Space

Perhaps somebody knows about the two topics described in chapter EL-Torito and VTOC above. This would make it poissible to alter the Solaris VTOC or whatever to have more free space for the ISO filesystem to play with.

EL-Torito bootblock

If somebody could tell me how to alter the mkisofs command or how to patch the image to use the original bootblock startng at sector 0?

Links

Just found a very useful link. This could have saved me WEEKS! http://www.talkroot.com/archive/topic/1487-1.html



Etc

Society

Groupthink : Two Party System as Polyarchy : Corruption of Regulators : Bureaucracies : Understanding Micromanagers and Control Freaks : Toxic Managers :   Harvard Mafia : Diplomatic Communication : Surviving a Bad Performance Review : Insufficient Retirement Funds as Immanent Problem of Neoliberal Regime : PseudoScience : Who Rules America : Neoliberalism  : The Iron Law of Oligarchy : Libertarian Philosophy

Quotes

War and Peace : Skeptical Finance : John Kenneth Galbraith :Talleyrand : Oscar Wilde : Otto Von Bismarck : Keynes : George Carlin : Skeptics : Propaganda  : SE quotes : Language Design and Programming Quotes : Random IT-related quotesSomerset Maugham : Marcus Aurelius : Kurt Vonnegut : Eric Hoffer : Winston Churchill : Napoleon Bonaparte : Ambrose BierceBernard Shaw : Mark Twain Quotes

Bulletin:

Vol 25, No.12 (December, 2013) Rational Fools vs. Efficient Crooks The efficient markets hypothesis : Political Skeptic Bulletin, 2013 : Unemployment Bulletin, 2010 :  Vol 23, No.10 (October, 2011) An observation about corporate security departments : Slightly Skeptical Euromaydan Chronicles, June 2014 : Greenspan legacy bulletin, 2008 : Vol 25, No.10 (October, 2013) Cryptolocker Trojan (Win32/Crilock.A) : Vol 25, No.08 (August, 2013) Cloud providers as intelligence collection hubs : Financial Humor Bulletin, 2010 : Inequality Bulletin, 2009 : Financial Humor Bulletin, 2008 : Copyleft Problems Bulletin, 2004 : Financial Humor Bulletin, 2011 : Energy Bulletin, 2010 : Malware Protection Bulletin, 2010 : Vol 26, No.1 (January, 2013) Object-Oriented Cult : Political Skeptic Bulletin, 2011 : Vol 23, No.11 (November, 2011) Softpanorama classification of sysadmin horror stories : Vol 25, No.05 (May, 2013) Corporate bullshit as a communication method  : Vol 25, No.06 (June, 2013) A Note on the Relationship of Brooks Law and Conway Law

History:

Fifty glorious years (1950-2000): the triumph of the US computer engineering : Donald Knuth : TAoCP and its Influence of Computer Science : Richard Stallman : Linus Torvalds  : Larry Wall  : John K. Ousterhout : CTSS : Multix OS Unix History : Unix shell history : VI editor : History of pipes concept : Solaris : MS DOSProgramming Languages History : PL/1 : Simula 67 : C : History of GCC developmentScripting Languages : Perl history   : OS History : Mail : DNS : SSH : CPU Instruction Sets : SPARC systems 1987-2006 : Norton Commander : Norton Utilities : Norton Ghost : Frontpage history : Malware Defense History : GNU Screen : OSS early history

Classic books:

The Peter Principle : Parkinson Law : 1984 : The Mythical Man-MonthHow to Solve It by George Polya : The Art of Computer Programming : The Elements of Programming Style : The Unix Hater’s Handbook : The Jargon file : The True Believer : Programming Pearls : The Good Soldier Svejk : The Power Elite

Most popular humor pages:

Manifest of the Softpanorama IT Slacker Society : Ten Commandments of the IT Slackers Society : Computer Humor Collection : BSD Logo Story : The Cuckoo's Egg : IT Slang : C++ Humor : ARE YOU A BBS ADDICT? : The Perl Purity Test : Object oriented programmers of all nations : Financial Humor : Financial Humor Bulletin, 2008 : Financial Humor Bulletin, 2010 : The Most Comprehensive Collection of Editor-related Humor : Programming Language Humor : Goldman Sachs related humor : Greenspan humor : C Humor : Scripting Humor : Real Programmers Humor : Web Humor : GPL-related Humor : OFM Humor : Politically Incorrect Humor : IDS Humor : "Linux Sucks" Humor : Russian Musical Humor : Best Russian Programmer Humor : Microsoft plans to buy Catholic Church : Richard Stallman Related Humor : Admin Humor : Perl-related Humor : Linus Torvalds Related humor : PseudoScience Related Humor : Networking Humor : Shell Humor : Financial Humor Bulletin, 2011 : Financial Humor Bulletin, 2012 : Financial Humor Bulletin, 2013 : Java Humor : Software Engineering Humor : Sun Solaris Related Humor : Education Humor : IBM Humor : Assembler-related Humor : VIM Humor : Computer Viruses Humor : Bright tomorrow is rescheduled to a day after tomorrow : Classic Computer Humor

The Last but not Least Technology is dominated by two types of people: those who understand what they do not manage and those who manage what they do not understand ~Archibald Putt. Ph.D


Copyright © 1996-2021 by Softpanorama Society. www.softpanorama.org was initially created as a service to the (now defunct) UN Sustainable Development Networking Programme (SDNP) without any remuneration. This document is an industrial compilation designed and created exclusively for educational use and is distributed under the Softpanorama Content License. Original materials copyright belong to respective owners. Quotes are made for educational purposes only in compliance with the fair use doctrine.

FAIR USE NOTICE This site contains copyrighted material the use of which has not always been specifically authorized by the copyright owner. We are making such material available to advance understanding of computer science, IT technology, economic, scientific, and social issues. We believe this constitutes a 'fair use' of any such copyrighted material as provided by section 107 of the US Copyright Law according to which such material can be distributed without profit exclusively for research and educational purposes.

This is a Spartan WHYFF (We Help You For Free) site written by people for whom English is not a native language. Grammar and spelling errors should be expected. The site contain some broken links as it develops like a living tree...

You can use PayPal to to buy a cup of coffee for authors of this site

Disclaimer:

The statements, views and opinions presented on this web page are those of the author (or referenced source) and are not endorsed by, nor do they necessarily reflect, the opinions of the Softpanorama society. We do not warrant the correctness of the information provided or its fitness for any purpose. The site uses AdSense so you need to be aware of Google privacy policy. You you do not want to be tracked by Google please disable Javascript for this site. This site is perfectly usable without Javascript.

Last modified: March 12, 2019