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