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