[d784602] | 1 | <sect1 id="ch09-reboot">
|
---|
[5ba7054] | 2 | <title>Rebooting the system</title>
|
---|
[e12115e] | 3 | <?dbhtml filename="reboot.html" dir="chapter09"?>
|
---|
[5ba7054] | 4 |
|
---|
[50b7320] | 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>
|
---|
[5ba7054] | 8 |
|
---|
[4a7a683] | 9 | <para><screen><userinput>umount $LFS/proc
|
---|
[3ddb615] | 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 |
|
---|
[4a7a683] | 15 | <para><screen><userinput>umount $LFS/proc
|
---|
| 16 | umount $LFS/usr
|
---|
| 17 | umount $LFS/home
|
---|
[3ddb615] | 18 | umount $LFS</userinput></screen></para>
|
---|
[5ba7054] | 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>
|
---|
[de7df31] | 36 |
|
---|
[5ba7054] | 37 | <para>Either way, run the following to make the lilo version installed
|
---|
| 38 | on LFS active:</para>
|
---|
[de7df31] | 39 |
|
---|
[5ba7054] | 40 | <para><screen><userinput>/sbin/lilo</userinput></screen></para>
|
---|
[de7df31] | 41 |
|
---|
[0c7e1dcb] | 42 | <para>You may now remove the stage1 directory. If you think you may
|
---|
[26e62aa] | 43 | need to redo Chapter 5, then you may wish to backup the directory before
|
---|
[0c7e1dcb] | 44 | removing it. To remove the stage1 directory, type the following
|
---|
[fde5bc7] | 45 | command:</para>
|
---|
| 46 |
|
---|
[0c7e1dcb] | 47 | <para><screen><userinput>rm -rf /stage1</userinput></screen></para>
|
---|
[fde5bc7] | 48 |
|
---|
[5ba7054] | 49 | </sect1>
|
---|