r5295 - in branches/cross-lfs/BOOK/partitioning: . common raq2

jhuntwork at linuxfromscratch.org jhuntwork at linuxfromscratch.org
Wed May 11 21:19:31 PDT 2005


Author: jhuntwork
Date: 2005-05-11 22:19:29 -0600 (Wed, 11 May 2005)
New Revision: 5295

Added:
   branches/cross-lfs/BOOK/partitioning/common/
   branches/cross-lfs/BOOK/partitioning/common/creatingfilesystem.xml
   branches/cross-lfs/BOOK/partitioning/common/creatingpartition.xml
   branches/cross-lfs/BOOK/partitioning/common/introduction.xml
   branches/cross-lfs/BOOK/partitioning/common/mounting.xml
   branches/cross-lfs/BOOK/partitioning/ppc-chapter.xml
   branches/cross-lfs/BOOK/partitioning/raq2-chapter.xml
   branches/cross-lfs/BOOK/partitioning/raq2/
   branches/cross-lfs/BOOK/partitioning/raq2/creatingfilesystem.xml
   branches/cross-lfs/BOOK/partitioning/raq2/creatingpartition.xml
   branches/cross-lfs/BOOK/partitioning/sparc-chapter.xml
   branches/cross-lfs/BOOK/partitioning/sparc64-chapter.xml
   branches/cross-lfs/BOOK/partitioning/x86-chapter.xml
Removed:
   branches/cross-lfs/BOOK/partitioning/chapter.xml
   branches/cross-lfs/BOOK/partitioning/creatingfilesystem.xml
   branches/cross-lfs/BOOK/partitioning/creatingpartition.xml
   branches/cross-lfs/BOOK/partitioning/introduction.xml
   branches/cross-lfs/BOOK/partitioning/mounting.xml
Log:
Updating partitioning dir

Deleted: branches/cross-lfs/BOOK/partitioning/chapter.xml
===================================================================
--- branches/cross-lfs/BOOK/partitioning/chapter.xml	2005-05-12 04:19:06 UTC (rev 5294)
+++ branches/cross-lfs/BOOK/partitioning/chapter.xml	2005-05-12 04:19:29 UTC (rev 5295)
@@ -1,16 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
-  <!ENTITY % general-entities SYSTEM "../general.ent">
-  %general-entities;
-]>
-<chapter id="chapter-partitioning" xreflabel="Preparing a New Partition">
-<?dbhtml dir="partitioning"?>
-<title>Preparing a New Partition</title>
-<?dbhtml filename="chapter.html"?>
-
-<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="introduction.xml"/>
-<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="creatingpartition.xml"/>
-<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="creatingfilesystem.xml"/>
-<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="mounting.xml"/>
-
-</chapter>

Added: branches/cross-lfs/BOOK/partitioning/common/creatingfilesystem.xml
===================================================================
--- branches/cross-lfs/BOOK/partitioning/common/creatingfilesystem.xml	2005-05-12 04:19:06 UTC (rev 5294)
+++ branches/cross-lfs/BOOK/partitioning/common/creatingfilesystem.xml	2005-05-12 04:19:29 UTC (rev 5295)
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
+  <!ENTITY % general-entities SYSTEM "../../general.ent">
+  %general-entities;
+]>
+<sect1 id="ch-partitioning-creatingfilesystem">
+<title>Creating a File System on the Partition</title>
+<?dbhtml filename="creatingfilesystem.html"?>
+
+<para>Now that a blank partition has been set up, the file system can
+be created. The most widely-used system in the Linux world is the
+second extended file system (ext2), but with the newer high-capacity
+hard disks, the journaling file systems are becoming increasingly
+popular.  Here we will create an ext2 file system, but build
+instructions for other file systems can be found at <ulink
+url="&blfs-root;view/svn/postlfs/filesystems.html"/>.</para>
+
+<para>To create an ext2 file system on the LFS partition, run the following:</para>
+
+<screen><userinput>mke2fs /dev/<replaceable>[xxx]</replaceable></userinput></screen>
+
+<para>Replace <replaceable>[xxx]</replaceable> with the name of the LFS
+partition (<filename class="devicefile">hda5</filename> in our previous example).</para>
+
+<para>If a swap partition was created, it will need to be initialized
+as a swap partition too (also known as formatting, as described above
+with <command>mke2fs</command>) by running the following. If you are using an existing
+swap partition, there is no need to format it.</para>
+
+<screen><userinput>mkswap /dev/<replaceable>[yyy]</replaceable></userinput></screen>
+
+<para>Replace <replaceable>[yyy]</replaceable> with the name of the swap
+partition.</para>
+
+</sect1>
+

