使用mkfs在Linux中创建文件系统

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
Create Ext4 File System
Create Ext4 File System
创建Ext4文件系统

创建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
  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值