[3f8be484] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
| 8 | <sect1 id="ch-partitioning-creatingpartition">
|
---|
| 9 | <?dbhtml filename="creatingpartition.html"?>
|
---|
| 10 |
|
---|
| 11 | <title>Creating a New Partition</title>
|
---|
| 12 |
|
---|
[a266616] | 13 | <para os="a">Like most other operating systems, CLFS is usually installed
|
---|
| 14 | on a dedicated partition. The recommended approach to building a CLFS
|
---|
[3f8be484] | 15 | system is to use an available empty partition or, if you have enough
|
---|
[a266616] | 16 | unpartitioned space, to create one. However, if your building for a different
|
---|
| 17 | architecture you can simply build everyting in <quote>/mnt/clfs</quote>
|
---|
| 18 | and transfer it to your target machine.</para>
|
---|
[3f8be484] | 19 |
|
---|
[a266616] | 20 | <para os="b">A minimal system requires around 1.5 gigabytes (GB).
|
---|
[3f8be484] | 21 | This is enough to store all the source tarballs and compile the packages.
|
---|
[a8f30b25] | 22 | However, if the CLFS system is intended to be the primary Linux system,
|
---|
[3f8be484] | 23 | additional software will probably be installed which will require
|
---|
[fb40919] | 24 | additional space (2-3 GB). The CLFS system itself will not take up this
|
---|
[3f8be484] | 25 | much room. A large portion of this requirement is to provide sufficient
|
---|
| 26 | free temporary storage. Compiling packages can require a lot of disk space
|
---|
| 27 | which will be reclaimed after the package is installed.</para>
|
---|
| 28 |
|
---|
| 29 | <para os="c">Because there is not always enough Random Access Memory (RAM)
|
---|
| 30 | available for compilation processes, it is a good idea to use a small disk
|
---|
| 31 | partition as swap space. This is used by the kernel to store seldom-used
|
---|
| 32 | data and leave more memory available for active processes. The swap
|
---|
[fb40919] | 33 | partition for an CLFS system can be the same as the one used by the host
|
---|
[3f8be484] | 34 | system, in which case it is not necessary to create another one.</para>
|
---|
| 35 |
|
---|
| 36 | <para os="d">Start a disk partitioning program such as <command>cfdisk</command>
|
---|
| 37 | or <command>fdisk</command> with a command line option naming the hard
|
---|
| 38 | disk on which the new partition will be created—for example
|
---|
| 39 | <filename class="devicefile">/dev/hda</filename> for the primary
|
---|
| 40 | Integrated Drive Electronics (IDE) disk. Create a Linux native partition
|
---|
| 41 | and a swap partition, if needed. Please refer to
|
---|
| 42 | <filename>cfdisk(8)</filename> or <filename>fdisk(8)</filename> if you
|
---|
| 43 | do not yet know how to use the programs.</para>
|
---|
| 44 |
|
---|
| 45 | <para os="e">Remember the designation of the new partition (e.g.,
|
---|
| 46 | <filename class="devicefile">hda5</filename>). This book will refer to
|
---|
[a8f30b25] | 47 | this as the CLFS partition. Also remember the designation of the swap
|
---|
[3f8be484] | 48 | partition. These names will be needed later for the
|
---|
| 49 | <filename>/etc/fstab</filename> file.</para>
|
---|
| 50 |
|
---|
| 51 | </sect1>
|
---|