Added: branches/cross-lfs/BOOK/partitioning/common/creatingpartition.xml
===================================================================
--- branches/cross-lfs/BOOK/partitioning/common/creatingpartition.xml	2005-05-12 04:19:06 UTC (rev 5294)
+++ branches/cross-lfs/BOOK/partitioning/common/creatingpartition.xml	2005-05-12 04:19:29 UTC (rev 5295)
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
+  <!ENTITY % general-entities SYSTEM "../../general.ent">
+  %general-entities;
+]>
+<sect1 id="ch-partitioning-creatingpartition">
+<title>Creating a New Partition</title>
+<?dbhtml filename="creatingpartition.html"?>
+
+<!--Edit Me-->
+<para>Like most other operating systems, LFS is usually installed on
+a dedicated partition.  If you have an empty partition or enough
+unpartitioned space on one of your hard disks to make one, using this
+for your LFS installation is recommended.  However, an LFS system (in
+fact even multiple LFS systems) may also be installed on a partition
+already occupied by another operating system and the different systems
+will co-exist peacefully.  The document
+<ulink url="&hints-root;/lfs_next_to_existing_systems.txt"/> explains
+how to implement this, whereas this book discusses the method of
+using a fresh partition for the installation.</para>
+<!--End Edit Me-->
+
+<para>A minimal system requires a partition of around 1.3 gigabytes
+(GB).  This is enough to store all the source tarballs and compile 
+the packages. However, if the LFS system is intended to be the primary
+Linux system, additional software will probably be installed which
+will require additional space (2 or 3 GB). The LFS system itself will
+not take up this much space. A large portion of this required amount
+of space is to provide sufficient free temporary space. Compiling
+packages can require a lot of disk space which will be reclaimed after
+the package is installed.</para>
+
+<para>Because there is not always enough Random Access Memory (RAM)
+available for compilation processes, 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 active processes.
+The swap partition for an LFS system can be the same as the one used
+by the host system, so another swap partition will not need to be
+created if your host system already has one setup.</para>
+
+<para>Start a disk partitioning program such as
+<command>cfdisk</command> or <command>fdisk</command> with a command
+line option naming the hard disk on which the new partition will be
+created—for example <filename class="devicefile">/dev/hda</filename> for
+the primary Integrated Drive Electronics (IDE) disk. Create a Linux native
+partition and a swap partition, if needed. Please refer to the man
+pages of <command>cfdisk</command> or <command>fdisk</command> if you
+do not yet know how to use the programs.</para>
+
+<para>Remember the designation of the new partition (e.g.,
+<filename class="devicefile">hda5</filename>). This book will refer to this as the LFS
+partition. Also remember the designation of the swap partition. These
+names will be needed later for the <filename>/etc/fstab</filename>
+file.</para>
+
+</sect1>
+

Added: branches/cross-lfs/BOOK/partitioning/common/introduction.xml
===================================================================
--- branches/cross-lfs/BOOK/partitioning/common/introduction.xml	2005-05-12 04:19:06 UTC (rev 5294)
+++ branches/cross-lfs/BOOK/partitioning/common/introduction.xml	2005-05-12 04:19:29 UTC (rev 5295)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
+  <!ENTITY % general-entities SYSTEM "../../general.ent">
+  %general-entities;
+]>
+<sect1 id="ch-partitioning-introduction">
+<title>Introduction</title>
+<?dbhtml filename="introduction.html"?>
+
+<para>In this chapter, the partition which will host the LFS system is
+prepared. We will create the partition itself, create a file system
+on it, and mount it.</para>
+
+</sect1>
+

