SUMMARY #2: Creating ISO image from CD on SPARC?

From: Peter Stokes (peter@ashlyn.co.uk)
Date: Wed Mar 31 2004 - 03:11:28 EST


Hi

After my original SUMMARY, I received a few more bits of info which I think
are worth putting into the archive etc.

Both are along the lines that you can create an image bootable Solaris CD
under Solaris from a Solaris CD.

Basically the idea is to use dd on each defined partition and cat them, note
the use of 512 for bs.

I have not tried them yet, but looks sensible.

First from Luc I Suryo

> > >
> > > not sure if this help, but in the past here what i did..
> > > stop automount
> > > dd if=/dev/rdsk/c0t6d0s0 of=s0 bs=512
> > > dd if=/dev/rdsk/c0t6d0s1 of=s1 bs=512
> > > dd if=/dev/rdsk/c0t6d0s2 of=s2 bs=512
> > > etc so you do ALL slices
> > >
> > > cat s0 s1 s2 s3 s4 s5 s5 s6 s7 > cd.image
> > >
> > > then write the image with cdwriter

Then the following script form a Stan Quinn

> To make a ISO image from a Sun CD, then make a CD from itb&
>
>
>
> #!/bin/sh
>
>
>
> START_DIR=`pwd`
>
> mkdir tmpcd/s0
>
>
>
> (cd /cdrom/sol*sparc/s0; find . -print | cpio -dump
> $START_DIR/tmpcd/s0)
>
>
>
> /etc/init.d/volmgt stop
>
> cd tmpcd
>
>
>
> for i 1 2 3 5
>
> do
>
> dd if=/dev/dsk/c0t2d0s${i} of=sol.s${i} bs=512
>
> done
>
>
>
> dd if=/dev/dsk/c0t2d0s0 of=sol.cdrom.vtoc bs=512 count=1
>
>
>
> /etc/init.d/volmgt start
>
>
>
> mkisofs -R -d -L -l -o sol.S0 s0
>
>
>
> dd if=sol.S0 of=new.s0 bs=512 skip=1
>
> rm sol.S0
>
>
>
> # PAD is the VTOCSectors - (ImageSectors + 1)
>
>
>
> dd if=/dev/zero of=pad.s0 bs=512 count=$PAD
>
>
>
> cat sol.cdrom.vtoc new.s0 pad.s0 sol.s1 sol.s2 sol.s3 sol.s4 sol.s5 >
> cd.image
>
>
>
> cdrw -i cd.image
>
>

Thanks to the many who suggested mkisofs, which I guess in principle
will work, but does not take into account the boot etc of a Solaris boot
CD. Also readcd was suggested for non Solaris CD (see below) as straight
copy.

Thanks also to Casper Dick who confirmed my thoughts that Solaris unlike
Linux looks at the vtoc and there is no 'whole disk' entry in /dev/rdsk
etc.

It is strange that cdrw can do this, but cannot output to file (it
creates a hidden tmp file which is not accessible)

So I guess it is back to my Windows or Linux system, with Linux dd works
fine for Solaris bootable CD's and Windows has various CD apps which
work.

A few other replies also included ref's as follows

http://www.bolthole.com/solaris/mount-cdrom.html

You want cdrtools. I believe this is its home page:

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

I suggest downloading http://www.sun.com/blueprints/0301/BuildBoot.pdf

While this focuses on how to build a boot CD, it also does give great
insight in how to go about creating CD's on Solaris and what works.

For a'simple' CD (no Solaris CD) try

readcd f=[imagename] dev=scsibus,target,lun

For Solaris CDs (different Filesystem) look at:
http://www.lka.ch/projects/solcdburn/solcdburn.html
http://www.fokus.gmd.de/research/cc/glone/employees/joerg.schilling/private/m
an/README/README.sparcboot

Thanks

Peter

On Thu, 2004-03-25 at 12:29, Peter Stokes wrote:
> Hi All
>
> What is the preferred method for creating an iso image on disk from a
> data CD?
>
> I have tried dd with /dev/rdsk/c0t2d0s2 etc, but this depends on the
> vtoc on the CD.
>
> I can copy with cdrw, but not create an image file.
>
> Any help would be appreciated.
>
> Peter
> _______________________________________________
> sunmanagers mailing list
> sunmanagers@sunmanagers.org
> http://www.sunmanagers.org/mailman/listinfo/sunmanagers
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:28:23 EDT