creatingpart.xml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <sect1 id="ch04-creatingpart">
  2. <title>Creating a new partition</title>
  3. <?dbhtml filename="creatingpart.html" dir="chapter04"?>
  4. <para>It is possible to build LFS on only one partition - the partition
  5. in which your original distribution is installed. While this is not
  6. recommended for your first LFS installation, it may be useful if you
  7. are short on disk space. If you feel brave, take a look at the
  8. <emphasis>Install LFS next to existing systems on the same
  9. partition</emphasis> hint at <ulink
  10. url="&hints-root;lfs_next_to_existing_systems.txt"/>.</para>
  11. <para>Before we can build our new Linux system, we need an empty
  12. Linux partition where we can build it. We recommend a partition size
  13. of at least 1 GB. This provides enough space to store the tarballs and
  14. compile all of the packages. You will probably need more space if you
  15. intend to install additional software and use the LFS system as your
  16. primary Linux system. If a Linux Native partition is already available,
  17. this subsection can be skipped.</para>
  18. <para>Since your system memory can only hold a limited amount of data
  19. at one time, we recommend that disk space be set aside for swap files.
  20. A swap file is a place where items in memory may be stored until they
  21. are called for. This disk space may be shared between your host system
  22. and your LFS system. If you already have a swap partition, then you
  23. probably don't need to create another one. Otherwise, you should create
  24. a swap partition via an fdisk program. Regardless, you need to remember
  25. the designation of the swap partition (such as hda2) as it will be needed
  26. when we create the <filename>/etc/fstab</filename> file.</para>
  27. <para>The cfdisk program (or another fdisk-like program) should be
  28. started with the appropriate hard disk as the argument (like /dev/hda
  29. if a new partition is to be created on the primary master IDE disk).
  30. Using this program, create a Linux Native partition. Please refer to
  31. the documentation of your fdisk program (the man pages are often a
  32. good place to start) for information about creating Linux native
  33. partitions and writing partition tables.</para>
  34. <para>The designation of your new partition should be remembered.
  35. It might be something similar to hda11. This newly created partition
  36. will be referred to as the LFS partition in this book.</para>
  37. </sect1>