Added: branches/cross-lfs/BOOK/partitioning/common/mounting.xml
===================================================================
--- branches/cross-lfs/BOOK/partitioning/common/mounting.xml	2005-05-12 04:19:06 UTC (rev 5294)
+++ branches/cross-lfs/BOOK/partitioning/common/mounting.xml	2005-05-12 04:19:29 UTC (rev 5295)
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
+  <!ENTITY % general-entities SYSTEM "../../general.ent">
+  %general-entities;
+]>
+<sect1 id="ch-partitioning-mounting">
+<title>Mounting the New Partition</title>
+<?dbhtml filename="mounting.html"?>
+
+<para>Now that a file system has been created, the partition needs to
+be made accessible. In order to do this, the partition needs to be
+mounted at a chosen mount point. For the purposes of this book, it is
+assumed that the file system is mounted under <filename
+class="directory">/mnt/lfs</filename>, but the directory choice is up
+to you.</para>
+
+<para>Choose a mount point and assign it to the <envar>LFS</envar> 
+environment variable by running:</para>
+
+<screen><userinput>export LFS=/mnt/lfs</userinput></screen>
+
+<para>Next, create the mount point and mount the LFS file system by
+running:</para>
+
+<screen><userinput>mkdir -p $LFS
+mount /dev/<replaceable>[xxx]</replaceable> $LFS</userinput></screen>
+
+<para>Replace <replaceable>[xxx]</replaceable> with the designation of the LFS
+partition.</para>
+
+<para>If using multiple partitions for LFS (e.g., one for <filename
+class="directory">/</filename> and another for <filename
+class="directory">/usr</filename>), mount them using:</para>
+
+<screen><userinput>mkdir -p $LFS
+mount /dev/<replaceable>[xxx]</replaceable> $LFS
+mkdir $LFS/usr
+mount /dev/<replaceable>[yyy]</replaceable> $LFS/usr</userinput></screen>
+
+<para>Replace <replaceable>[xxx]</replaceable> and
+<replaceable>[yyy]</replaceable> with the appropriate partition
+names.</para>
+
+<para>Ensure that this new partition is not mounted with permissions
+that are too restrictive (such as the nosuid, nodev, or noatime
+options). Run the <command>mount</command> command without any
+parameters to see what options are set for the mounted LFS
+partition. If <parameter>nosuid</parameter>, <parameter>nodev</parameter>,
+and/or <parameter>noatime</parameter> are set, the partition will need
+to be remounted.</para>
+
+<para>Now that there is an established place to work, it is time to
+download the packages.</para>
+
+</sect1>
+

