| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 | <?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 newer high-capacityhard disks, journaling file systems are becoming increasinglypopular.  We will create an ext2 file system.  Build instructions for other filesystems 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><note><para>Some host distributions use custom features in their filesystemcreation tools (e2fsprogs).  This can cause problems when booting into your newLFS in Chapter 9, as those features will not be supported by the LFS-installede2fsprogs; you will get an error similar to <quote>unsupported filesystemfeatures, upgrade your e2fsprogs</quote>.  To check if your host systemuses custom enhancements, run the following command:</para><screen><userinput>debugfs -R feature /dev/<replaceable>[xxx]</replaceable></userinput></screen><para>If the output contains features other than: dir_index; filetype;large_file; resize_inode or sparse_super then your host system may have customenhancements.  In that case, to avoid later problems, you should compile thestock e2fsprogs package and use the resulting binaries to re-create thefilesystem on your LFS partition:</para><screen><userinput>cd /tmptar xjf /path/to/sources/e2fsprogs-&e2fsprogs-version;.tar.bz2cd e2fsprogs-&e2fsprogs-version;mkdir buildcd build../configuremake #note that we intentionally don't 'make install' here!./misc/mke2fs /dev/<replaceable>[xxx]</replaceable>cd /tmprm -rf e2fsprogs-&e2fsprogs-version;</userinput></screen></note><para>If a swap partition was created, it will need to be initialized for use byissuing the command below. If you are using an existing swap partition, there isno 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>
 |