Disk formatting under Linux

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.