Deleted: branches/cross-lfs/BOOK/partitioning/creatingfilesystem.xml
===================================================================
--- branches/cross-lfs/BOOK/partitioning/creatingfilesystem.xml	2005-05-12 04:19:06 UTC (rev 5294)
+++ branches/cross-lfs/BOOK/partitioning/creatingfilesystem.xml	2005-05-12 04:19:29 UTC (rev 5295)
@@ -1,43 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
-  <!ENTITY % general-entities SYSTEM "../general.ent">
-  %general-entities;
-]>
-<sect1 id="ch-partitioning-creatingfilesystem">
-<title>Creating a File System on the Partition</title>
-<?dbhtml filename="creatingfilesystem.html"?>
-
-<para>Now that a blank partition has been set up, the file system can
-be created. The most widely-used system in the Linux world is the
-second extended file system (ext2), but with the newer high-capacity
-hard disks, the journaling file systems are becoming increasingly
-popular.  Here we will create an ext2 file system, but build
-instructions for other file systems can be found at <ulink
-url="&blfs-root;view/svn/postlfs/filesystems.html"/>.</para>
-
-<para>To create an ext2 file system on the LFS partition, run the following:</para>
-
-<screen><userinput>mke2fs /dev/<replaceable>[xxx]</replaceable></userinput></screen>
-
-<para>Replace <replaceable>[xxx]</replaceable> with the name of the LFS
-partition (<filename class="devicefile">hda5</filename> in our previous example).</para>
-
-<para>If a swap partition was created, it will need to be initialized
-as a swap partition too (also known as formatting, as described above
-with <command>mke2fs</command>) by running the following. If you are using an existing
-swap partition, there is no need to format it.</para>
-
-<screen><userinput>mkswap /dev/<replaceable>[yyy]</replaceable></userinput></screen>
-
-<para>Replace <replaceable>[yyy]</replaceable> with the name of the swap
-partition.</para>
-
-<para arch="raq2">If you used the partition scheme that was recommended, here are the
-commands you can use to format the necessary drives:</para>
-
-<screen arch="raq2"><userinput>mke2fs -r 0 /dev/hda1
-mke2fs /dev/hda2
-mkswap /dev/hda3</userinput></screen>
-
-</sect1>
-

Deleted: branches/cross-lfs/BOOK/partitioning/creatingpartition.xml
===================================================================
--- branches/cross-lfs/BOOK/partitioning/creatingpartition.xml	2005-05-12 04:19:06 UTC (rev 5294)
+++ branches/cross-lfs/BOOK/partitioning/creatingpartition.xml	2005-05-12 04:19:29 UTC (rev 5295)
@@ -1,93 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
-  <!ENTITY % general-entities SYSTEM "../general.ent">
-  %general-entities;
-]>
-<sect1 id="ch-partitioning-creatingpartition">
-<title>Creating a New Partition</title>
-<?dbhtml filename="creatingpartition.html"?>
-
-<!--Edit Me-->
-<para>Like most other operating systems, LFS is usually installed on
-a dedicated partition.  If you have an empty partition or enough
-unpartitioned space on one of your hard disks to make one, using this
-for your LFS installation is recommended.  However, an LFS system (in
-fact even multiple LFS systems) may also be installed on a partition
-already occupied by another operating system and the different systems
-will co-exist peacefully.  The document
-<ulink url="&hints-root;/lfs_next_to_existing_systems.txt"/> explains
-how to implement this, whereas this book discusses the method of
-using a fresh partition for the installation.</para>
-<!--End Edit Me-->
-
-<para>A minimal system requires a partition of around 1.3 gigabytes
-(GB).  This is enough to store all the source tarballs and compile 
-the packages. However, if the LFS system is intended to be the primary
-Linux system, additional software will probably be installed which
-will require additional space (2 or 3 GB). The LFS system itself will
-not take up this much space. A large portion of this required amount
-of space is to provide sufficient free temporary space. Compiling
-packages can require a lot of disk space which will be reclaimed after
-the package is installed.</para>
-
-<para>Because there is not always enough Random Access Memory (RAM)
-available for compilation processes, 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 active processes.
-The swap partition for an LFS system can be the same as the one used
-by the host system, so another swap partition will not need to be
-created if your host system already has one setup.</para>
-
-<para>Start a disk partitioning program such as
-<command>cfdisk</command> or <command>fdisk</command> with a command
-line option naming the hard disk on which the new partition will be
-created—for example <filename class="devicefile">/dev/hda</filename> for
-the primary Integrated Drive Electronics (IDE) disk. Create a Linux native
-partition and a swap partition, if needed. Please refer to the man
-pages of <command>cfdisk</command> or <command>fdisk</command> if you
-do not yet know how to use the programs.</para>
-
-<para>Remember the designation of the new partition (e.g.,
-<filename class="devicefile">hda5</filename>). This book will refer to this as the LFS
-partition. Also remember the designation of the swap partition. These
-names will be needed later for the <filename>/etc/fstab</filename>
-file.</para>
-
-<para arch="raq2">On a Cobalt RaQ2/Cube2 we use the existing firmware for a boot loader,
-it requires an ext2 revision 0 partition to boot from. So here is the
-recommended partition for a Cobalt RaQ2/Cube2 system:</para>
-
-<itemizedlist arch="raq2">
-<listitem><para>The first partition should be 50-100 MB.</para></listitem>
-<listitem><para>The second partition should be all the remaining space minus the
-amount of RAM in the system.</para></listitem>
-<listitem><para>The third partition is going to be your swap partition, which will
-be the same amount as the RAM installed in the system.</para></listitem>
-</itemizedlist>
-
-<para arch="alpha">Alphas have one of 2 BIOSes, Alphaboot or SRM. Some models have both
-and you can switch between them at powerup. Each bios has a different
-boot method. Milo is cool because it can be blown into flash for a
-FAST boot, but its built against an older linux kernel and crashes
-with some hardware, like a SCSI controller. aboot is simple if you
-can use it, but needs BSD partitions. aboot doesn't really let you do
-much at boot time that crosses devices. If you load aboot from hda,
-your root needs to be on hda. install aboot on hdb if you want to move
-your root to hdb. Once linux is loaded, you can do whatever you want.
-Milo can handle loading the kernel from one disk and the root on
-another.</para>
-
-<para arch="alpha">If you boot with SRM and aboot, you *MUST* use BSD style partitions.
-You *MUST* also leave the first 2 cylinders unused as they will
-contain your boot loader. I've read that partition 3 should always be
-the full disk even though it overlaps with other partitions, but in my
-experience that doesn't matter.  If you choose to not use an EXT2 or
-EXT3 root filesystem, you'll need to go through some extra hoops to
-install aboot.</para>
-
-<para arch="alpha">If you boot with Milo, use msdos partitions, and make the first
-partition large enough for at least 2 kernels (I would use about
-500Megs) and make it a FAT filesystem.</para>
-
-</sect1>
-

