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