From 87bae3144cc4ce8c61e68426d09d060b2c92cfb2 Mon Sep 17 00:00:00 2001 From: Manuel Canales Esparcia Date: Wed, 11 Jan 2006 20:21:38 +0000 Subject: Indented chapter 02. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@7271 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter02/creatingfilesystem.xml | 69 ++++++++++++++++++++++------------------ 1 file changed, 38 insertions(+), 31 deletions(-) (limited to 'chapter02/creatingfilesystem.xml') 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 @@ - %general-entities; ]> + -Creating a File System on the Partition - + + + Creating a File System on the Partition -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 . + 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 + . -To create an ext2 file system on the LFS partition, run the following: + To create an ext2 file + system on the LFS partition, run the following: mke2fs -v /dev/[xxx] -Replace [xxx] with the name of the LFS -partition (hda5 in our previous example). + Replace [xxx] with the name of the LFS + partition (hda5 in our previous + example). -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 unsupported filesystem -features, upgrade your e2fsprogs. To check if your host system -uses custom enhancements, run the following command: + + 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 unsupported filesystem + features, upgrade your e2fsprogs. To check if your host system + uses custom enhancements, run the following command: debugfs -R feature /dev/[xxx] -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: + If the output contains features other than: ; + ; ; + or 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: 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/[xxx] cd /tmp rm -rfv e2fsprogs-&e2fsprogs-version; - + -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. + 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. mkswap /dev/[yyy] -Replace [yyy] with the name of the swap -partition. + Replace [yyy] with the name of the + swap partition. - -- cgit v1.2.3-54-g00ecf