Deleted: branches/cross-lfs/BOOK/partitioning/introduction.xml
===================================================================
--- branches/cross-lfs/BOOK/partitioning/introduction.xml	2005-05-12 04:19:06 UTC (rev 5294)
+++ branches/cross-lfs/BOOK/partitioning/introduction.xml	2005-05-12 04:19:29 UTC (rev 5295)
@@ -1,15 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
-  <!ENTITY % general-entities SYSTEM "../general.ent">
-  %general-entities;
-]>
-<sect1 id="ch-partitioning-introduction">
-<title>Introduction</title>
-<?dbhtml filename="introduction.html"?>
-
-<para>In this chapter, the partition which will host the LFS system is
-prepared. We will create the partition itself, create a file system
-on it, and mount it.</para>
-
-</sect1>
-

Deleted: branches/cross-lfs/BOOK/partitioning/mounting.xml
===================================================================
--- branches/cross-lfs/BOOK/partitioning/mounting.xml	2005-05-12 04:19:06 UTC (rev 5294)
+++ branches/cross-lfs/BOOK/partitioning/mounting.xml	2005-05-12 04:19:29 UTC (rev 5295)
@@ -1,56 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
-  <!ENTITY % general-entities SYSTEM "../general.ent">
-  %general-entities;
-]>
-<sect1 id="ch-partitioning-mounting">
-<title>Mounting the New Partition</title>
-<?dbhtml filename="mounting.html"?>
-
-<para>Now that a file system has been created, the partition needs to
-be made accessible. In order to do this, the partition needs to be
-mounted at a chosen mount point. For the purposes of this book, it is
-assumed that the file system is mounted under <filename
-class="directory">/mnt/lfs</filename>, but the directory choice is up
-to you.</para>
-
-<para>Choose a mount point and assign it to the <envar>LFS</envar> 
-environment variable by running:</para>
-
-<screen><userinput>export LFS=/mnt/lfs</userinput></screen>
-
-<para>Next, create the mount point and mount the LFS file system by
-running:</para>
-
-<screen><userinput>mkdir -p $LFS
-mount /dev/<replaceable>[xxx]</replaceable> $LFS</userinput></screen>
-
-<para>Replace <replaceable>[xxx]</replaceable> with the designation of the LFS
-partition.</para>
-
-<para>If using multiple partitions for LFS (e.g., one for <filename
-class="directory">/</filename> and another for <filename
-class="directory">/usr</filename>), mount them using:</para>
-
-<screen><userinput>mkdir -p $LFS
-mount /dev/<replaceable>[xxx]</replaceable> $LFS
-mkdir $LFS/usr
-mount /dev/<replaceable>[yyy]</replaceable> $LFS/usr</userinput></screen>
-
-<para>Replace <replaceable>[xxx]</replaceable> and
-<replaceable>[yyy]</replaceable> with the appropriate partition
-names.</para>
-
-<para>Ensure that this new partition is not mounted with permissions
-that are too restrictive (such as the nosuid, nodev, or noatime
-options). Run the <command>mount</command> command without any
-parameters to see what options are set for the mounted LFS
-partition. If <parameter>nosuid</parameter>, <parameter>nodev</parameter>,
-and/or <parameter>noatime</parameter> are set, the partition will need
-to be remounted.</para>
-
-<para>Now that there is an established place to work, it is time to
-download the packages.</para>
-
-</sect1>
-

