How to create a file system for a disk partition in Linux

Source: Internet
Author: User
In Linux, how to create a file system disk partition for a disk partition can only be used after the file system is created is called formatting. Common file systems in Linux are ext3 and ext4. both file systems support file system logs. The following example shows how to create a file system disk partition for a disk partition in OracleVMVirtualBox... Linux. this process is called formatting. Common file systems in Linux are ext3 and ext4. both file systems support file system logs. The following example is performed on Fedora 15 in Oracle VM VirtualBox. 1. disk browsing input: fdisk-l output: where, sdb1 and sdb5 are the primary and logical partitions you just created. 2. input: dumpe2fs/dev/sdb1 and dumpe2fs/dev/sdb2 output: We can see that sdb1 and sdb5 do not have a file system. 3. create a file system input: mke2fs-text4/dev/sdb1 and mke2fs-text4/dev/sdb5 output:
Note: The mkfs (mkfs. ext4/dev/sdb1 and mkfs. ext4/dev/sdb5), but the function is not as powerful as mke2fs. The latter can contain multiple parameters. 4. view the newly created file system input: dumpe2fs/dev/sdb1 and dumpe2fs/dev/sdb5 output:

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.