creatingpart.xml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <sect1 id="ch04-creatingpart">
  2. <title>Creating a new partition</title>
  3. <para>
  4. First, let me tell you that it is possible to build LFS on only one partition,
  5. which is where your original distribution is installed. This is not recommended
  6. if it is the first time you try LFS, but may be useful if you are short on disk
  7. space. If you feel brave, take a look at the one partition hint at
  8. <ulink
  9. url="http://archive.linuxfromscratch.org/lfs-hints/one-partition-hint.txt">
  10. http://archive.linuxfromscratch.org/lfs-hints/one-partition-hint.txt</ulink>.
  11. </para>
  12. <para>
  13. Before we can build our new Linux system, we need to have an empty Linux
  14. partition on which we can build our new system. I recommend a partition size
  15. of at least 750 MB. This gives enough space to store all the tarballs and
  16. to compile all packages without worrying about running out of the necessary
  17. temporary disk space. But you probably want more space than that if you
  18. plan to use the LFS system as your primary Linux system. If that's the
  19. case you'd want more space so you can install additional software. If a
  20. Linux Native partition is already available, this subsection can be skipped.
  21. </para>
  22. <para>
  23. The cfdisk program (or another fdisk like program you prefer)) is
  24. started with the appropriate hard disk as the option (like /dev/hda if a
  25. new partition is to be created on the primary master IDE disk). It is used
  26. to create a Linux Native partition, write the partition table and exit the
  27. cfdisk program. Please refer to the documentation that comes with your
  28. fdisk program of choice (the man pages are often a good place to start)
  29. and read the procedures about how to create a new Linux native
  30. partition and how to write the partition table.
  31. </para>
  32. <para>
  33. The new partition's designation should be remembered. It
  34. could be something like hda11. This newly created partition will be
  35. referred to as the LFS partition in this book.
  36. </para>
  37. </sect1>