Added: branches/cross-lfs/BOOK/partitioning/ppc-chapter.xml
===================================================================
--- branches/cross-lfs/BOOK/partitioning/ppc-chapter.xml	2005-05-12 04:19:06 UTC (rev 5294)
+++ branches/cross-lfs/BOOK/partitioning/ppc-chapter.xml	2005-05-12 04:19:29 UTC (rev 5295)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
+  <!ENTITY % general-entities SYSTEM "../general.ent">
+  %general-entities;
+]>
+<chapter id="chapter-partitioning" xreflabel="Preparing a New Partition">
+<?dbhtml dir="partitioning"?>
+<title>Preparing a New Partition</title>
+<?dbhtml filename="chapter.html"?>
+
+<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/introduction.xml"/>
+<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/creatingpartition.xml"/>
+<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/creatingfilesystem.xml"/>
+<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/mounting.xml"/>
+
+</chapter>

Added: branches/cross-lfs/BOOK/partitioning/raq2/creatingfilesystem.xml
===================================================================
--- branches/cross-lfs/BOOK/partitioning/raq2/creatingfilesystem.xml	2005-05-12 04:19:06 UTC (rev 5294)
+++ branches/cross-lfs/BOOK/partitioning/raq2/creatingfilesystem.xml	2005-05-12 04:19:29 UTC (rev 5295)
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
+  <!ENTITY % general-entities SYSTEM "../../general.ent">
+  %general-entities;
+]>
+<sect1 id="ch-partitioning-creatingfilesystem">
+<title>Creating a File System on the Partition</title>
+<?dbhtml filename="creatingfilesystem.html"?>
+
+<para>Now that a blank partition has been set up, the file system can
+be created. The most widely-used system in the Linux world is the
+second extended file system (ext2), but with the newer high-capacity
+hard disks, the journaling file systems are becoming increasingly
+popular.  Here we will create an ext2 file system, but build
+instructions for other file systems can be found at <ulink
+url="&blfs-root;view/svn/postlfs/filesystems.html"/>.</para>
+
+<para>To create an ext2 file system on the LFS partition, run the following:</para>
+
+<screen><userinput>mke2fs /dev/<replaceable>[xxx]</replaceable></userinput></screen>
+
+<para>Replace <replaceable>[xxx]</replaceable> with the name of the LFS
+partition (<filename class="devicefile">hda5</filename> in our previous example).</para>
+
+<para>If a swap partition was created, it will need to be initialized
+as a swap partition too (also known as formatting, as described above
+with <command>mke2fs</command>) by running the following. If you are using an existing
+swap partition, there is no need to format it.</para>
+
+<screen><userinput>mkswap /dev/<replaceable>[yyy]</replaceable></userinput></screen>
+
+<para>Replace <replaceable>[yyy]</replaceable> with the name of the swap
+partition.</para>
+
+<para>If you used the partition scheme that was recommended, here are the
+commands you can use to format the necessary drives:</para>
+
+<screen><userinput>mke2fs -r 0 /dev/hda1
+mke2fs /dev/hda2
+mkswap /dev/hda3</userinput></screen>
+
+</sect1>
+

