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