Added a few comments here and there
[linux_from_scratch.git] / newxml / chapter03 / creatingpart.xml
blob5d250b24df66e9a3305c9f01c0ec0d0c3823fd4c
1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3CR2//EN" "http://www.docbook.org/xml/4.3CR2/docbookx.dtd">
3 <sect1 id="ch03-creatingpart">
4 <title>Creating a new partition</title>
5 <?dbhtml filename="creatingpart.html"?>
7 <para>In order to build our new Linux system, we will need some space:
8 an empty disk partition. If you don't have a free partition, and no room
9 on any of your hard disks to make one, then you could build LFS on the
10 same partition as the one on which your current distribution is installed.
11 This procedure is not recommended for your first LFS install, but if you
12 are short on disk space, and you feel brave, take a look at the hint at
13 <ulink url="http://www.linuxfromscratch.org/hints/downloads/files/lfs_next_to_existing_systems.txt"/>.</para>
15 <para>For a minimal system you will need a partition of around 1.2 GB.
16 This is enough to store all the source tarballs and compile all the packages.
17 But if you intend to use the LFS system as your primary Linux system, you
18 will probably want to install additional software, and will need more space
19 than this, probably around 2 or 3 GB.</para>
21 <para>As we almost never have enough RAM in our box, it is a good idea to
22 use a small disk partition as swap space -- this space is used by the kernel
23 to store seldom-used data to make room in memory for more urgent stuff.
24 The swap partition for your LFS system can be the same one as for your host
25 system, so you won't have to create another if your host system already uses
26 a swap partition.</para>
28 <para>Start a disk partitioning program such as <userinput>cfdisk</userinput>
29 or <userinput>fdisk</userinput> with an argument naming the hard disk upon
30 which the new partition must be created -- for example
31 <filename>/dev/hda</filename> for the primary IDE disk. Create a Linux native
32 partition and a swap partition, if needed. Please refer to the man pages of
33 <userinput>cfdisk</userinput> or <userinput>fdisk</userinput> if you don't yet
34 know how to use the programs.</para>
36 <para>Remember the designation of your new partition -- something like
37 <filename>hda5</filename>. This book will refer to it as the LFS partition.
38 If you (now) also have a swap partition, remember its designation too. These
39 names will later be needed for the <filename>/etc/fstab</filename> file.</para>
41 </sect1>