mkfs - create a Linux file system

Overview

the mkfs [ -V ] [ -t type of file system ] [ fs- Options ] File System [ Block ]

description

mkfs mkfs is used to create a Linux file system in the specified device, usually the hard disk. The file system may be either a device name (eg: / dev / hda1 , / dev / sdb2 ) may be a mount point of the file system (such as: / , / usr , / Home ). Block is the number of blocks in the file system used.

If mkfs return value is 0 successful execution, and vice versa, it is 1.

In fact, the mkfs in each of the Linux file system dedicated program ( the mkfs . FStype ) front end program. Each program in the file system dedicated / sbin , / sbin / FS , /sbin/fs.d , / etc / FS , / etc found directory and the like, (the precise definition is generally defined at compile the kernel, but usually comprise / sbin and / sbin / FS ), and finally directory in the environment variable PATH listed. To get more information about the file system creation tools, refer to the corresponding manual page.

Options

-V
Output verbose help information, including a command to perform various system-related. This command line parameters can appear in multiple prohibited to perform all system-related commands. This approach is useful when in fact the test.
-t  file system type
Specify the file system type to be created. As there is no specified, the default file system type (currently ext2).
fs- Options
Options to be passed to the real file system builder file system-related. Although we can not guarantee, but most of the file system creation tool supports the following options.
-c
Check bad blocks before creating the file system device.
-l  filename
From the specified file filename reading bad block information.
-v
Generating output information redundant. 

Guess you like

Origin www.cnblogs.com/fanweisheng/p/11089445.html