source: BOOK/partitioning/common/creatingpartition.xml@ 8916587

sysvinit
Last change on this file since 8916587 was 234b86a, checked in by William Harrington <kb0iic@…>, 10 years ago

Add a comma.

  • Property mode set to 100644
File size: 2.9 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-partitioning-creatingpartition">
9 <?dbhtml filename="creatingpartition.html"?>
10
11 <title>Creating a New Partition</title>
12
13 <para os="a">Like most other operating systems, CLFS is usually installed
14 on a dedicated partition. The recommended approach to building a CLFS
15 system is to use an available empty partition or, if you have enough
16 unpartitioned space, to create one. However, if you're building for a
17 different architecture you can simply build everything in
18 <quote>/mnt/clfs</quote> (or whatever directory you want to use) and
19 transfer it to your target machine. If you do not plan to use a separate
20 partition for building CLFS, you can skip the rest of this chapter and
21 continue on to <xref linkend="chapter-getting-materials"/>.</para>
22
23 <para os="b">A minimal system requires around 6 gigabytes (GB).
24 This is enough to store all the source tarballs and compile the packages. The CLFS
25 system itself will not take up this much room. A large portion of this requirement
26 is to provide sufficient free temporary storage. Compiling packages can require a
27 lot of disk space which will be reclaimed after the package is installed. If the
28 CLFS system is intended to be the primary Linux system, additional software will
29 probably be installed which will require additional space (2-10 GB). </para>
30
31 <para os="c">Because there is not always enough Random Access Memory (RAM)
32 available for compilation processes, it is a good idea to use a small disk
33 partition as swap space. This is used by the kernel to store seldom-used
34 data and leave more memory available for active processes. The swap
35 partition for a CLFS system can be the same as the one used by the host
36 system, in which case it is not necessary to create another one.</para>
37
38 <para os="d">As the <systemitem class="username">root</systemitem> user,
39 start a disk partitioning program such as <command>cfdisk</command>
40 or <command>fdisk</command> with a command line option naming the hard
41 disk on which the new partition will be created&mdash;for example
42 <filename class="devicefile">/dev/sda</filename> for the primary
43 Integrated Drive Electronics (IDE) or Serial ATA (SATA) disk. Create a Linux
44 native partition and a swap partition, if needed. Please refer to
45 <filename>cfdisk(8)</filename> or <filename>fdisk(8)</filename> if you
46 do not yet know how to use the programs.</para>
47
48 <para os="e">Remember the designation of the new partition (e.g.,
49 <filename class="devicefile">sda5</filename>). This book will refer to
50 this as the CLFS partition. Also, remember the designation of the swap
51 partition. These names will be needed later for the
52 <filename>/etc/fstab</filename> file.</para>
53
54</sect1>
Note: See TracBrowser for help on using the repository browser.