man mkfs

---恢复内容开始---

MKFS(8)                                                                MKFS(8)
NAME/名称
       mkfs - build a Linux file system
    构建Linux文件系统
SYNOPSIS/简介
       mkfs [ -V ] [ -t fstype ] [ fs-options ] filesys [ blocks ]
DESCRIPTION/描述
       mkfs is used to build a Linux file system on a device, usually a hard disk partition.  filesys is the device name (e.g.  /dev/hda1, /dev/sdb2).  blocks is the num-
       ber of blocks to be used for the file system.
    mkfs用于在设备(通常是硬盘分区)上构建Linux文件系统。filesys是设备名(例如/dev/hda1、/dev/sdb2)。Blocks是用于文件系统的块数。
       The exit code returned by mkfs is 0 on success and 1 on failure.
    mkfs返回的退出代码成功时为0,失败时为1。
       In actuality, mkfs is simply a front-end for the various file system builders (mkfs.fstype) available under Linux.  The file system-specific  builder  is  searched
       for in a number of directories like perhaps /sbin, /sbin/fs, /sbin/fs.d, /etc/fs, /etc (the precise list is defined at compile time but at least contains /sbin and
       /sbin/fs), and finally in the directories listed in the PATH environment variable.  Please see the file system-specific builder manual pages for further details.
    实际上,mkfs只是Linux下可用的各种文件系统构建器(mkfs.fstype)的前端。文件系统特定的生成器在许多目录中进行搜索,
    例如/sbin、/sbin/fs、/sbin/fs.d、/etc/fs,/etc(精确的列表在编译时定义,但至少包含/sbin和/sbin/fs),
    最后在path环境变量中列出的目录中进行搜索。有关详细信息,请参阅文件系统特定的生成器手册页。
OPTIONS/选项
       -V     Produce verbose output, including all file system-specific commands that are executed.  Specifying this option more than once inhibits execution of any file
              system-specific commands.  This is really only useful for testing.
     生成详细输出,包括所有执行的文件系统特定命令。多次指定此选项将禁止执行任何特定于文件系统的命令。这只对测试有用。
       -t fstype
              Specifies the type of file system to be built.  If not specified, the default file system type (currently ext2) is used.
     指定要生成的文件系统的类型。如果未指定,则使用默认的文件系统类型(当前为ext2)。
       fs-options
              File system-specific options to be passed to the real file system builder.  Although not guaranteed, the following options are supported by most file system
              builders.
     要传递给真实文件系统生成器的文件系统特定选项。尽管没有保证,但大多数文件系统构建器都支持以下选项。
       -c     Check the device for bad blocks before building the file system.
     在构建文件系统之前,请检查设备是否存在坏块。
       -l filename
              Read the bad blocks list from filename
     从文件名读取坏块列表
       -v     Produce verbose output.
           生成详细输出
BUGS/漏洞
       All generic options must precede and not be combined with file system-specific options.  Some file system-specific programs do not support the -v (verbose) option,
       nor  return  meaningful  exit  codes.   Also, some file system-specific programs do not automatically detect the device size and require the blocks parameter to be
       specified.
    所有常规选项都必须在前面,不能与特定于文件系统的选项组合使用。某些特定于文件系统的程序不支持-v(verbose)选项,也不返回有意义的退出代码。
    此外,某些特定于文件系统的程序不会自动检测设备大小,并且需要指定blocks参数。
AUTHORS/作者
       David Engel (david@ods.com)
       Fred N. van Kempen (waltje@uwalt.nl.mugnet.org)
       Ron Sommeling (sommel@sci.kun.nl)
       The manual page was shamelessly adapted from Remy Card?. version for the ext2 file system.
SEE ALSO/参照
       fs(5),  badblocks(8),  fsck(8),  mkdosfs(8),  mke2fs(8),  mkfs.bfs(8),  mkfs.ext2(8),  mkfs.ext3(8),  mkfs.minix(8),  mkfs.msdos(8),   mkfs.vfat(8),   mkfs.xfs(8),
       mkfs.xiafs(8)
Version 1.9                        Jun 1995                            MKFS(8)

---恢复内容结束---

原文地址:https://www.cnblogs.com/niaocaizhou/p/10910143.html