Re: installboot question

From: Andrew Gabriel (andrew_at_cucumber.demon.co.uk)
Date: 07/29/04


Date: 29 Jul 2004 15:30:13 GMT

In article <c279f81f.0407290651.724c39d@posting.google.com>,
        maxw_cc@yahoo.com (maxw_cc) writes:
> Hello to everybody!
>
> I have some confusion between the installboot command, bootblk and
> ufsboot programs and the UFS boot block.
>
> When I type the installboot command what does exactly happen?

It's a tiny shellscript - look at it (and/or its manpage).

> Does the installboot program fills up the BOOT BLOCK at cylinder group
> 0 of the specified slice with the bootblk program or with the ufsboot
> program?

No.

> What does it really mean 'The path to ufsboot is recorded in the
> bootblock', how this is implemented in practice?

It has burned in /platform/sun4u/ufsboot (or equivalent).

> Does the installboot program require that the specified slice
> previously contains an UFS filesytem on it?

Installboot probably doesn't, but the bootblock won't work until
you put a root filesystem in the same slice.

> I have read that the bootblk program resides on sectors 1-15, but if
> the installboot program 'installs' the bootblk program, why there is
> not a restriction that the specified slice should begin on cylinder 0
> of the boot-device?

OBP can boot from any slice on the disk. You can have different
Solaris releases installed in different slices if you want to.
The install CD actually has the bootblocks for different architecture
systems installed in different slices so one CD can boot any sparc
architecture supported by that release. (It also uses a trick to
direct them all to the same one root filesystem).

(Note, this whole area works quite differently on Solaris x86.)

-- 
Andrew Gabriel


Relevant Pages

  • Re: installboot question
    ... >> When I type the installboot command what does exactly happen? ... > contents of the ufsboot file into the boot block locations on the slice. ... the primary boot program (bootblk) and a secondary boot program ...
    (comp.unix.solaris)
  • Re: installboot question
    ... >> When I type the installboot command what does exactly happen? ... > contents of the ufsboot file into the boot block locations on the slice. ... the primary boot program (bootblk) and a secondary boot program ...
    (comp.sys.sun.admin)
  • Re: installboot question
    ... > When I type the installboot command what does exactly happen? ... > 0 of the specified slice with the bootblk program or with the ufsboot ... you put a root filesystem in the same slice. ... OBP can boot from any slice on the disk. ...
    (comp.unix.solaris)
  • installboot question
    ... ufsboot programs and the UFS boot block. ... When I type the installboot command what does exactly happen? ... Does the installboot program fills up the BOOT BLOCK at cylinder group ... of the specified slice with the bootblk program or with the ufsboot ...
    (comp.sys.sun.admin)
  • Re: installboot question
    ... >> Cylinder group 0 isn't relevant. ... When you boot a SPARC machine, ... The boot blocks on that slice are loaded. ... if installboot damages any of the filesystem ...
    (comp.unix.solaris)