Added: branches/cross-lfs/BOOK/partitioning/raq2/creatingpartition.xml
===================================================================
--- branches/cross-lfs/BOOK/partitioning/raq2/creatingpartition.xml	2005-05-12 04:19:06 UTC (rev 5294)
+++ branches/cross-lfs/BOOK/partitioning/raq2/creatingpartition.xml	2005-05-12 04:19:29 UTC (rev 5295)
@@ -0,0 +1,69 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
+  <!ENTITY % general-entities SYSTEM "../../general.ent">
+  %general-entities;
+]>
+<sect1 id="ch-partitioning-creatingpartition">
+<title>Creating a New Partition</title>
+<?dbhtml filename="creatingpartition.html"?>
+
+<!--Edit Me-->
+<para>Like most other operating systems, LFS is usually installed on
+a dedicated partition.  If you have an empty partition or enough
+unpartitioned space on one of your hard disks to make one, using this
+for your LFS installation is recommended.  However, an LFS system (in
+fact even multiple LFS systems) may also be installed on a partition
+already occupied by another operating system and the different systems
+will co-exist peacefully.  The document
+<ulink url="&hints-root;/lfs_next_to_existing_systems.txt"/> explains
+how to implement this, whereas this book discusses the method of
+using a fresh partition for the installation.</para>
+<!--End Edit Me-->
+
+<para>A minimal system requires a partition of around 1.3 gigabytes
+(GB).  This is enough to store all the source tarballs and compile 
+the packages. However, if the LFS system is intended to be the primary
+Linux system, additional software will probably be installed which
+will require additional space (2 or 3 GB). The LFS system itself will
+not take up this much space. A large portion of this required amount
+of space is to provide sufficient free temporary space. Compiling
+packages can require a lot of disk space which will be reclaimed after
+the package is installed.</para>
+
+<para>Because there is not always enough Random Access Memory (RAM)
+available for compilation processes, 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 active processes.
+The swap partition for an LFS system can be the same as the one used
+by the host system, so another swap partition will not need to be
+created if your host system already has one setup.</para>
+
+<para>Start a disk partitioning program such as
+<command>cfdisk</command> or <command>fdisk</command> with a command
+line option naming the hard disk on which the new partition will be
+created—for example <filename class="devicefile">/dev/hda</filename> for
+the primary Integrated Drive Electronics (IDE) disk. Create a Linux native
+partition and a swap partition, if needed. Please refer to the man
+pages of <command>cfdisk</command> or <command>fdisk</command> if you
+do not yet know how to use the programs.</para>
+
+<para>Remember the designation of the new partition (e.g.,
+<filename class="devicefile">hda5</filename>). This book will refer to this as the LFS
+partition. Also remember the designation of the swap partition. These
+names will be needed later for the <filename>/etc/fstab</filename>
+file.</para>
+
+<para>On a Cobalt RaQ2/Cube2 we use the existing firmware for a boot loader,
+it requires an ext2 revision 0 partition to boot from. So here is the
+recommended partition for a Cobalt RaQ2/Cube2 system:</para>
+
+<itemizedlist>
+<listitem><para>The first partition should be 50-100 MB.</para></listitem>
+<listitem><para>The second partition should be all the remaining space minus the
+amount of RAM in the system.</para></listitem>
+<listitem><para>The third partition is going to be your swap partition, which will
+be the same amount as the RAM installed in the system.</para></listitem>
+</itemizedlist>
+
+</sect1>
+

