Files
lfs/chapter02/creatingfilesystem.xml
2004-08-08 02:10:00 +00:00

38 lines
1.6 KiB
XML

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../general.ent">
%general-entities;
]>
<sect1 id="space-creatingfilesystem">
<title>Creating a File System on the New 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
<systemitem class="filesystem">second extended file
system</systemitem> (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/stable/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>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 mke2fs) by running the following. If you are using an existing
swap parition you do not 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>