After partitioning the disk, or can not directly write to the content, you need to format it to the Linux system can recognize the file system format, the format is actually to disk installation file system.
The file system format supported by Linux CentOS 6 can be seen in the/etc/filesystems file:
The more common is the EXT4 format
# Cat/etc/filesystems
Ext4
Ext3
Ext2
Nodev proc
Nodev devpts
iso9660
Vfat
HfS
Hfsplus
such as the/DEV/SDB5 format into EXT4,
The first command is as follows:
# MKFS.EXT4/DEV/SDB5
The second type of command is as follows:
# mke2fs-t ext4-b 2048-m 1-l CODE/DEV/SDB5
-T EXT4: Specifies the format of the file system
-B 2048: You can specify the block size, but must be an even number of 1024 times, 2048,4096 ...
-M 1: Specifies a reserved size of 1% of the partition capacity
-L Code: Specifies the label for the partition, specifically for the program
MKE2FS offers a variety of formatting options, with degrees of freedom higher than MKFS commands
This article is from the "Parody Games" blog, so be sure to keep this source http://kevinjin117.blog.51cto.com/11655131/1840881
Disk formatting under Linux