Talk Root - PC Hardware, Software and Web Development forums

Go Back   Talk Root - PC Hardware, Software and Web Development forums > Operating Systems > Solaris Discussion

Solaris Discussion Discuss Solaris programming, networking, security, and more.


Welcome to the Talk Root - PC Hardware, Software and Web Development forums. Are you a programmer, web developer, IT guy or a computer guru? We invite you to join our forums and participate in friendly discussion. It doesn't matter your skill level, we are here to help everyone.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.
Sponsored Links
Reply
 
LinkBack Thread Tools Rate Thread
Old 12-17-2003, 09:34 PM   #1
Sunny
 
Posts: n/a
Re: Creating bootable CD for Solaris 8 x86

Bump... no further interest?

Sunny wrote:

>
>
> Sunny wrote:
>
>>
>>
>> Beezer wrote:
>>
>>> Sunny wrote...
>>>
>>>
>>>>> Thanks Sunny, I already saw this doc, but unfortunately it's for Sparc
>>>>> platforms, the CD structure for Intel is different I believe...
>>>>
>>>>
>>>>
>>>> Doh! Of course, it has to be El Torito... think before posting, Sunny!
>>>>
>>>> You'll need a copy of the El Torito specification (easily googled),
>>>> and a hex editor so you can analyse sector 17 and the boot catalog
>>>> to see how the Sun CD works. The techniques outlined in the
>>>> Blueprint should still be applicable for customising the boot slice
>>>> behavior, but assembling the components into an image will need to
>>>> follow El Torito specs.
>>>>
>>>> This is an interesting project... wish I had time for it :-(
>>>
>>>
>>>
>>>
>>> Wish I had time as well ;-)
>>>
>>> What puzzles me is why my CD doesn't work, when all I've done is dd
>>> bits off the SunCD and reassemble them. I think I must be missing
>>> something...

>>
>>
>>
>> You are, or rather your CD is - it's the first 512 bytes of sector 0
>>
>> I took a look at sector 17 today. The boot catalog specifies no
>> emulation, just load 4 sectors starting at the beginning of sector 0 -
>> but when you dd s1, (or s2 for that matter) it skips the first 512
>> bytes of sector 0. On the other hand, dd of s0 gets everything.
>>
>> If I grab the first 512 bytes of sector 0 using CDRWIN on Windows, and
>> prepend it to copies of s1 and s0 obtained with dd, the resulting CD
>> is a bootable copy of the original.
>>
>> I don't understand why dd skips the first block when it wasn't told to
>> (thereby throwing the whole CD off by 512 bytes and rendering it
>> nonbootable), and I haven't yet found a way to extract those bytes on
>> Solaris. Pointing dd at the raw device made no difference...
>>
>> Anyone?

>
>
> I successfully built and installed from a modified Software 1 of 2 CD
> with embedded flash archive today :-) ... but I lost my main Sol9 x86
> installation (and most of my notes) in the process - see my post
> "suninstall gets root disk wrong" for the unfortunate details :-(
>
> The procedure is pretty much as described in the Sun Blueprint for
> building a bootable installation from CD on Sparc, except for the need
> to tell mkisofs to do the El Torito stuff and fix the mess it makes when
> you do.
>
> I used cpio to take s1 off the original CD, deleted the Product
> directory to make room, then customised .install_config for jumpstart
> installation of the flash archive (which I also stored in .install_config)
>
> mkisofs arguments to rebuild s1 were:
>
> mkisofs -no-emul-boot -boot-load-seg 0 -boot-load-size 4 -G bootseg -f
> -b .bootimage -c .catalog -d -L -l -N -p Sunny -P Sunny -o
> sol9x86_803.s1 s1
>
> Where bootseg is a file containing sectors 0 thru 16 from the original
> CD. I still haven't figured out how to extract these on Solaris, so I
> grabbed them on Windows.
>
> mkisofs insists on a boot image (-b .bootimage), despite having been
> told we want no emulation and given the load segment and sector count.
> It then proceeds to point the boot catalog at the boot image instead of
> the load segment, which has to be fixed with a hex editor later. I
> suspect Sun had the same problem when they built the original CD, as
> .bootimage exists at the root of the original, and is a 1.44MB (floppy
> sized) file containing nothing but nulls.
>
> With any luck I'll be able to repeat today's results, despite the loss
> of my notes, once I rebuild my installation - in which case I'll post a
> complete recipe.
>
> Still hoping someone can suggest how to read raw sectors off the
> original CD from Solaris... I'd prefer the final recipe not require the
> use of Windows tools :-) Life would also be easier if mkisofs could
> somehow be convinced to point the boot catalog at the specified load
> segment. Any ideas?
>


 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 12-18-2003, 11:13 AM   #2
Phil Brown
 
Posts: n/a
Re: Creating bootable CD for Solaris 8 x86

On Wed, 17 Dec 2003 23:34:54 -0500, Sunny wrote:

> Bump... no further interest?
> ..... [much snippage]
>
>> Still hoping someone can suggest how to read raw sectors off the
>> original CD from Solaris... I'd prefer the final recipe not require the
>> use of Windows tools :-) Life would also be easier if mkisofs could
>> somehow be convinced to point the boot catalog at the specified load
>> segment. Any ideas?
>>



I'm very interested.... but all I know to tell you is that "readcd", part of
the cdrecord toolset, should be able to read the raw cd image.

 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-25-2004, 06:15 AM   #3
Bob Tandy
Registered User
 
Join Date: Feb 2004
Posts: 4
I can only see the "edited highlights" of this thread (the Re: part) so I must be missing something.... I've also been using:
http://www.ergon.ch/mitarbeiter/Oesch/bootSolarisX86/
but with no success - fails to find boot.bin. The CD image I produced only has partitions 0 and 2 (identical) rather than the three on original, and p0 holds the content I was expecting for p1.

I have also tried to access the cdrtools mentioned elsewhere in this forum to get hold of README.sunx86boot but no luck there either.

Does anyone have a working set of commands they let me have.

For the record, I'm working with Solaris 8 2/02 and I wish to modify:
sysidcfg - no bootp/NIS server
rcS - additional boot line args
removing packages
.install_config - start/finish scripts
.profind
Bob Tandy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-07-2004, 08:32 AM   #4
Chris Love
Registered User
 
Join Date: Apr 2004
Posts: 1
I've followed the procedure from the www.ergon.ch site successfully for Solaris 8 02/02.

One key is that the "magic number" used in computing the padding size will vary between revs of the Solaris CD. You can find it using the 'disktype' utility he mentions.

For Solaris 8 02/02 it was 788480 (1 more than the sector count of partition1->partition1).

The commands I used for building the iso:

( cd news1; mkisofs -no-emul -r -b boot.img -c .catalog -o ../news1.img .)
PADDING=`ls -l news1.img | awk '{print 788480 -($5/512)}'`
dd if=p0firstBlocks > ./newsol8.iso
dd if=news1.img skip=64 >> ./newsol8.iso
dd if=/dev/zero count=${PADDING} >> ./newsol8.iso
dd if=s0 >> ./newsol8.iso
dd if=/dev/zero count=600 >> ./newsol8.iso
Chris Love is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Reply


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 08:06 AM.


Sponsors
Banner Best Deals 24x7 @ Geeks.com!
Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.0.0 RC8
vB Ad Management by =RedTyger=
© 2006 TalkRoot.com -