aboutsummaryrefslogtreecommitdiffstats
path: root/chapter02
diff options
context:
space:
mode:
authorMatthew Burgess <matthew@linuxfromscratch.org>2005-03-02 20:37:49 +0000
committerMatthew Burgess <matthew@linuxfromscratch.org>2005-03-02 20:37:49 +0000
commitd6b76b1736169b6ce64581882707922544a399f4 (patch)
treefa375747e7e4a9be1026486d262cf5bdc664b39b /chapter02
parent5dbd01748585931eafe711ebaa4a030bcecdfebe (diff)
* Added note regarding potential custom enhancements to a host distribution's
e2fsprogs. Fixes bug 1047. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@4715 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter02')
-rw-r--r--chapter02/creatingfilesystem.xml27
1 files changed, 27 insertions, 0 deletions
diff --git a/chapter02/creatingfilesystem.xml b/chapter02/creatingfilesystem.xml
index f013b9dec..2a10e1c1b 100644
--- a/chapter02/creatingfilesystem.xml
+++ b/chapter02/creatingfilesystem.xml
@@ -22,6 +22,33 @@ url="&blfs-root;view/svn/postlfs/filesystems.html"/>.</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>
+
+<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 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><userinput>cd /tmp
+tar xjf /path/to/sources/e2fsprogs-1.36.tar.bz2
+cd e2fsprogs-1.36
+mkdir build
+cd build
+../configure
+make #note that we intentionally don't 'make install' here!
+./misc/mke2fs /dev/<replaceable>[xxx]</replaceable>
+cd /tmp
+rm -rf e2fsprogs-1.36</userinput></screen>
+</note>
+
<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