Subversion Repositories svn LFS-FR


Rev 1177 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
 "" [
 <!ENTITY % general-entities SYSTEM "../../general.ent">

<sect1 id="ch-partitioning-creatingpartition">
  <?dbhtml filename="creatingpartition.html"?>

  <title>Creating a New Partition</title>

  <para os="a">Like most other operating systems, CLFS is usually installed
  on a dedicated partition. The recommended approach to building a CLFS
  system is to use an available empty partition or, if you have enough
  unpartitioned space, to create one. However, if you're building for a different
  architecture you can simply build everything in <quote>/mnt/clfs</quote>
  and transfer it to your target machine.</para>

  <para os="b">A minimal system requires around 2.5 gigabytes (GB).
  This is enough to store all the source tarballs and compile the packages. The CLFS
  system itself will not take up this much room. A large portion of this requirement
  is to provide sufficient free temporary storage. Compiling packages can require a
  lot of disk space which will be reclaimed after the package is installed. If the
  CLFS system is intended to be the primary Linux system,  additional software will
  probably be installed which will require additional space (2-10 GB). </para>

  <para os="c">Because there is not always enough Random Access Memory (RAM)
  available for compilation processes, it is a good idea to use a small disk
  partition as swap space. This is used by the kernel to store seldom-used
  data and leave more memory available for active processes. The swap
  partition for an CLFS system can be the same as the one used by the host
  system, in which case it is not necessary to create another one.</para>

  <para os="d">Start a disk partitioning program such as <command>cfdisk</command>
  or <command>fdisk</command> with a command line option naming the hard
  disk on which the new partition will be created&mdash;for example
  <filename class="devicefile">/dev/hda</filename> for the primary
  Integrated Drive Electronics (IDE) disk. Create a Linux native partition
  and a swap partition, if needed. Please refer to
  <filename>cfdisk(8)</filename> or <filename>fdisk(8)</filename> if you
  do not yet know how to use the programs.</para>

  <para os="e">Remember the designation of the new partition (e.g.,
  <filename class="devicefile">hda5</filename>). This book will refer to
  this as the CLFS partition. Also remember the designation of the swap
  partition. These names will be needed later for the
  <filename>/etc/fstab</filename> file.</para>