Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Solaris 9 EA ISO's and Jumpstart

3 views
Skip to first unread message

Scott Howard

unread,
Jan 19, 2002, 5:59:12 AM1/19/02
to
Unlike the Solaris 8 CD's it's not possible to use the ISO images of the
Solaris 9EA CD's and lofiadm to setup a Jumpstart server. This is because
Slice 0 on the CD's no longer contains a copy of the miniroot, which is
instead located only on Slice 1 (Under Sol8 and earlier it was on both).

I've created some instructions which allow you to split out slice 1 into a
different image, mount it with lofiadm, and setup Jumpstart using it.

It's available at :
http://www.docbert.org/Solaris/Jumpstart/Sol9/Sol9EA-iso.html

Scott.

Richard L. Hamilton

unread,
Jan 21, 2002, 9:54:03 AM1/21/02
to
In article <a2bji0$669$1...@isdserv3.macquarie.com.au>,

Very helpful; thanks. But I'm lazy (and probably not the only one),
so I wrote a program to do it all for you. C source is attached.
Compile should be very straightforward:
gcc imgslice.c -o imgslice
(will only compile on SPARC; probably not needed on x86 anyway)

Given the command

imgslice imagefile

(using Solaris 8 FCS image as an example), the output is

CD-ROM Disc for SunOS Solaris Installation
Slice Nr Starting Blk Nr Nr Blks
0 0 1070720
1 1070720 154240
2 1224960 3200
3 1228160 3200
4 1231360 3200
5 1234560 3200


If one also uses a "-c" option, it also issues the commands:

dd bs=512 if=imagefile of=imagefile-s1 skip=1070720 count=154240
dd bs=512 if=imagefile of=imagefile-s2 skip=1224960 count=3200
dd bs=512 if=imagefile of=imagefile-s3 skip=1228160 count=3200
dd bs=512 if=imagefile of=imagefile-s4 skip=1231360 count=3200
dd bs=512 if=imagefile of=imagefile-s5 skip=1234560 count=3200

(no need to copy the slice starting at block 0)

One could then use lofiadm to make imagefile and imagefile-s1 available,
and mount them read-only as needed.

If someone has a chance to try it out on the Solaris 9 EA image,
please let me know if it works ok.

--
mailto:rlh...@mindwarp.smart.net http://www.smart.net/~rlhamil

imgslice.c

Chris Morgan

unread,
Jan 21, 2002, 11:09:17 AM1/21/02
to
rlh...@smart.net (Richard L. Hamilton) writes:

> Very helpful; thanks. But I'm lazy (and probably not the only one),
> so I wrote a program to do it all for you.

This seems to be the virtuous form of laziness e.g. like in Larry
Wall's statement that the three virtues of good programmers are
laziness impatience and hubris :)
--
Chris Morgan <cm at mihalis.net> http://www.mihalis.net
Temp sig. - Enquire within

Richard L. Hamilton

unread,
Jan 22, 2002, 2:54:44 AM1/22/02
to
In article <87r8oj4...@tweety.mihalis.net>,

Chris Morgan <c...@mihalis.net> writes:
> rlh...@smart.net (Richard L. Hamilton) writes:
>
>> Very helpful; thanks. But I'm lazy (and probably not the only one),
>> so I wrote a program to do it all for you.
>
> This seems to be the virtuous form of laziness e.g. like in Larry
> Wall's statement that the three virtues of good programmers are
> laziness impatience and hubris :)

Keep saying such nice things and I'll feel guilty about having gone
for a quick rather than an efficient solution (could add range checks
to ensure slices are within the image, and a much more efficient way
of copying the 2nd and subsequent slices out, like in internal
mmap-based function).

Richard L. Hamilton

unread,
Jan 22, 2002, 4:07:39 PM1/22/02
to
In article <u4q6m4...@corp.supernews.com>,

rlh...@smart.net (Richard L. Hamilton) writes:
> In article <87r8oj4...@tweety.mihalis.net>,
> Chris Morgan <c...@mihalis.net> writes:
>> rlh...@smart.net (Richard L. Hamilton) writes:
>>
>>> Very helpful; thanks. But I'm lazy (and probably not the only one),
>>> so I wrote a program to do it all for you.
>>
>> This seems to be the virtuous form of laziness e.g. like in Larry
>> Wall's statement that the three virtues of good programmers are
>> laziness impatience and hubris :)
>
> Keep saying such nice things and I'll feel guilty about having gone
> for a quick rather than an efficient solution (could add range checks
> to ensure slices are within the image, and a much more efficient way
> of copying the 2nd and subsequent slices out, like in internal
> mmap-based function).

Guilt won out. Here's a version with those improvements, and more
detailed error messages.

imgslice.c

Chris Morgan

unread,
Jan 23, 2002, 8:32:10 PM1/23/02
to
rlh...@smart.net (Richard L. Hamilton) writes:

> >> This seems to be the virtuous form of laziness e.g. like in Larry
> >> Wall's statement that the three virtues of good programmers are
> >> laziness impatience and hubris :)
> >
> > Keep saying such nice things and I'll feel guilty about having gone
> > for a quick rather than an efficient solution (could add range checks
> > to ensure slices are within the image, and a much more efficient way
> > of copying the 2nd and subsequent slices out, like in internal
> > mmap-based function).
>
> Guilt won out. Here's a version with those improvements, and more
> detailed error messages.

Oh no, you're making me feel bad now, and I haven't got a program to
offer!

Guess I'll have to try to answer some newbie questions or
something...

Chris

0 new messages