Linuxdiske og partitionsnavne kan være forskellige fra andre operativsystemer. Du skal kende navnene som Linux bruger, når du opretter og monterer partitioner. Her er det grundlæggende navneskema:
Det første diskettedrev er navngivet /dev/fd0
.
Det andet diskettedrev er navngivet /dev/fd1
.
Den første SCSI-disk (SCSI ID-adresserækkefølge) er navngivet /dev/sda
.
Den anden SCSI-disk (adresserækkefølge) er navngivet /dev/sdb
.
Den første SCSI-cd-rom er navngivet /dev/scd0
, også kendt som /dev/sr0
.
Master-disken på IDE's primære controller er navngivet /dev/hda
.
Slavedisken på IDE's primære controller er navngivet /dev/hdb
.
The master and slave disks of the secondary controller can be called /dev/hdc
and /dev/hdd
, respectively. Newer IDE controllers can actually have two channels, effectively acting like two controllers.
The partitions on each disk are represented by appending a decimal number to the disk name: sda1
and sda2
represent the first and second partitions of the first SCSI disk drive in your system.
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 sda
, and the second sdb
. If the sda
drive has 3 partitions on it, these will be named sda1
, sda2
, and sda3
. The same applies to the sdb
disk and its partitions.
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.
Linux represents the primary partitions as the drive name, plus the numbers 1 through 4. For example, the first primary partition on the first IDE drive is /dev/hda1
. The logical partitions are numbered starting at 5, so the first logical partition on that same drive is /dev/hda5
. Remember that the extended partition, that is, the primary partition holding the logical partitions, is not usable by itself. This applies to SCSI disks as well as IDE disks.