In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how to achieve disk formatting in Linux. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.
After the disk partition, you also have to format each partition. The so-called format is actually to install the file system. The default file system for CentOS7 is XFS.
Syntax: mkfs [- t file system format] device file name
Options and parameters:
-t: you can connect to the file system format, such as ext3, ext2, vfat, etc. (the system will not take effect until it is supported)
Example 1
View file formats supported by mkfs
[root@www ~] # mkfs [tab] [tab] mkfs mkfs.cramfs mkfs.ext2 mkfs.ext3 mkfs.msdos mkfs.vfat
Press two [tab] and you will find that the file formats supported by mkfs are shown above.
Example 2
Format the partition / dev/hdc6 (you can specify your own partition) as the ext3 file system:
[root@www] # mkfs-t ext3 / dev/hdc6mke2fs 1.39 (29-May-2006) Filesystem label= type: LinuxBlock size=4096 (log=2) log=2) 251392 inodes, 502023 blocks for the super userFirst data block=0Maximum filesystem blocks=51589939216 block groups32768 blocks per group, 32768 fragments per group15712 inodes per groupSuperblock backups stored on blocks: 32768,98304,163840,229376, 294912Writing inode tables: doneCreating journal (8192 blocks): done doneThis filesystem will be automatically checked every 34 mounts or180 days, whichever comes first. Use tune2fs-c or-I to override.# thus creates the Ext3 file system we need! Simple and clear! This is the end of the article on "how to format Linux on disk". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.