How to express the hard disk and network card in Linux

Source: Internet
Author: User

All devices in Linux are represented as a file under/dev, and various IDE devices are assigned a file consisting of an HD prefix, and for various SCSI devices, a file consisting of an SD prefix is assigned, for example:

The primary disk on the IDE0 interface becomes the slave disk on the/dev/hda,ide0 interface, which becomes the slave on the/dev/hdb;scsi0 interface, which is called/dev/sdb from the disk on the/dev/sda,scsi0 interface.

The three letters in the device name are a, which means the first hard disk, while B is the second hard disk, and so on.

Partitions are represented by numbers, and the number 1-4 is used to represent primary or extended partitions, and the number of logical partitions begins with 5.

The first primary partition of the primary disk on the IDE0 interface, called the primary disk on the/dev/hda1,ide0 interface, is called/DEV/HD5.

In addition, the Ethernet in Linux is expressed as "eth*", eth0 represents the first Ethernet card, eth1 represents the second Ethernet card, and so on.

How to express the hard disk and network card in Linux

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.