Linux partitioning learning [CentOS]

Source: Internet
Author: User
Tags what file system

Fdisk-l look at the hard drive and see that there is no partition here is/dev/xvdb

Fdisk/dev/xvdb Input M View Help

Enter N to create the partition, enter p to create the primary partition first .... Enter ENTER

Last ... Enter +2G to create a 2G primary partition

n re-create the input e to set up the extended partition

First .... Enter ENTER

Last ... Enter ENTER

Re-enter N to build the extension

Input L (l = extended partition)

First Enter Enter

Last input +2g to create an extended partition of 2G


Division is finished, of course, to format.

MKFS of the Format command (make filesystem)

Syntax: mkfs [-vv][fs][-f < file system type >][device name] [number of blocks]

Parameters

FS Specifies the parameters when the file system is established.

-t< File System type > Specifies what file system to build.

-V Displays version information with detailed usage methods.

-V shows a brief use of the method.

Mkfs-t ext2/dev/xvdb1 Formatting

The File System Format tool supported by our system is cramfs,ext2,ext3,ext4,mddos,vfat and so on.

This article is from the "Sky Blue Star" blog, please be sure to keep this source http://jingkonglanxing.blog.51cto.com/1152128/1630573

Linux partitioning learning [CentOS]

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.