| 123456789101112131415161718192021222324252627282930313233343536 | <?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="space-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 canbe created. The most widely-used system in the Linux world is thesecond extended file system (ext2), but with the newer high-capacityhard disks, the journaling file systems are becoming increasinglypopular.  Here we will create an ext2 file system, but buildinstructions for other file systems can be found at <ulinkurl="&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 LFSpartition (<filename class="devicefile">hda5</filename> in our previous example).</para><para>If a swap partition was created, it will need to be initializedas a swap partition too (also known as formatting, as described abovewith <command>mke2fs</command>) by running the following. If you are using an existingswap 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 swappartition.</para></sect1>
 |