Linux Operations Partition Management

Source: Internet
Author: User

Fdisk-cu Creating a partition-------------

After adding the entry, then follow the steps, first add a hard disk, size yourself, then enter the command, choose N to create the partition, then select the primary partition (P) or the extended partition (e) You want to create, then enter, then select how large the partition you want to create, p view, t Modify, and then select the parameters inside, Then enter P to view or save W directly.

Pvcreate--------------convert partitions into physical volumes

Vgcreate--------------placing a physical volume into a volume group

Lvcreate-l +ng-n lv01 vg01----Assigning volume groups to logical volumes

Okay, then.

Formatting

mkfs.ext4/dev/which plate?

or mkswap/dev/which disk

Partition:

Free-m swapon------Open

Free-m swapoff------Off

Mount------------------Mount Command

blkid/dev/which disk/---view UUID

Vim/etc/fatab--------Edit Auto mount on next boot

Summary steps: Create a disk-------format--------mount

Cat/proc/partitions |grep which disk----------view mount

Fdisk-cul---------------------View disk space

Df-h-------------------------View Disk Mounts

Df-i--------------------------View Disk inode utilization

LVS----------------------------View Logical Volume mount status

Summary: Overall, zoning management I know this, but there are some shortcomings I hope that I will work harder to do

Linux Operations Partition Management

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.