You could try a program called isomaster

On Thu, 2008-02-07 at 16:54 +0000, Chris Linton-Ford wrote:

> On Thu, 2008-02-07 at 06:08 -0800, Roman Morokutti wrote:
> > Hi,
> > 
> > I am stuck on how to patch an install image which is
> > currently an ISO-image with bits that support a ZFS
> > root. The problem is that after mounting the ISO-file
> > the mount directory is read-only. Every attempt to make 
> > it writable fails. I do not know exactly but I can imagine
> > that this is due to the ISO9660 standard. 
> > 
> > But how can I achieve having the image patched and
> > then rewritten as ISO9660 as it was before?
> > 
> > Roman
> 
> ISOs can't be mounted read-write. You need to mount, copy the files out,
> edit them then recreate the ISO with mkisofs. I did this with the HP
> CPQary driver disk - be warned, it can be fiddly.
> 
> For my example CPQary3.iso file:
> 
> # mkdir /mnt/ddisk
> # mount -F hsfs -o ro `lofiadm -a /var/tmp/CPQary3.iso` /mnt/ddisk
> # mkdir /var/tmp/ddisk
> # find /mnt/ddisk -depth -print | cpio -pvd /var/tmp/ddisk
> # umount /mnt/ddisk
> # lofiadm -d /var/tmp/CPQary3.iso
> 
> do your changes, then
> 
> # mkisofs -iso-level 4 -U -v -sysid Solaris -V CPQARY3A171 -o 
> /var/tmp/CPQary3_new.iso /var/tmp/ddisk/mnt/ddisk/
> 
> Find the sysid and volume id with labelit(1M)
> 
> labelit -F hsfs /var/tmp/CPQary3.iso  | grep -v :\ $
> CD-ROM is in ISO 9660 format
> System id: Solaris
> Volume id: CPQARY3A171
> Application id: MKISOFS ISO 9660/HFS FILESYSTEM BUILDER & CDRECORD CD-R/DVD 
> CREATOR (C) 1993 E.YOUNGDALE (C) 1997 J.PEARSON/J.SCHILLING
> Volume set size is 1
> Volume set sequence number is 1
> Logical block size is 2048
> Volume size is 256
> 
> 
> HTH,
> 
> Chris
> 
> _______________________________________________
> opensolaris-discuss mailing list
> [email protected]










David Clack

Solaris X86 Evangelist
Senior Systems Engineer 
OEM Software Sales
Sun Microsystems
642, Chinook Ave SE,
Ocean Shores, WA, USA,
98569
Phone +1-360-289-2158
Fax +1-360-289-2091
Mobile +1-206-265-1904
Email
[EMAIL PROTECTED]























> 
_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to