Changeset 4ca79662
- Timestamp:
- 09/22/2022 08:24:38 PM (18 months ago)
- Branches:
- 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, bdubbs/gcc13, multilib, renodr/libudev-from-systemd, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- 9011f2d2
- Parents:
- 58f92b0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter02/creatingfilesystem.xml
r58f92b0 r4ca79662 11 11 <title>Creating a File System on the Partition</title> 12 12 13 <para>Now that a blank partition has been set up, the file system can be 14 created. LFS can use any file system recognized by the Linux kernel, but the 15 most common types are ext3 and ext4. The choice of file system can be 16 complex and depends on the characteristics of the files and the size of 13 <para>A partition is just a range of sectors on a disk drive, delimited by 14 boundaries set in a partition table. Before the operating system can use 15 a blank partition, the partition must be formatted to contain a file 16 system, typically consisting of a label, directory blocks, data blocks, and 17 an indexing scheme to locate a particular file on demand. The file system 18 also helps the OS keep track of free space on the partition, reserve the 19 needed sectors when a new file is created or an existing file is extended, 20 and recycle the free data segments created when files are deleted. It may 21 also provide support for data redundancy, and for error recovery.</para> 22 23 <para>LFS can use any file system recognized by the Linux kernel, but the 24 most common types are ext3 and ext4. The choice of the right file system can be 25 complex; it depends on the characteristics of the files and the size of 17 26 the partition. For example:</para> 18 27 … … 34 43 <varlistentry> 35 44 <term>ext4</term> 36 <listitem><para>is the latest version of the ext f ile system family of37 partition types. It provides several new capabilities including38 nano-second timestamps, creation and use of very large files (16 TB), and39 speed improvements.</para>45 <listitem><para>is the latest version of the ext family of 46 file systems. It provides several new capabilities including 47 nano-second timestamps, creation and use of very large files 48 (up to 16 TB), and speed improvements.</para> 40 49 </listitem> 41 50 </varlistentry> … … 43 52 44 53 <para>Other file systems, including FAT32, NTFS, ReiserFS, JFS, and XFS are 45 useful for specialized purposes. More information about these file systems46 can be found at <ulink54 useful for specialized purposes. More information about these file systems, 55 and many others, can be found at <ulink 47 56 url="https://en.wikipedia.org/wiki/Comparison_of_file_systems"/>.</para> 48 57 49 <para>LFS assumes that the root file system (/) is of type ext4. 58 <para>LFS assumes that the root file system (/) is of type ext4. To create 50 59 an <systemitem class="filesystem">ext4</systemitem> file system on the LFS 51 partition, run the following:</para>60 partition, issue the following command:</para> 52 61 53 62 <screen role="nodump"><userinput>mkfs -v -t ext4 /dev/<replaceable><xxx></replaceable></userinput></screen>
Note:
See TracChangeset
for help on using the changeset viewer.