mke2fs.conf

NAME

mke2fs.conf - Configuration file for mke2fs

DESCRIPTION

mke2fs.conf is the configuration file for mke2fs(8). It controls the

default parameters used by mke2fs(8) when it is creating ext2 or ext3 filesystems.
       The  mke2fs.conf	 file uses an INI-style format.	 Stanzas, or top-level
       sections, are delimited by square braces: [ ].	Within	each  section,
       each  line  defines  a  relation, which assigns tags to values, or to a
       subsection, which contains further relations or subsections.  An	 exam-
       ple  of	the  INI-style	format used by this configuration file follows
       below:
	    [section1]
		 tag1 = value_a
		 tag1 = value_b
		 tag2 = value_c
	    [section 2]
		 tag3 = {
		      subtag1 = subtag_value_a
		      subtag1 = subtag_value_b
		      subtag2 = subtag_value_c
		 }
		 tag1 = value_d
		 tag2 = value_e
	    }
       Comments are delimited by a semicolon (';') or a hash  ('#')  character
       at  the beginning of the comment, and are terminated by the end of line
       character.
       Tags and values must be quoted using  double  quotes  if	 they  contain
       spaces.	Within a quoted string, the standard backslash interpretations
       apply: "\n" (for the newline character), "\t" (for the tab  character),
       "\b" (for the backspace character), and "\\" (for the backslash charac-
       ter).
       The following stanzas are used in the mke2fs.conf file.	They  will  be
       described in more detail in future sections of this document.
       [defaults]
	      Contains	relations  which define the default parameters used by
	      mke2fs(8).  In general, these defaults may be  overridden	 by  a
	      definition  in the fs_types stanza, or by an command-line option
	      provided by the user.
       [fs_types]
	      Contains relations which define defaults that should be used for
	      specific filesystem types.  The filesystem type can be specified
	      explicitly using the -T option to mke2fs(8).  If	no  filesystem
	      type is specified, mke2fs(8) will use the filesystem type floppy
	      if the filesystem size is less than or equal to 3 megabytes.  If
	      the  filesystem size is greater than 3 but less than or equal to
	      512 megabytes, mke2fs(8) will use the filesystem small.	Other-
	      wise, mke2fs(8) will use the default filesystem type default.
THE [defaults] STANZA
       The following relations are defined in the [defaults] stanza.
       base_features
	      This  relation  specifies	 the  filesystems  features  which are
	      enabled in newly created filesystems.  It may be	overridden  by
	      the base_features relation found in the filesystem-type-specific
	      subsection of the [fs_types] stanza.
       default_features
	      This relation specifies a set of features that should  be	 added
	      or removed to the features listed in the base_features relation.
	      It may be overridden by the filesystem-specific default_features
	      in  the  filesystem-type subsection of [fs_types], and by the -O
	      command-line option to mke2fs(8).
       blocksize
	      This relation specifies the default blocksize if the  user  does
	      not specify a blocksize on the command line, and the filesystem-
	      type specific section of the configuration file does not specify
	      a blocksize.
       inode_ratio
	      This relation specifies the default inode ratio if the user does
	      not specify one on the command  line,  and  the  filesystem-type
	      specific	section	 of  the configuration file does not specify a
	      default inode ratio.
 
THE [fs_types] STANZA
       Each tag in the [fs_types] stanza names a filesystem type which can  be
       specified  via  the  -T option to mke2fs(8).  The value of the tag is a
       subsection where the relations in that subsection define	 the  defaults
       for that filesystem type. For example:
       [fs_types]
	    small = {
		 blocksize = 1024
		 inode_ratio = 4096
	    }
	    floppy = {
		 blocksize = 1024
	    }
       For  each  filesystem  type,  the  following  tags  may be used in that
       fs_type's subsection:
       base_features
	      This relation specifies the features which are enabled for  this
	      filesystem type.
       default_features
	      This  relation specifies set of features which should be enabled
	      or disabled to the features listed in  the  base_features	 rela-
	      tion.   It  may  be  overridden by the -O command-line option to
	      mke2fs(8).
       blocksize
	      This relation specifies the default blocksize if the  user  does
	      not specify a blocksize on the command line.
       inode_ratio
	      This relation specifies the default inode ratio if the user does
	      not specify one on the command line.

FILES

      /etc/mke2fs.conf      The configuration file for mke2fs(8).
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值