Naming of common devices in Linux

Source: Internet
Author: User

 

We know that there are two common swap disk interfaces for personal computers: IDE and Sata. Currently, the mainstream is the SATA interface, but most of the older hosts still use the IDE interface. What we call
The device that can be connected to the IDE interface is an IDE device, regardless of whether it is a disk or a CD device.

 

For ide interfaces, because an IDE flat cable can be connected to two ide devices, and the host usually provides two ide interfaces, a maximum of four ide devices can be connected. That is to say, if you already have a CD device, you can only connect three more ide interfaces to the disk. These two ide interfaces are usually called ide1 (primary) and ide2 (secondary), and each
The IDE device above the flat cable can be divided into master and slave. The names of the four ide devices are:

Example: assume that your host has only one disk with an IDE interface, and this disk is connected to the master of ide2. What is the device file name in the Linux operating system?
A: Compare the device file names in the above table. The master device file name of ide2 is/dev/HDC.

For the SATA interface, because disk interfaces such as SATA, USB, and SCSI are all driven by the SCSI module, therefore, the disk device file names of these interfaces are in the/dev/SD [A-p] format. But what is different from the IDE interface is that the SATA/USB interface disk does not have a certain order at all. How can we determine the device file name? At this time, the disk sequence must be detected based on the Linux core! Here is an example below to help you understand.

 

Example: If your PC has two SATA disks and one USB disk, and the motherboard has six SATA slots. These two SATA disks are respectively installed in sata1 and sata5 slots on the motherboard. What is the device file name of these three disks in Linux?

A: Because the detected order is used to determine the device file name, it is not related to the actual slot code, so the device file name is as follows:
1. region name on the sata1 slot:/dev/SDA
2. region name on the sata5 slot:/dev/SDB
3. USB disk (recognized by the system after boot):/dev/SDC

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.