File systems are the main component of operating systems. File systems provide the required infrastructure for holding data permanently operating system level. Linux supports diverse types of file systems. We will look at how to create major file systems on partitions. The standard tool for Linux to create an operating system is mkfs.
文件系统是操作系统的主要组件。 文件系统提供了在永久操作系统级别上保存数据所需的基础结构。 Linux支持多种类型的文件系统。 我们将研究如何在分区上创建主要文件系统。 Linux创建操作系统的标准工具是mkfs。
创建Ext4文件系统 (Create Ext4 File System)
The ext4 file system is the most popular file system of the Linux world. This file system is used most of the Linux distributions. Ext4 is also the latest version of the Ext file system. The general performance of Ext4 is very good. Also, this file system supports a lot of features for enterprise requirements. Now let’s create an Ext4 file system with the following command. Creating a file system requires root privileges so we use sudo
command. In this example, we will create a file system on /dev/vdb1
ext4文件系统是Linux世界上最流行的文件系统。 大多数Linux发行版都使用此文件系统。 Ext4也是Ext文件系统的最新版本。 Ext4的一般性能非常好。 此外,此文件系统支持企业要求的许多功能。 现在,使用以下命令创建一个Ext4文件系统。 创建文件系统需要root特权,因此我们使用sudo
命令。 在此示例中,我们将在/dev/vdb1
上创建一个文件系统。
$ sudo mkfs.ext4 /dev/vdb1
创建Ext3文件系统(Create Ext3 File System)
Ext3 is the previous version of the Ext4 and some older all ready installed systems use this file system. Also, Ext3 is more compatible with different devices and applications. This file system used for boots partition.
Ext3是Ext4的早期版本,并且某些较早的已安装系统都使用此文件系统。 另外,Ext3与不同的设备和应用程序更加兼容。 此文件系统用于引导分区。
$ sudo mkfs.ext3 /dev/vdb1