source: BOOK/bootable/x86/grub.xml@ 0451a7a

clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 0451a7a was 6345f19, checked in by William Harrington <kb0iic@…>, 12 years ago

Update the x86 books at the make the system bootable with grub section.

  • 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 <warning os="w1">
[3f8be484]32 <para>The following command will overwrite the current boot loader.
33 Do not run the command if this is not desired, for example, if using
34 a third party boot manager to manage the Master Boot Record (MBR).
35 In this scenario, it would make more sense to install GRUB into the
[fb40919]36 <quote>boot sector</quote> of the CLFS partition. In this case, this
[4e60ea5]37 next command would become <userinput>grub-install /dev/sda2</userinput>
38 .</para>
[3f8be484]39 </warning>
40
[4e60ea5]41 <para os="e">Instruct GRUB to install itself int othe MBR of
42 <filename class="partition">sda</filename>:</para>
[3f8be484]43
[4e60ea5]44<screen os="f"><userinput>grub-install /dev/sda</userinput></screen>
[3f8be484]45
[6345f19]46 <para os="c">Next, we need to generate a configuration for GRUB.
47 In previous versions of grub we could create the configuration manually
48 here, but with GRUB2 we can generate <filename>grub.cfg</filename>
49 automatically. You can do this with the following command:</para>
50
51<screen os="d"><userinput>grub-mkconfig -o /boot/grub/grub.cfg</userinput></screen>
52
[3f8be484]53</sect1>
Note: See TracBrowser for help on using the repository browser.