CentOS File System creation

Source: Internet
Author: User

Centos File system creation, modification and detection

Everyone knows the Linux system is all files, then I will give you a detailed explanation of the file system knowledge

First we'll meet a few common commands:cat,fsdisk, MKFS, etc.

(Note: The operation is performed on the centos6.5 system)

before we mount the partition, we should first look at the type of file system supported by the system, and we can see the types of file systems supported by this system include:iso9660,ext4, etc.

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/78/CB/wKioL1aDf56SFTGyAABAB9GC4O0103.png "title=" 1.png " alt= "Wkiol1adf56sftgyaabab9gc4o0103.png"/>

Next, you can use #:fdisk–l Query partition information, query results such as, you can see that I was hanging three hard drives

SDA, SDB, SDC, and SDA devices are already system file partitions and SDB and SDC devices are not partitions,

in the following experiment, I will use the SDB hard drive to do the operation,

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/78/CB/wKioL1aDf67glHQdAABtipmBx10610.png "title=" 2.png " alt= "Wkiol1adf67glhqdaabtipmbx10610.png"/>


Enter the MKFS command to create a file system on the partition, please note that the following line with the -c parameter, with- C before the file system will be automatically detected disk

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/78/CB/wKioL1aDf7vzAst3AAApDh5EvGQ983.png "title=" 3.png " alt= "Wkiol1adf7vzast3aaapdh5evgq983.png"/>

After the test results are as follows

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/78/CD/wKiom1aDf6myBV00AAB02BbXE5w268.png "title=" 4.png " alt= "Wkiom1adf6mybv00aab02bbxe5w268.png"/>

we then partition and format the file system, using the fdisk command, the full command #:fdisk/dev/sdb

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/78/CB/wKioL1aDf9LQ-uwXAABbVVgyJ0Y837.png "title=" 5.png " alt= "Wkiol1adf9lq-uwxaabbvvgyj0y837.png"/>

once input p,n will indicate whether to establish a primary or extended partition, I choose the e extended partition here

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/78/CD/wKiom1aDf8GArNHnAABbADPNA2Q495.png "title=" 6.png " alt= "Wkiom1adf8garnhnaabbadpna2q495.png"/>


then let you choose one of the 1-4 in the select extension to which partition, I choose 1 extended partition,

after w save Modify

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/78/CD/wKiom1aDf83hObIBAAAsHaAhOA4702.png "title=" 7.png " alt= "Wkiom1adf83hobibaaashaahoa4702.png"/>

Results can be viewed through the fdsik–l command

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/78/CB/wKioL1aDf_TwgxkLAABovylAB5U087.png "title=" 8.png " alt= "Wkiol1adf_twgxklaabovylab5u087.png"/>

SDB1 Extended partition is established.


CentOS File System creation

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.