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