2001-01-24 00:31:17 +00:00
|
|
|
<sect1 id="ch04-creatingpart">
|
|
|
|
<title>Creating a new partition</title>
|
|
|
|
|
2001-04-21 17:47:37 +01:00
|
|
|
<para>
|
|
|
|
First, let me tell you that it is possible to build LFS on only one partition,
|
|
|
|
which is where your original distribution is installed. This is not recommended
|
|
|
|
if it is the first time you try LFS, but may be useful if you are short on disk
|
|
|
|
space. If you feel brave, take a look at the <ulink
|
2001-07-06 16:27:45 +01:00
|
|
|
url="http://archive.linuxfromscratch.org/lfs-hints/one-partition-hint.txt">one
|
2001-04-21 17:47:37 +01:00
|
|
|
partition hint</ulink>.
|
|
|
|
</para>
|
|
|
|
|
2001-01-24 00:31:17 +00:00
|
|
|
<para>
|
|
|
|
Before we can build our new Linux system, we need to have an empty Linux
|
|
|
|
partition on which we can build our new system. I recommend a partition size
|
2001-03-23 03:03:02 +00:00
|
|
|
of at least 750 MB. This gives enough space to store all the tarballs and
|
2001-03-22 04:07:23 +00:00
|
|
|
to compile all packages without worrying about running out of the necessary
|
2001-03-23 03:03:02 +00:00
|
|
|
temporary disk space. But you probably want more space than that if you
|
|
|
|
plan to use the LFS system as your primary Linux system. If that's the
|
|
|
|
case you'd want more space so you can install additional software. If a
|
|
|
|
Linux Native partition is already available, this subsection can be skipped.
|
2001-01-24 00:31:17 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
2001-04-14 02:10:15 +01:00
|
|
|
The cfdisk program (or another fdisk like program you prefer)) is
|
2001-03-23 03:03:02 +00:00
|
|
|
started with the appropriate hard disk as the option (like /dev/hda if a
|
|
|
|
new partition is to be created on the primary master IDE disk). It is used
|
|
|
|
to create a Linux Native partition, write the partition table and exit the
|
2001-04-14 02:10:15 +01:00
|
|
|
cfdisk program. Please refer to the documentation that comes with your
|
|
|
|
fdisk program of choice (the man pages are often a good place to start)
|
|
|
|
and read the procedures about how to create a new Linux native
|
|
|
|
partition and how to write the partition table.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
The new partition's designation should be remembered. It
|
|
|
|
could be something like hda11. This newly created partition will be
|
|
|
|
referred to as the LFS partition in this book.
|
2001-01-24 00:31:17 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
</sect1>
|
|
|
|
|