From 4ca796625907cacaadffbee55278299febe318bb Mon Sep 17 00:00:00 2001 From: David Bryant Date: Thu, 22 Sep 2022 15:24:38 -0500 Subject: Corrected grammar / idiom / punctuation. Also added an introduction explaining what a file system does. --- chapter02/creatingfilesystem.xml | 33 +++++++++++++++++++++------------ 1 file changed, 21 insertions(+), 12 deletions(-) (limited to 'chapter02/creatingfilesystem.xml') diff --git a/chapter02/creatingfilesystem.xml b/chapter02/creatingfilesystem.xml index 1996f1cee..bd442d5e2 100644 --- a/chapter02/creatingfilesystem.xml +++ b/chapter02/creatingfilesystem.xml @@ -10,10 +10,19 @@ Creating a File System on the Partition - Now that a blank partition has been set up, the file system can be - created. LFS can use any file system recognized by the Linux kernel, but the - most common types are ext3 and ext4. The choice of file system can be - complex and depends on the characteristics of the files and the size of + A partition is just a range of sectors on a disk drive, delimited by + boundaries set in a partition table. Before the operating system can use + a blank partition, the partition must be formatted to contain a file + system, typically consisting of a label, directory blocks, data blocks, and + an indexing scheme to locate a particular file on demand. The file system + also helps the OS keep track of free space on the partition, reserve the + needed sectors when a new file is created or an existing file is extended, + and recycle the free data segments created when files are deleted. It may + also provide support for data redundancy, and for error recovery. + + LFS can use any file system recognized by the Linux kernel, but the + most common types are ext3 and ext4. The choice of the right file system can be + complex; it depends on the characteristics of the files and the size of the partition. For example: @@ -33,22 +42,22 @@ ext4 - is the latest version of the ext file system family of - partition types. It provides several new capabilities including - nano-second timestamps, creation and use of very large files (16 TB), and - speed improvements. + is the latest version of the ext family of + file systems. It provides several new capabilities including + nano-second timestamps, creation and use of very large files + (up to 16 TB), and speed improvements. Other file systems, including FAT32, NTFS, ReiserFS, JFS, and XFS are - useful for specialized purposes. More information about these file systems - can be found at . - LFS assumes that the root file system (/) is of type ext4. To create + LFS assumes that the root file system (/) is of type ext4. To create an ext4 file system on the LFS - partition, run the following: + partition, issue the following command: mkfs -v -t ext4 /dev/<xxx> -- cgit v1.2.3-54-g00ecf