Bug #298 ยป boot-chapter.diff
chapter.sgml 24 Aug 2006 20:08:42 -0000 | ||
---|---|---|
<para>The options you can give to the components in the &os;
|
||
bootstrap to control the boot process.</para>
|
||
</listitem>
|
||
|
||
<listitem>
|
||
<para>The basics of &man.device.hints.5;.</para>
|
||
</listitem>
|
||
</itemizedlist>
|
||
<note>
|
||
... | ... | |
case the boot manager usually has more code in the first
|
||
<emphasis>track</emphasis> of the disk or within some OS's file system.
|
||
(A boot manager is sometimes also called a <emphasis>boot
|
||
loader</emphasis>, but FreeBSD uses that term for a later stage of
|
||
loader</emphasis>, but &os; uses that term for a later stage of
|
||
booting.) Popular boot managers include <application>boot0</application>
|
||
(a.k.a. <application>Boot Easy</application>, the standard &os; boot
|
||
manager), <application>Grub</application>,
|
||
... | ... | |
<application>boot0</application> and <application>LILO</application>.</para>
|
||
<formalpara><title>The <application>boot0</application> Boot Manager:</title>
|
||
<para>The MBR installed by FreeBSD's installer or &man.boot0cfg.8;, by
|
||
<para>The MBR installed by &os;'s installer or &man.boot0cfg.8;, by
|
||
default, is based on <filename>/boot/boot0</filename>.
|
||
(The <application>boot0</application> program is very simple, since the
|
||
program in the <abbrev>MBR</abbrev> can only be 446 bytes long because of the slice
|
||
... | ... | |
<example id="boot-boot0-example">
|
||
<title><filename>boot0</filename> Screenshot</title>
|
||
<!-- todo: reed: what should be here? -->
|
||
<screen>F1 DOS
|
||
F2 FreeBSD
|
||
F2 DF/FBSD
|
||
F3 Linux
|
||
F4 ??
|
||
F5 Drive 1
|
||
... | ... | |
<indexterm><primary>loader</primary></indexterm>
|
||
<indexterm><primary>loader configuration</primary></indexterm>
|
||
<!-- XXX talk about the boot menu -->
|
||
<para>The loader will then read
|
||
<filename>/boot/loader.rc</filename>, which by default reads
|
||
in <filename>/boot/defaults/loader.conf</filename> which
|
||
... | ... | |
on these variables, loading whichever modules and kernel are
|
||
selected.</para>
|
||
<para>Finally, by default, the loader issues a 10 second wait
|
||
for key presses, and boots the kernel if it is not interrupted.
|
||
If interrupted, the user is presented with a prompt which
|
||
understands the easy-to-use command set, where the user may
|
||
adjust variables, unload all modules, load modules, and then
|
||
finally boot or reboot.</para>
|
||
<para>Finally, by default, the loader will show you the booting
|
||
menu where you can select different options. This menu issues
|
||
a 10 second wait for key presses, and boots the kernel if it
|
||
is not interrupted. If the user selects
|
||
<option>"Escape to loader prompt"</option>, the user is presented
|
||
with a prompt which understands the easy-to-use command set,
|
||
where the user may adjust variables, unload all modules,
|
||
load modules, and then finally boot or reboot.</para>
|
||
</sect3>
|
||
|
||
... | ... | |
<indexterm><primary>single-user mode</primary></indexterm>
|
||
<listitem>
|
||
<para>To simply boot your usual kernel, but in single-user
|
||
mode:</para>
|
||
<screen><userinput>boot -s</userinput></screen>
|
||
mode you can select the <option>"Boot DragonFly in single user mode"</option>.</para>
|
||
</listitem>
|
||
<listitem>
|
||
... | ... | |
<screen><userinput>unload</userinput>
|
||
<userinput>load <replaceable>kernel.old</replaceable></userinput></screen>
|
||
<para>You can use <filename>kernel.GENERIC</filename> to
|
||
refer to the generic kernel that comes on the install
|
||
disk, or <filename>kernel.old</filename> to refer to
|
||
<para>You can use <filename>kernel.old</filename> to refer to
|
||
your previously installed kernel (when you have upgraded
|
||
or configured your own kernel, for example).</para>
|
||
... | ... | |
|
||
<para>This mode can be reached through the <link
|
||
linkend="boot-autoreboot">automatic reboot
|
||
sequence</link>, or by the user booting with the
|
||
<option>-s</option> option or setting the
|
||
<envar>boot_single</envar> variable in
|
||
<command>loader</command>.</para>
|
||
sequence</link>, with the
|
||
<option>"Boot DragonFly in single user mode"</option>
|
||
menu option, by the user booting with the
|
||
<option>-s</option> option from the loader prompt or setting the
|
||
<envar>boot_single</envar> variable in
|
||
<command>loader</command>.</para>
|
||
<para>It can also be reached by calling
|
||
&man.shutdown.8; without the reboot
|