sda, sdb, sdc, sda1, sda2在Linux中都代表什么 【转】


意义如下:

  • 第一个软驱 /dev/fd0.

  • 第二个软驱 /dev/fd1.

  • 第一块硬盘 /dev/sda.

  • 第二块硬盘 /dev/sdb, 以此类推.

  • 第一个SCSI CD-ROM /dev/scd0, 可以用/dev/sr0.

sda1, sda2是sda这块硬盘上的两个分区。

 

举例:

image

 =========================================================================

Device Names in Linux

Linux disks and partition names may be different from other operating systems. You need to know the names that Linux uses when you create and mount partitions. Here's the basic naming scheme:

  • The first floppy drive is named . /dev/fd0

  • The second floppy drive is named . /dev/fd1

  • The first hard disk detected is named . /dev/sda

  • The second hard disk detected is named , and so on. /dev/sdb

  • The first SCSI CD-ROM is named , also known as . /dev/scd0/dev/sr0

The partitions on each SCSI disk are represented by appending a decimal number to the disk name: and represent the first and second partitions of the first SCSI disk drive in your system. sda1sda2

Here is a real-life example. Let's assume you have a system with 2 SCSI disks, one at SCSI address 2 and the other at SCSI address 4. The first disk (at address 2) is then named , and the second . If the drive has 3 partitions on it, these will be named , , and . The same applies to the disk and its partitions. sdasdbsdasda1sda2sda3sdb

Note that if you have two SCSI host bus adapters (i.e., controllers), the order of the drives can get confusing. The best solution in this case is to watch the boot messages, assuming you know the drive models and/or capacities.


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM