Turn-linux Hardware and partitions

Source: Internet
Author: User

The file name of each hardware device in Linux

"In a Linux system, each device is treated as a file" for example, the name of the hard disk of the SATA interface is/dev/sd[a-d], where the letters in parentheses are any of the a-d, i.e./dev/sda,/dev/sdb,/DEV/SDC , and/dev/sdd The meaning of these four documents.

In addition to the first point, in the Linux system, almost all the hardware devices are in the/dev directory, so you will see/DEV/SDA,/dev/sr0 and so on the filename oh.

What about the printer and the floppy? It's/dev/lp0,/dev/fd0! Okay, what about the other interface devices? Below is a list of some common devices and their names in Linux:

Device

The file name of the device within Linux

Scsi/sata/usb Hard Drive Machine

/DEV/SD[A-P]

USB Flash Disk

/DEV/SD[A-P] (same as SATA)

VIRTI/O interface

/DEV/VD[A-P] (used in virtual machines)

Floppy drive

/DEV/FD[0-7]

Printer

/DEV/LP[0-2] (25-pin printer)
/DEV/USB/LP[0-15] (USB interface)

Mouse

/DEV/INPUT/MOUSE[0-15] (General)
/dev/psaux (PS/2 interface)
/dev/mouse (current mouse)

Cdrom/dvdrom

/DEV/SCD[0-1] (General)
/DEV/SR[0-1] (general, CentOS more common)
/dev/cdrom (current CDROM)

Tape drive

/dev/ht0 (IDE interface)
/dev/st0 (SATA/SCSI interface)
/dev/tape (Current tape)

IDE Hard Drive

/DEV/HD[A-D] (Legacy system only)

Turn-linux Hardware and partitions

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.