Added: branches/cross-lfs/BOOK/partitioning/raq2-chapter.xml
===================================================================
--- branches/cross-lfs/BOOK/partitioning/raq2-chapter.xml	2005-05-12 04:19:06 UTC (rev 5294)
+++ branches/cross-lfs/BOOK/partitioning/raq2-chapter.xml	2005-05-12 04:19:29 UTC (rev 5295)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
+  <!ENTITY % general-entities SYSTEM "../general.ent">
+  %general-entities;
+]>
+<chapter id="chapter-partitioning" xreflabel="Preparing a New Partition">
+<?dbhtml dir="partitioning"?>
+<title>Preparing a New Partition</title>
+<?dbhtml filename="chapter.html"?>
+
+<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/introduction.xml"/>
+<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="raq2/creatingpartition.xml"/>
+<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="raq2/creatingfilesystem.xml"/>
+<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/mounting.xml"/>
+
+</chapter>

Added: branches/cross-lfs/BOOK/partitioning/sparc-chapter.xml
===================================================================
--- branches/cross-lfs/BOOK/partitioning/sparc-chapter.xml	2005-05-12 04:19:06 UTC (rev 5294)
+++ branches/cross-lfs/BOOK/partitioning/sparc-chapter.xml	2005-05-12 04:19:29 UTC (rev 5295)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
+  <!ENTITY % general-entities SYSTEM "../general.ent">
+  %general-entities;
+]>
+<chapter id="chapter-partitioning" xreflabel="Preparing a New Partition">
+<?dbhtml dir="partitioning"?>
+<title>Preparing a New Partition</title>
+<?dbhtml filename="chapter.html"?>
+
+<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/introduction.xml"/>
+<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/creatingpartition.xml"/>
+<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/creatingfilesystem.xml"/>
+<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/mounting.xml"/>
+
+</chapter>

Added: branches/cross-lfs/BOOK/partitioning/sparc64-chapter.xml
===================================================================
--- branches/cross-lfs/BOOK/partitioning/sparc64-chapter.xml	2005-05-12 04:19:06 UTC (rev 5294)
+++ branches/cross-lfs/BOOK/partitioning/sparc64-chapter.xml	2005-05-12 04:19:29 UTC (rev 5295)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
+  <!ENTITY % general-entities SYSTEM "../general.ent">
+  %general-entities;
+]>
+<chapter id="chapter-partitioning" xreflabel="Preparing a New Partition">
+<?dbhtml dir="partitioning"?>
+<title>Preparing a New Partition</title>
+<?dbhtml filename="chapter.html"?>
+
+<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/introduction.xml"/>
+<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/creatingpartition.xml"/>
+<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/creatingfilesystem.xml"/>
+<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/mounting.xml"/>
+
+</chapter>

Added: branches/cross-lfs/BOOK/partitioning/x86-chapter.xml
===================================================================
--- branches/cross-lfs/BOOK/partitioning/x86-chapter.xml	2005-05-12 04:19:06 UTC (rev 5294)
+++ branches/cross-lfs/BOOK/partitioning/x86-chapter.xml	2005-05-12 04:19:29 UTC (rev 5295)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
+  <!ENTITY % general-entities SYSTEM "../general.ent">
+  %general-entities;
+]>
+<chapter id="chapter-partitioning" xreflabel="Preparing a New Partition">
+<?dbhtml dir="partitioning"?>
+<title>Preparing a New Partition</title>
+<?dbhtml filename="chapter.html"?>
+
+<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/introduction.xml"/>
+<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/creatingpartition.xml"/>
+<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/creatingfilesystem.xml"/>
+<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/mounting.xml"/>
+
+</chapter>




More information about the lfs-book mailing list