The opening words
Data is the most important thing in the system, and the disk is persistent data essential hardware devices.
Disk Type
HDD hard drive
Revolutions per minute (RPM) | 每秒 I / O | description |
---|---|---|
5400-15000 | 50-210 | Low cost; the data can be restored for the database server. |
SSD hard drive
Revolutions per minute (RPM) | 每秒 I / O | description |
---|---|---|
no | 5000 and above | Low cost; the data can not be restored for the application server. |
Disk Interface Type
abbreviation | Compute | description |
---|---|---|
b | 8 bits = 1 byte | Bit |
B | 1 byte = 8 bits | byte |
Mbps | 8 Mbps = 1 MBps | Megabits per second. |
MBps | 1 MBps = 8 Mbps | Megabytes per second. |
Parallel port
name | Speed (Mbps) | Speed (MBps) |
---|---|---|
HERE | 1064 | 133 |
SCSI | 5120 | 640 |
Serial port
name | Speed (Mbps) | Speed (MBps) |
---|---|---|
SATA | 6144 | 768 |
SAS | 6144 | 768 |
USB 2.0 | 480 | 60 |
USB 3.0 | 5120 | 640 |
File system
Disk file system
Linux file system
name | description |
---|---|
ext2 |
The second generation extended file system for Linux systems design. |
ext3 |
Journaled ext2. |
ext4 |
ext3 extended version supports more features. |
ReiserFS |
Use the log file system. |
XFS |
For SGI IRIX and Linux systems. |
Shared disk file system
name | description |
---|---|
GFS2 |
Red Hat (Global File System). Available for Linux under the GPL. Symmetry (GDLM) or asymmetric (GULM). |
OCFS2 |
Oracle (Oracle Cluster File System). Available for Linux under the GPL. symmetry. |
Distributed File System
name | description |
---|---|
NFS |
Derived from the UNIX-based network of Sun's standards. It may use Kerberos authentication verification and client cache. |
Parallel fault tolerant distributed file system
name | description |
---|---|
Ceph |
A large area scalable object store. |
GlusterFS |
Scalable storage Universal Distributed File System. |
MoosFS |
Fault-tolerant, highly available and high-performance network distributed file system can be extended. |
Special-purpose file system
And pseudo virtual file system
name | description |
---|---|
proc |
Pseudo file system for accessing information processor core. |
tmpfs |
Memory temporary file system (on Linux platform). |
specfs |
Special file system device file. |
sysfs |
Information Unix-like operating system of the virtual file system, hold buses, devices, firmwave, file systems. |
Disk and partition suffix
Disk
磁盘名称通常以 sd
开头后跟 a
、b
、c
、d
等等。
名称 | 意思 |
---|---|
sda |
第一个磁盘。 |
sdb |
第二个磁盘。 |
sdc |
第三个磁盘。 |
sdd |
第四个磁盘。 |
sdN |
第五个磁盘。 |
分区
磁盘分区通常以 sd{a|b|c|d}
开头后跟 1
、2
、3
、4
等等。
名称 | 意思 |
---|---|
sda1 |
第一个磁盘的第一个分区。 |
sda2 |
第一个磁盘的第二个分区。 |
sda3 |
第一个磁盘的第三个分区。 |
sda4 |
第一个磁盘的第四个分区。 |
sdaN |
第一个磁盘的第 N 个分区。 |
格式类型
主引导记录(MBR)
- 被启动系统时的基本输入输出系统(BIOS)引导模式所使用;
- 几乎每个电脑及服务器都支持 BIOS;
- 与其他硬件的兼容性差;
- 支持历史遗留程序;
- 比 UEFI 慢。
总 MBR 大小为 512 字节。
描述 | 大小(字节) | 用途 |
---|---|---|
引导代码区域 | 446 | 运行 BootLoader 及其他必要的程序。 |
主分区表 | 64 = 16 字节 * 4 | 创建分区条目。 |
引导签名 | 2 | 检查 MBR 是否有效。 |
全局唯一标识分区表(GPT)
- 被启动系统时的统一可扩展固件接口(UEFI)引导模式所使用;
- 后来的电脑及服务器支持 UEFI;
- 与其他硬件的兼容性好;
- 不支持历史遗留程序;
- 比 BIOS 快。
设备类型
柱面/磁头/扇区(CHS)
1000000 GB = 1 PB
最大寻址空间(GB) | 寻址(比特) | 描述 |
---|---|---|
8 | 24 | 历史遗留硬盘模式。 |
逻辑块寻址(LBA)
1 PB = 1000000 GB
最大寻址空间(PB) | 寻址(比特) | 描述 |
---|---|---|
128 | 48 | 后来的硬盘模式。 |
设备类型
块设备
显示块设备:
ll /dev | grep '^b'
字符设备
显示字符设备:
ll /dev | grep '^c'
设备号
主号
设备列表的第五列:
ll /dev | grep '^c' | awk '{print $10, $5}'
次号
设备列表的第六列:
ll /dev | grep '^c' | awk '{print $10, $6}'
链接
创建硬链接:
ll
ln awk_file awk_file_ln
ll
显示文件及其关联的号:
ll | awk '{print $9, $2}'
硬链接
- 将积累关联的号;
- 应用对象不可以是目录;
- 无法在不同分区内创建;
- 链接大小与原文件对应。
软链接
- 不会积累关联的号;
- 应用对象可以是目录;
- 可以在不同分区内创建;
- 链接大小是目标路径的长度。
我所撰写的英文版本
引用
参见
上一篇:
想看手册的其他内容?请访问该手册的所属专栏:《Linux 管理员手册:既简单又深刻》