第一个磁盘/ dev / sda是??8:0(主要:次要),但主要数字8也包含接下来的15个磁盘(内核源中为Documentation/devices.txt):
8 block SCSI disk devices (0-15)
0 = /dev/sda First SCSI disk whole disk
16 = /dev/sdb Second SCSI disk whole disk
32 = /dev/sdc Third SCSI disk whole disk
...
240 = /dev/sdp Sixteenth SCSI disk whole disk
Partitions are handled in the same way as for IDE
disks (see major number 3) except that the limit on
partitions is 15.
其余的是驱动器的其余部分(主要数字66-71和128-134是相似的,并且分区方案对于所有驱动器都是相同的):
65 block SCSI disk devices (16-31)
0 = /dev/sdq 17th SCSI disk whole disk
16 = /dev/sdr 18th SCSI disk whole disk
...
135 block SCSI disk devices (240-255)
0 = /dev/sdig 241st SCSI disk whole disk
...
240 = /dev/sdiv 256th SCSI disk whole disk
好吧,你可能没有那么多磁盘,系统只生成你实际拥有的设备所需的节点,所以除了/ dev中的sda及其分区之外你什么也看不见.
至于vcsa和朋友,他们与虚拟控制台有关:
7 char Virtual console capture devices
0 = /dev/vcs Current vc text contents
1 = /dev/vcs1 tty1 text contents
...
128 = /dev/vcsa Current vc text/attribute contents
129 = /dev/vcsa1 tty1 text/attribute contents
...
另请注意,/ dev / vcs *是字符设备,而不是块设备. ls输出中的第一个字母表示它是哪一个.