Linux-disk management summary, linux-disk Summary

Source: Internet
Author: User

Linux-disk management summary, linux-disk Summary

This blog article mainly summarizes some Linux disk operations, including hard disk loading, partitioning (MBR and GPT partitions), partition mounting, and swap partition loading settings.

Basic commands

  • Df view disk partition usage
  • Du: measure the file size on the disk.
  • Common commands

Considerations when reviewing disk partitions:

  • The total number of primary and extended partitions cannot exceed 4.
  • Up to one extended partition can be created.
  • Extended partitions cannot directly access data
    TIPS:
  • In Linux, hardware devices are stored in the Dev directory under the root directory as files.
  • Hardware devices are automatically identified by the Linux system.
  • The new hard disk must be partitioned, formatted, and mounted before it can be used.
  • MBR partition mode: the maximum size of a single partition is 2 TB.
  • GPT partition mode: the number of Primary partitions is "almost" unlimited, and the capacity of a single partition is "almost" Unlimited. In a GPT partition, a maximum of 128 primary partitions are supported, and the size of each partition exceeds the 2 TB limit of the MBR partition. The maximum value is 18EB = 18432PB = 18874368 TB. The disadvantage is that the primary partition of GPT is not suitable for systems with X86 architecture.

What should I do when hard disk space is exhausted?

A good practice should be: Add a new hard disk to the server on the basis of retaining the original hard disk.

Add a hard disk to a VM

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.