creatingpart.xml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <sect1 id="ch03-creatingpart">
  2. <title>Creating a new partition</title>
  3. <?dbhtml filename="creatingpart.html" dir="chapter03"?>
  4. <para>In order to build our new Linux system, we will need some space:
  5. an empty disk partition. If you don't have a free partition, and no room
  6. on any of your hard disks to make one, then you could build LFS on the
  7. same partition as the one on which your current distribution is installed.
  8. This procedure is not recommended for your first LFS install, but if you
  9. are short on disk space, and you feel brave, take a look at the hint at
  10. <ulink url="&hints-root;lfs_next_to_existing_systems.txt"/>.</para>
  11. <para>For a minimal system you will need a partition of around 1.2 GB.
  12. This is enough to store all the source tarballs and compile all the packages.
  13. But if you intend to use the LFS system as your primary Linux system, you
  14. will probably want to install additional software, and will need more space
  15. than this, probably around 2 or 3 GB.</para>
  16. <para>As we almost never have enough RAM in our box, it is a good idea to
  17. use a small disk partition as swap space -- this space is used by the kernel
  18. to store seldom-used data to make room in memory for more urgent stuff.
  19. The swap partition for your LFS system can be the same one as for your host
  20. system, so you won't have to create another if your host system already uses
  21. a swap partition.</para>
  22. <para>Start a disk partitioning program such as <userinput>cfdisk</userinput>
  23. or <userinput>fdisk</userinput> with an argument naming the hard disk upon
  24. which the new partition must be created -- for example
  25. <filename>/dev/hda</filename> for the primary IDE disk. Create a Linux native
  26. partition and a swap partition, if needed. Please refer to the man pages of
  27. <userinput>cfdisk</userinput> or <userinput>fdisk</userinput> if you don't yet
  28. know how to use the programs.</para>
  29. <para>Remember the designation of your new partition -- something like
  30. <filename>hda5</filename>. This book will refer to it as the LFS partition.
  31. If you (now) also have a swap partition, remember its designation too. These
  32. names will later be needed for the <filename>/etc/fstab</filename> file.</para>
  33. </sect1>