Fundamentals of the ten-year OPS series-Linux
Zeng Lin
Contact: [Email protected]
Website: www.jplatformx.com
Copyright: Please do not reprint the article without permission
First, Introduction
In the previous chapters we focused on file-level data processing, which we will discuss at the device level. For physical storage such as hard disks, network storage, and virtual storage such as RAID (independent redundant disk array) and LVM (logical volume management), Linux has amazing processing power.
However, this section does not focus on system management, so there is no intention to delve into this topic, but simply introduce its basic concepts and some important commands for managing storage devices.
Second, mount, unload storage device
Recent advances in Linux graphical interface operations have made it very easy for graphical interface operators to manage storage devices. In most cases, the device can run as long as it is connected to the system. However, in the past, this must depend on manual operation. Because non-graphical interface operating systems such as servers typically have some extreme storage requirements and complex configuration requirements, managing storage devices in such systems is largely dependent on manual operation.
The first thing to do with the management storage device is to add the device to the file system tree, which allows the operating system to manipulate the device, a process called mounting. UNIX-like operating systems, similar to Linux, have only one file system tree, and devices need to be connected to different points. This is different from other operating systems such as MS-DOS, windows, and they have separate trees for each device (such as C: \, D:\, and so on).
The/etc/fstab file content lists the devices (typically hard disk partitions) that are mounted at system startup. Shows the contents of a/etc/fstab file on a centos system.
Most of the file systems listed in this file are virtual and do not apply to the current discussion. The first content is the focus of our attention.
This line actually refers to the hard disk partition, the file contains 6 fields per row, as shown in the following table:
(017) storage media for Linux