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