[673b0d8] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[522b09f] | 2 | <!DOCTYPE section [
|
---|
[673b0d8] | 3 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 4 | %general-entities;
|
---|
| 5 | ]>
|
---|
[522b09f] | 6 | <section xmlns="http://docbook.org/docbook-ng"
|
---|
| 7 | xmlns:xlink="http://www.w3.org/1999/xlink"
|
---|
| 8 | xml:id="space-creatingpartition">
|
---|
[6a0e6f3] | 9 | <title>Creating a new partition</title>
|
---|
[673b0d8] | 10 | <?dbhtml filename="creatingpartition.html"?>
|
---|
| 11 |
|
---|
| 12 | <para>In order to build our new Linux system, we will need some space:
|
---|
| 13 | an empty disk partition. If you don't have a free partition, and no room
|
---|
| 14 | on any of your hard disks to make one, then you could build LFS on the
|
---|
| 15 | same partition as the one on which your current distribution is installed.
|
---|
| 16 | This procedure is not recommended for your first LFS install, but if you
|
---|
| 17 | are short on disk space, and you feel brave, take a look at the hint at
|
---|
[dc6acb5] | 18 | <link xlink:href="&hints-root;lfs_next_to_existing_systems.txt">&hints-root;lfs_next_to_existing_systems.txt</link>.</para>
|
---|
[673b0d8] | 19 |
|
---|
| 20 | <para>For a minimal system you will need a partition of around 1.3 GB.
|
---|
| 21 | This is enough to store all the source tarballs and compile all the packages.
|
---|
| 22 | But if you intend to use the LFS system as your primary Linux system, you
|
---|
| 23 | will probably want to install additional software, and will need more space
|
---|
| 24 | than this, probably around 2 or 3 GB.</para>
|
---|
| 25 |
|
---|
| 26 | <para>As we almost never have enough RAM in our box, it is a good idea to
|
---|
| 27 | use a small disk partition as swap space -- this space is used by the kernel
|
---|
| 28 | to store seldom-used data to make room in memory for more urgent stuff.
|
---|
| 29 | The swap partition for your LFS system can be the same one as for your host
|
---|
| 30 | system, so you won't have to create another if your host system already uses
|
---|
| 31 | a swap partition.</para>
|
---|
| 32 |
|
---|
[55851d6] | 33 | <para>Start a disk partitioning program such as <command>cfdisk</command>
|
---|
| 34 | or <command>fdisk</command> with an argument naming the hard disk upon
|
---|
[673b0d8] | 35 | which the new partition must be created -- for example
|
---|
| 36 | <filename>/dev/hda</filename> for the primary IDE disk. Create a Linux native
|
---|
| 37 | partition and a swap partition, if needed. Please refer to the man pages of
|
---|
[55851d6] | 38 | <command>cfdisk</command> or <command>fdisk</command> if you don't yet
|
---|
[673b0d8] | 39 | know how to use the programs.</para>
|
---|
| 40 |
|
---|
| 41 | <para>Remember the designation of your new partition -- something like
|
---|
| 42 | <filename>hda5</filename>. This book will refer to it as the LFS partition.
|
---|
| 43 | If you (now) also have a swap partition, remember its designation too. These
|
---|
| 44 | names will later be needed for the <filename>/etc/fstab</filename> file.</para>
|
---|
| 45 |
|
---|
[522b09f] | 46 | </section>
|
---|