diff options
Diffstat (limited to 'chapter02/creatingfilesystem.xml')
-rw-r--r-- | chapter02/creatingfilesystem.xml | 69 |
1 files changed, 38 insertions, 31 deletions
diff --git a/chapter02/creatingfilesystem.xml b/chapter02/creatingfilesystem.xml index 3466a555a..4e7346b20 100644 --- a/chapter02/creatingfilesystem.xml +++ b/chapter02/creatingfilesystem.xml @@ -1,41 +1,48 @@ <?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" [ +<!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"?> + <?dbhtml filename="creatingfilesystem.html"?> + + <title>Creating a File System on the Partition</title> -<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 newer high-capacity -hard disks, journaling file systems are becoming increasingly -popular. We will create an ext2 file system. Build instructions for other file -systems can be found at <ulink -url="&blfs-root;view/svn/postlfs/filesystems.html"/>.</para> + <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 (<systemitem class="filesystem">ext2</systemitem>), but with newer + high-capacity hard disks, journaling file systems are becoming increasingly + popular. We will create an <systemitem class="filesystem">ext2</systemitem> + file system. 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> + <para>To create an <systemitem class="filesystem">ext2</systemitem> file + system on the LFS partition, run the following:</para> <screen role="nodump"><userinput>mke2fs -v /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>Replace <replaceable>[xxx]</replaceable> with the name of the LFS + partition (<filename class="devicefile">hda5</filename> in our previous + example).</para> -<note><para>Some host distributions use custom features in their filesystem -creation tools (e2fsprogs). This can cause problems when booting into your new -LFS in Chapter 9, as those features will not be supported by the LFS-installed -e2fsprogs; you will get an error similar to <quote>unsupported filesystem -features, upgrade your e2fsprogs</quote>. To check if your host system -uses custom enhancements, run the following command:</para> + <note> + <para>Some host distributions use custom features in their filesystem + creation tools (E2fsprogs). This can cause problems when booting into your new + LFS in Chapter 9, as those features will not be supported by the LFS-installed + E2fsprogs; you will get an error similar to <quote>unsupported filesystem + features, upgrade your e2fsprogs</quote>. To check if your host system + uses custom enhancements, run the following command:</para> <screen role="nodump"><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 custom -enhancements. In that case, to avoid later problems, you should compile the -stock e2fsprogs package and use the resulting binaries to re-create the -filesystem on your LFS partition:</para> + <para>If the output contains features other than: <option>dir_index</option>; + <option>filetype</option>; <option>large_file</option>; + <option>resize_inode</option> or <option>sparse_super</option> then your host + system may have custom enhancements. In that case, to avoid later problems, + you should compile the stock E2fsprogs package and use the resulting binaries + to re-create the filesystem on your LFS partition:</para> <screen role="nodump"><userinput>cd /tmp tar -xjvf /path/to/sources/e2fsprogs-&e2fsprogs-version;.tar.bz2 @@ -47,16 +54,16 @@ make #note that we intentionally don't 'make install' here! ./misc/mke2fs -v /dev/<replaceable>[xxx]</replaceable> cd /tmp rm -rfv e2fsprogs-&e2fsprogs-version;</userinput></screen> -</note> + </note> -<para>If a swap partition was created, it will need to be initialized for use by -issuing the command below. If you are using an existing swap partition, there is -no need to format it.</para> + <para>If a <systemitem class="filesystem">swap</systemitem> partition was + created, it will need to be initialized for use by issuing the command below. + If you are using an existing <systemitem class="filesystem">swap</systemitem> + partition, there is no need to format it.</para> <screen role="nodump"><userinput>mkswap /dev/<replaceable>[yyy]</replaceable></userinput></screen> -<para>Replace <replaceable>[yyy]</replaceable> with the name of the swap -partition.</para> + <para>Replace <replaceable>[yyy]</replaceable> with the name of the + <systemitem class="filesystem">swap</systemitem> partition.</para> </sect1> - |