MKFS [-T file system format] Appliance name
-T can be connected to file system format: Ext3,ext2,vfat
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/4D/CA/wKioL1RZ2ciRTwSbAAP77tkyod4870.jpg "title=" Mkfs.png "alt=" Wkiol1rz2cirtwsbaap77tkyod4870.jpg "/>
Example: Format/dev/hdc6 as a Windows readable VFAT format
Answer: Mkfs-t vfat/dev/hdc6
[ [email protected] ~]# mke2fs [-BICLJ] Appliance Name
Parameters:
-B: You can set the size of each block, currently supports 2048, 4096 bytes three kinds;
-I: How much capacity is given to an inode?
-C: Check disk errors, only once-C, will be a quick read test;
If you release two times-c-c, will test read and write (Read-write), will be very slow ~
...
[[email protected] ~]# mke2fs [-BICLJ] Appliance name
parameter:
-B&NBSP: You can set the size of each block, currently supports the 2048, 4096 bytes Three kinds,
-i : How much capacity is given to an inode?
-c : Check for disk errors, only once-C, will be a quick read test;
If you release two times-c-c, it will test read and write (Read-write), it will be slow ~
-l : Can be followed by the table header name (label), this label is useful Oh! Later will say ~
-j : Originally MKE2FS is EXT2, plus-j, will actively join Journal and become EXT3.
[[email Protected] ~]# Mke2fs-j-L "logical"/DEV/HDB5
Mke2fs 1.37 (21-mar-2005)
Filesystem label=logical
OS Type:linu X
Block size=4096 (log=2)
Fragment size=4096 (log=2)
90432 inodes, 180723 blocks
9036 blocks (5%) Reserved for the super User
First Data block=0
Maximum filesystem blocks=188743680
6 block groups
32768 block s per group, 32768 fragments per group
15072 inodes per group
superblock backups stored on blocks:
  &N bsp; 32768, 98304, 163840
Writing Inode Tables:done
Creating Journal (4096 blocks): Done
Writing superblocks and filesystem accounting Information:done
This filesystem would be automatically checked every mounts or
Whichever comes first. Use Tune2fs-c or-i to override.
# This way we can build a system for him. Cotton ~
Example two: If the block is changed to 2048, and the inode is changed to 4096?
[[email protected] ~]# mke2fs-j-L "logical"-B 2048-i 4096/DEV/HDB5
# The results are roughly similar to the example one ~ but the block size and inode count will change!
The above is the command function of MKE2FS, that is, MKE2FS default is formatted as EXT2 format, if the -j parameter is ext3 format, can only format the two formats;
And for MKFS is not only the format of ext2 and ext3 two formats, it can be formatted as other file system formats, MKFS is a set of many functions integrated command, you can refer to ll/sbin/mkfs* View System can support the file system format,
You can also view Help for man Mkfs. Such as: formatted as EXT3--->># mkfs.ext3/dev/hdb2
This article is from the Linux Operations sharing blog, so be sure to keep this source http://liangey.blog.51cto.com/9097868/1572202
Linux disk formatting Mkfs