1 | <sect1 id="ch04-creatingpart">
|
---|
2 | <title>Creating a new partition</title>
|
---|
3 | <?dbhtml filename="creatingpart.html" dir="chapter04"?>
|
---|
4 |
|
---|
5 | <para>It is possible to build LFS on only one partition - the partition
|
---|
6 | in which your original distribution is installed. While this is not
|
---|
7 | recommended for your first LFS installation, it may be useful if you
|
---|
8 | are short on disk space. If you feel brave, take a look at the
|
---|
9 | <emphasis>Install LFS next to existing systems on the same
|
---|
10 | partition</emphasis> hint at <ulink
|
---|
11 | url="&hints-root;lfs_next_to_existing_systems.txt"/>.</para>
|
---|
12 |
|
---|
13 | <para>Before we can build our new Linux system, we need an empty
|
---|
14 | Linux partition where we can build it. We recommend a partition size
|
---|
15 | of at least 1 GB. This provides enough space to store the tarballs and
|
---|
16 | compile all of the packages. You will probably need more space if you
|
---|
17 | intend to install additional software and use the LFS system as your
|
---|
18 | primary Linux system. If a Linux native partition is already available,
|
---|
19 | this subsection can be skipped.</para>
|
---|
20 |
|
---|
21 | <para>Since your system memory can only hold a limited amount of data
|
---|
22 | at one time, we recommend that disk space be set aside for swap files.
|
---|
23 | A swap file is a place where items in memory may be stored until they
|
---|
24 | are called for. This disk space may be shared between your host system
|
---|
25 | and your LFS system. If you already have a swap partition, then you
|
---|
26 | probably don't need to create another one. Otherwise, you should create
|
---|
27 | a swap partition via an fdisk program. Regardless, you need to remember
|
---|
28 | the designation of the swap partition (such as hda2) as it will be needed
|
---|
29 | when we create the <filename>/etc/fstab</filename> file.</para>
|
---|
30 |
|
---|
31 | <para>The cfdisk program (or another fdisk-like program) should be
|
---|
32 | started with the appropriate hard disk as the argument (like /dev/hda
|
---|
33 | if a new partition is to be created on the primary master IDE disk).
|
---|
34 | Using this program, create a Linux native partition. Please refer to
|
---|
35 | the documentation of your fdisk program (the man pages are often a
|
---|
36 | good place to start) for information about creating Linux native
|
---|
37 | partitions and writing partition tables.</para>
|
---|
38 |
|
---|
39 | <para>The designation of your new partition should be remembered.
|
---|
40 | It might be something similar to hda11. This newly created partition
|
---|
41 | will be referred to as the LFS partition in this book.</para>
|
---|
42 |
|
---|
43 | </sect1>
|
---|