In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the mkfs command how to use the relevant knowledge, detailed and easy to understand, simple and fast operation, with a certain reference value, I believe that everyone will read this mkfs command how to use the article will have some gains, let's take a look at it.
The mkfs command is used to create a Linux file system on a device, usually a hard disk. Mkfs itself does not perform the work of building the file system, but rather calls the relevant programs to do so.
Create a file system on the device
mkfs [options] device parameter
device is the name of the device on which the file system is to be created.
If the device name is in/etc/fstab, you can replace the device name with the mount point of the device, e.g./home instead of/dev/sda2
option
When running mkfs, you can specify global options or specific options for the file system type mkfs is creating (e.g. ext3, ext 4, msdos)
Global options must precede specific type options
global options
-t fstype fstype is the type of file system to create, such as ext3, ext4, etc. Different versions of Linux have different default file systems
-V Displays more output, including information about file systems
Type-specific options for file systems
The following options apply to some common file system types, ls /sbin/mkfs.* Lists programs that create file systems on local systems
$ ls /sbin/mkfs.* /sbin/mkfs.bfs /sbin/mkfs.ext3 /sbin/mkfs.minix /sbin/mkfs.vfat /sbin/mkfs.cramfs /sbin/mkfs.ext4 /sbin/mkfs.msdos /sbin/mkfs.ext2 The requested URL/sbin/mkfs.ext4dev was not found on this server.
mkfs -t
$ mkfs -t vfat /dev/sdb1 mkfs.vfat 3.0.13 (30 Jun 2012) formatted as fat32
mkfs -V -t
$ mkfs -V -t vfat /dev/sdb1 mkfs (util-linux 2.20.1) mkfs.vfat /dev/sdb1 mkfs.vfat 3.0.13 (30 Jun 2012)
Create a file system and display the message, where-V must precede-t
mkfs.vfat -v
$ mkfs.vfat -v /dev/sdb1 mkfs.vfat 3.0.13 (30 Jun 2012) Auto-selecting FAT32 for large filesystem /dev/sdb1 has 255 heads and 63 sectors per track, logical sector size is 512, using 0xf8 media descriptor, with 3887667 sectors; file system has 2 32-bit FATs and 8 sectors per cluster. FAT size is 3792 sectors, and provides 485006 clusters. There are 32 reserved sectors. Volume ID is b0f15e23, no volume label.
Create a file system with specific options and display the creation information, note that-v is lowercase here
Tips
1. Root privileges are required to create a file system
The fdisk -l command can be used to view the file system.
About "mkfs command how to use" the content of this article is introduced here, thank you for reading! I believe everyone has a certain understanding of the knowledge of "how to use mkfs command." If you still want to learn more knowledge, please pay attention to the industry information channel.
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.