mkfs(make file system)
mkfs(make file system)功能说明:建立各种文件系统。
语 法:mkfs [-vV][fs][-f <文件系统类型>][设备名称][区块数]
补充说明:mkfs本身并不执行建立文件系统的工作,而是去调用相关的程序来执行。
参 数:
fs 指定建立文件系统时的参数。
-t<文件系统类型> 指定要建立何种文件系统。
-v 显示版本信息与详细的使用方法。
-V 显示简要的使用方法。
mkfs
mkfs [options] [fs-options] filesys [blocks]
System administration command. Construct a filesystem on a device (such as a hard disk partition). filesys is either the name of the device or the mountpoint. mkfs is actually a frontend that invokes the appropriate version of mkfs according to a filesystem type specified by the -t option. For example, a Linux Second Extended Filesystem uses mkfs.ext2 (which is the same as mke2fs); MS-DOS filesystems use mkfs.msdos. fs-options are options specific to the filesystem type. blocks is the size of the filesystem in 1024-byte blocks.
Options
Produce verbose output, including all commands executed to create the specific filesystem.
Tells mkfs what type of filesystem to construct.
Filesystem-specific options
These options must follow generic options and cannot be combined with them. Most filesystem builders support these three options:
Check for bad blocks on the device before building the filesystem.
Read the file file for the list of bad blocks on the device.
Produce verbose ouput.