| 12345678910111213141516171819202122232425262728293031323334353637383940414243 | <sect1 id="ch04-creatingpart"><title>Creating a new partition</title><?dbhtml filename="creatingpart.html" dir="chapter04"?><para>It is possible to build LFS on only one partition - the partitionin which your original distribution is installed. While this is notrecommended for your first LFS installation, it may be useful if youare short on disk space. If you feel brave, take a look at the<emphasis>Install LFS next to existing systems on the samepartition</emphasis> hint at <ulinkurl="&hints-root;lfs_next_to_existing_systems.txt"/>.</para><para>Before we can build our new Linux system, we need an emptyLinux partition where we can build it. We recommend a partition sizeof at least 1 GB. This provides enough space to store the tarballs andcompile all of the packages. You will probably need more space if youintend to install additional software and use the LFS system as yourprimary Linux system. If a Linux native partition is already available,this subsection can be skipped.</para><para>Since your system memory can only hold a limited amount of dataat one time, we recommend that disk space be set aside for swap files.A swap file is a place where items in memory may be stored until theyare called for. This disk space may be shared between your host systemand your LFS system. If you already have a swap partition, then youprobably don't need to create another one. Otherwise, you should createa swap partition via an fdisk program. Regardless, you need to rememberthe designation of the swap partition (such as hda2) as it will be neededwhen we create the <filename>/etc/fstab</filename> file.</para><para>The cfdisk program (or another fdisk-like program) should bestarted with the appropriate hard disk as the argument (like /dev/hdaif a new partition is to be created on the primary master IDE disk).Using this program, create a Linux native partition. Please refer tothe documentation of your fdisk program (the man pages are often agood place to start) for information about creating Linux nativepartitions and writing partition tables.</para><para>The designation of your new partition should be remembered.It might be something similar to hda11. This newly created partitionwill be referred to as the LFS partition in this book.</para></sect1>
 |