Linux disk storage Management basic commands and tools

Source: Internet
Author: User
Tags ide hard drive

1 disk in the Linux presentation method

(1) IDE hard drive: hd[a~z]x, main device number + secondary device number + disk partition number/HD (0-n,y)

(2) SCSI HDD: SD[A~Z]X/HD (0-n,y)

Note: The main device number can uniquely determine the driver and interface of the device.

2 mounting and use of equipment

(1) In Linux, there is no concept of the drive letter, instead of the partition, any device such as the shutdown or floppy disk is required to mount the way to achieve.

(2) Mount point: You need to build a directory on Linux, and then mount the device to this directory, this time you work on this directory is the operation of the disk.

(3) If you want to exit the mount point, you first need to uninstall the operation, that is, Umount. For example, the use of optical drive to mount, direct eject is no use yo.

(4) Example use Df-h to view the partitioning situation

FileSystem: partition-corresponding device file name

Size: The sizes of each device partition

UserD: Shows the size of the disk already in use

Avail: Available Disk sizes

user%: Shows the amount of free disk space for the total disk partition.

Mount on: Mount directory name corresponding to the disk partition

3 Partitioning a disk using the Fdisk tool

(1) Fdisk is a powerful disk partition management tool that can observe the use of hard disks.

(2) Fdisk uses two parts, querying parts and interacting parts. First, the FDISK device enters the command interaction and then enters m to display the commands that the interaction can use

4 planning partitions with the parted tool

(1) Because the Fdisk partition has a size limit of 2t,parted, you can partition larger disks

(2) First install, command line input parted entered the interactive mode. Enter the Help view Parameters feature

5 LVM

(1) When we are not sure of the total amount of space used by the partition, it is not enough to waste too much. LVM is a logical layer that is built between the disk partition and the file system, making it possible to dynamically adjust the size of the partition.

(2) LVM terminology

Physical storage device: System's storage device file

Physical Volume (PV): A hard disk partition or a logical view of a device similar to a hard disk partition

Volume Group: An LVM consisting of one or more physical volumes

Logical Volume (LV): LV established on volume group, can establish file system on LV

To this, feel that the following content is not clear, which day need to add hard disk partition operation after the continuation. Come on ~~~~~~.

Linux disk storage Management basic commands and tools

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.