DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Starting and stopping the system

Where the boot programs reside

A computer with a single hard disk can support multiple operating systems, but not in the same space on that disk. When you install your system, you have the choice of using all the space on your hard disk for a single operating system or dividing the hard disk into a maximum of four segments, called ``partitions.'' Each partition holds a separate operating system. Thus, for example, you can have three UNIX system partitions and one DOS partition. When you install UnixWare on a new machine, the default partitioning scheme is one partition which uses 100% of the disk.

The UnixWare partition of a hard disk is further subdivided into ``slices.'' Slices define filesystems, swap area(s), and dump partitions. The two slices of interest to the boot procedure are the boot and stand slices.

The boot slice

The boot slice is not a filesystem, but a special area of the disk that contains the boot programs. On most computers, the boot process is a three-step process that results in a load of the bootable operating system (/stand/unix).

Operations on the boot slice

The only operation performed on the boot slice is the loading of the boot programs; no filesystem is defined on this slice.

The stand slice

The bootable operating system unix is found in the stand slice. This slice has the boot filesystem (bfs) defined on it and contains all the bootable programs and data files used during the boot procedure. It can be identified, using the prtvtoc(1M) command, as the partition labeled V_STAND. The bfs defined on this partition is mounted by default as /stand.

The contents of /stand include the following:


unix
This is the bootable operating system. When the boot program is loaded, it searches for and loads this program into memory and then passes control to it. Once the bootable operating system is running, various system daemons are started, and the system enters one of several system states, sometimes called ``init states.'' (See the description of /etc/inittab under ``Early initialization''.) You can boot from another operating system kernel using the interactive boot feature to redefine the KERNEL boot parameter: see boot(4) for details.

Note that /unix is linked to /stand/unix, or whichever kernel was actually booted.


unix.old
Contains the old bootable operating system saved when a new kernel is built.

boot
Contains boot parameter definitions.

bootmsgs
Contains boot message parameter definitions.

logo.img
Contains a graphical image of the bootstrap logo.

help.txt
Contains the help message output by the BCP when you use the commands ? or help.

resmgr
Contains a copy of the resource manager database.

resmgr.sav
Contains a copy of the old resource manager database, saved when a new kernel is built.

*.blm
Contain the bootstrap loadable modules (BLMs).

In the delivered system, the stand slice contains a filesystem of type bfs; this boot filesystem is mounted as /stand by default.

The boot filesystem is a flat filesystem with only one directory. You can copy and move regular files to and from a boot filesystem, and use filesystem commands such as mount(1M), umount(2), and fsck(1M), but you cannot make directories or create other special files. We recommend you use this filesystem only for boot-related and configuration-related files.

If you want, you can use mkfs to create bfs-type filesystems on other disk partitions. (See ``Managing filesystem types'' and mkfs(1M) for more information.) Having multiple boot filesystems on one or more partitions is particularly useful in an operating system development environment.


CAUTION: You must define bfs-type filesystems only on hard disk partitions with a tag of stand. Do not make bfs-type filesystems on any other devices. Similarly, do not make a filesystem of any type other than bfs in a partition with a tag of stand. Doing so may render your computer unbootable. (See ``Managing filesystem types'', mkfs(1M), and prtvtoc(1M) for more information.)

The maximum size of a bfs filesystem is 128MB.


Although any disk can be made bootable, only one disk can be booted on powerup, and that is the default boot disk defined in non-volatile random-access memory (NVRAM). If you define multiple stand slices on the default boot disk, the one used during a reboot or powerup will be from the active partition.

The file /etc/vfstab contains the pathname of the stand slice to be mounted in single-user and multi-user states; it is used during configuration of a new operating system on powerup or reboot. This should always be the one defined on the lowest numbered partition on your default boot disk. The device name has the form /dev/dsk/c0b0t0d0sS, where S is the slice ID. (See intro(7) for details on device name notation.)


Next topic: Starting (rebooting) your system
Previous topic: Boot scenarios

© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 22 April 2004