1 | <sect1 id="ch09-reboot">
|
---|
2 | <title>Rebooting the system</title>
|
---|
3 | <?dbhtml filename="reboot.html" dir="chapter09"?>
|
---|
4 |
|
---|
5 | <para>Now that all of the software has been installed, it's time to reboot
|
---|
6 | the computer. Before we reboot, let's unmount $LFS/proc and the LFS
|
---|
7 | partition itself by running:</para>
|
---|
8 |
|
---|
9 | <para><screen><userinput>umount $LFS/proc &&
|
---|
10 | umount $LFS</userinput></screen></para>
|
---|
11 |
|
---|
12 | <para>If you decided to create multiple partitions, you need to umount the
|
---|
13 | other partitions before you umount $LFS, like this:</para>
|
---|
14 |
|
---|
15 | <para><screen><userinput>umount $LFS/proc &&
|
---|
16 | umount $LFS/usr &&
|
---|
17 | umount $LFS/home &&
|
---|
18 | umount $LFS</userinput></screen></para>
|
---|
19 |
|
---|
20 | <para>And you can reboot your system by running something like:</para>
|
---|
21 |
|
---|
22 | <para><screen><userinput>/sbin/shutdown -r now</userinput></screen></para>
|
---|
23 |
|
---|
24 | <para>At the LILO: prompt make sure that you tell it to boot
|
---|
25 | <emphasis>lfs</emphasis> and not the default entry which will boot your
|
---|
26 | host system again.</para>
|
---|
27 |
|
---|
28 | <para>After you have rebooted, your LFS system is ready for use and you
|
---|
29 | can start adding your own software.</para>
|
---|
30 |
|
---|
31 | <para>One final thing you may want to do is run lilo, now that you are
|
---|
32 | booted into LFS. This way you will put the LFS version of LILO in the MBR
|
---|
33 | rather than the one that's there right now from your host system.
|
---|
34 | Depending on how old your host distribution is, the LFS version may have
|
---|
35 | more advanced features you need/could use.</para>
|
---|
36 |
|
---|
37 | <para>Either way, run the following to make the lilo version installed
|
---|
38 | on LFS active:</para>
|
---|
39 |
|
---|
40 | <para><screen><userinput>/sbin/lilo</userinput></screen></para>
|
---|
41 |
|
---|
42 | <para>You may now remove the static directory. If you think you may
|
---|
43 | need to redo Chapter 5, then you may wish to backup the directory before
|
---|
44 | removing it. To remove the static directory, type the following
|
---|
45 | command:</para>
|
---|
46 |
|
---|
47 | <para><screen><userinput>rm -rf /static</userinput></screen></para>
|
---|
48 |
|
---|
49 | </sect1>
|
---|