source: BOOK/bootable/x86/grub.xml@ 2e4e2db

clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 2e4e2db was 8ab693a, checked in by Joe Ciccone <jciccone@…>, 14 years ago

Verify and cleanup the index on x86, x86_64, and x86_64-64.

  • Property mode set to 100644
File size: 2.3 KB
RevLine 
[3f8be484]1<?xml version="1.0" encoding="ISO-8859-1"?>
[aa18ac0]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[3f8be484]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-bootable-grub">
9 <?dbhtml filename="grub.html"?>
10
[fb40919]11 <title>Making the CLFS System Bootable</title>
[3f8be484]12
13 <indexterm zone="ch-bootable-grub">
14 <primary sortas="a-GRUB">GRUB</primary>
[8ab693a]15 <secondary>bootable</secondary>
[3f8be484]16 </indexterm>
17
[fb40919]18 <para os="a">Your shiny new CLFS system is almost complete. One of the last
[3f8be484]19 things to do is to ensure that the system can be properly booted. The
[4e60ea5]20 instructions below apply only to computers of x86 and x86_64 architecture,
[3f8be484]21 meaning mainstream PCs. Information on <quote>boot loading</quote> for
22 other architectures should be available in the usual resource-specific
23 locations for those architectures.</para>
24
25 <para os="b">Boot loading can be a complex area, so a few cautionary words
26 are in order. Be familiar with the current boot loader and any other
27 operating systems present on the hard drive(s) that need to be bootable.
28 Make sure that an emergency boot disk is ready to <quote>rescue</quote>
29 the computer if the computer becomes unusable (un-bootable).</para>
30
[4e60ea5]31 <para os="c">The first thing we need to do is generate a configuration for
32 GRUB. In previous versions of grub we could create the configuration manually
33 here, but with GRUB2 we can generate <filename>grub.cfg</filename>
34 automatically. You can do this with the following command:</para>
[3f8be484]35
[4e60ea5]36<screen os="d"><userinput>grub-mkconfig -o /boot/grub/grub.cfg</userinput></screen>
[3f8be484]37
[4e60ea5]38 <warning os="w1">
[3f8be484]39 <para>The following command will overwrite the current boot loader.
40 Do not run the command if this is not desired, for example, if using
41 a third party boot manager to manage the Master Boot Record (MBR).
42 In this scenario, it would make more sense to install GRUB into the
[fb40919]43 <quote>boot sector</quote> of the CLFS partition. In this case, this
[4e60ea5]44 next command would become <userinput>grub-install /dev/sda2</userinput>
45 .</para>
[3f8be484]46 </warning>
47
[4e60ea5]48 <para os="e">Instruct GRUB to install itself int othe MBR of
49 <filename class="partition">sda</filename>:</para>
[3f8be484]50
[4e60ea5]51<screen os="f"><userinput>grub-install /dev/sda</userinput></screen>
[3f8be484]52
53</sect1>
Note: See TracBrowser for help on using the repository browser.