Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use the mkfs command of Linux

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces the relevant knowledge of "how to use the mkfs command of Linux". The editor shows you the operation process through an actual case. The operation method is simple, fast and practical. I hope this article "how to use the mkfs command of Linux" can help you solve the problem.

The mkfs command is an acronym for makefilesystem and is used to establish an Linux file system on a specific partition.

Mkfs command format: [root@localhost ~] # mkfs [- t file system format] Partition device file name-t file system format: used to specify formatted file systems, such as ext3, ext4

The format / dev/sdb6 partition is demonstrated, and the rest of the partitions are formatted in the same way.

The execution command to format the / dev/sdb6 partition is as follows:

[root@localhost] # mkfs-t ext4 / dev/sdb6

Mke2fs 1.41.12 (17-May-2010)

Filesystem label= OS type:Linux

Block size=4096 (log=2) Fragment size=4096 (log=2)

Stride=0 blocks, Stripe width=0 blocks

131648 inodes, 526120 blocks 26306 blocks (5.00%) reserved for the super user

First data block=0

Maximum filesystem blocks=541065216 17 block groups

32768 blocks per group, 32768 fragments per group

7744 inodes per group

Superblock backups stored on blocks:

32768, 98304, 163840, 229376, 294912

Writing inode tables: done

Creating journal (16384 blocks): done

Writing superblocks and filesystem accounting information:done

This filesystem will be automatically checked every 39 mounts or 180 days, whichever comes first. Use tune2fs-c or-i to override.

Although the mkfs command is very easy to use, it cannot adjust the default parameters of the partition (such as a block size of 4096 Bytes), which do not need to be adjusted unless there are special circumstances.

This is the end of the content about "how to use the mkfs command of Linux". Thank you for reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report