File names for each hardware device under Linux

Source: Internet
Author: User
Tags ide hard drive

Once you've chosen the hardware configuration you need, you'll need to look at the hardware

The role played in Linux. Here, brother Bird again emphasizes:

In a Linux system, each device is treated as a file.

For example, the file name of the hard disk of the IDE interface is/dev/hd[a-d], where

The letters in parentheses are any one of the a-d,

There are/dev/hda,/dev/hdb,/dev/hdc, and the meaning of these four documents/DEV/HDD.

In addition to the first point of emphasis, in the Linux system,

Almost all of the hardware device files are in the/dev directory,

So you'll see the file name/dev/hda,/dev/fd0 and so on.

Special attention should be paid to the hard drive (IDE, SCSI, USB),

Each disk drive's disk partition (partition) is not the same,

Its disk file name will also change.

Special attention should be paid to the file name of the tape drive, which may find a different file name in some distribution, requiring a little attention.

Device

File name of the device within Linux

IDE Hard Drive

/DEV/HD[A-D]

Scsi/sata/usb Hard Drive

/DEV/SD[A-P]

USB Flash Disk

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

Soft Disc Machine

/DEV/FD[0-1]

Printing machine

25-pin:/dev/lp[0-2]
USB:/dev/usb/lp[0-15]

Mouse

USB:/dev/usb/mouse[0-15]
PS2:/dev/psaux

Current Cdrom/dvdrom

/dev/cdrom

The current mouse

/dev/mouse

Tape drive

IDE:/dev/ht0
SCSI:/dev/st0

File names for each hardware device under 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.