[e306dae] | 1 | <sect1 id="ch03-creatingpart">
|
---|
[6370fa6] | 2 | <title>Creating a new partition</title>
|
---|
[e306dae] | 3 | <?dbhtml filename="creatingpart.html" dir="chapter03"?>
|
---|
[6370fa6] | 4 |
|
---|
[8b5830c] | 5 | <para>In order to build our new Linux system, we will need some space:
|
---|
| 6 | an empty disk partition. If you don't have a free partition, and no room
|
---|
| 7 | on any of your hard disks to make one, then you could build LFS on the
|
---|
| 8 | same partition as the one on which your current distribution is installed.
|
---|
| 9 | This procedure is not recommended for your first LFS install, but if you
|
---|
| 10 | are short on disk space, and you feel brave, take a look at the hint at
|
---|
| 11 | <ulink url="&hints-root;lfs_next_to_existing_systems.txt"/>.</para>
|
---|
[9a0cfdf] | 12 |
|
---|
[8b5830c] | 13 | <para>For a minimal system you will need a partition of around 1 GB.
|
---|
| 14 | This is enough to store all the source tarballs and compile all the packages.
|
---|
| 15 | But if you intend to use the LFS system as your primary Linux system, you
|
---|
| 16 | will probably want to install additional software, and will need more space
|
---|
| 17 | than this, probably around 2 or 3 GB.</para>
|
---|
[6370fa6] | 18 |
|
---|
[8b5830c] | 19 | <para>As we almost never have enough RAM in our box, it is a good idea to
|
---|
| 20 | use a small disk partition as swap space -- this space is used by the kernel
|
---|
| 21 | to store seldom-used data to make room in memory for more urgent stuff.
|
---|
| 22 | The swap partition for your LFS system can be the same one as for your host
|
---|
| 23 | system, so you won't have to create another if your host system already uses
|
---|
| 24 | a swap partition.</para>
|
---|
[0c396df] | 25 |
|
---|
[8b5830c] | 26 | <para>Start the <filename>cfdisk</filename> program with as argument the name
|
---|
| 27 | of the hard disk upon which the new partition must be created -- for example
|
---|
| 28 | <filename>/dev/hda</filename> for the primary IDE disk. Create a Linux native
|
---|
| 29 | partition, and if needed a swap partition. Please refer to the man page of
|
---|
| 30 | <filename>cfdisk</filename> if you don't yet know how to use the program.</para>
|
---|
[6370fa6] | 31 |
|
---|
[8b5830c] | 32 | <para>Remember the designation of your new partition -- something like
|
---|
| 33 | <filename>hda5</filename>. This book will refer to it as the LFS partition.
|
---|
| 34 | If you (now) also have a swap partition, remember its designation too. These
|
---|
| 35 | names will later be needed for the <filename>/etc/fstab</filename> file.</para>
|
---|
[6370fa6] | 36 |
|
---|
[63d5562d] | 37 | </sect1>
|
---|
[8b5830c] | 38 |
|
---|