reboot.xml 1.8 KB

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