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