Centos file system creation, modification, and detection

Source: Internet
Author: User
We all know that everything in linux is a file. next I will explain the knowledge of the file system. First, let's get to know several common commands: cat, fsdisk, mkfs, etc. (note: all operations are performed on centos6.5.) before partitioning and mounting, first check the file system types supported by the system. we can see that the supported file system types include: iso9660, ext4, etc. & n

Everyone knows that everything in linux is a file. next I will explain the knowledge of file systems.

 

First, let's get to know several common commands: cat, fsdisk, mkfs, etc.

(Note: The following operations are performed on CentOS)

Before partitioning and mounting, we should first check the file system types supported by the system. we can see that the supported file system types include: iso9660, ext4, etc.

Next, you can use #: fdisk-l to query the partition information. the query result is as follows. we can see that three hard disks are mounted.

 

 

They are sda, sdb, and sdc, and sda devices are already System File partitions, while sdb and sdc devices are not partitions,

In the following experiment, I will use the sdb hard disk for operations,

 

Run the mkfs command to create a file system on the partition. Note that the following line contains the-c parameter and the disk will be automatically detected before the file system is created.

The result after detection is as follows:

 

Then we will partition and format the file system, and use the fdisk command, complete command #: fdisk/dev/sdb

 

 

If you enter p and n at a time, the system will prompt whether to create a primary partition or an extended partition. here I select e extension partition.

 

Then you will be asked to select one of the 1-4 to select the extended partition. I will select 1 extended partition,

W later save the changes

You can run the fdsik-l command to view the result.

The Sdb1 extended partition has been created.

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.