First, Mknod: Set the device code
In Linux, all devices are represented by files, and the files are judged by major and minor values.
Major is the main device code, minor is the device code (need to query), the example is as follows:
/dev/hda---------major:3------minor:0~63
/DEV/HDB----------major:3------minor:64~127
/DEV/SDA----------major:8------minor:0~15
...
Command format: Mknod device name [BCP] [major] [minor]
Parameter description:
B: External storage devices, such as hard drives.
C: External input device, such as mouse, keyboard.
P:fifo file.
Example: MKNOD/DEV/HDC10 B 22 10
Second, E2label: Modify the device name
Command format: E2label device name new device name
Example: E2label/dev/hdc6 "My_test"
Third, TUNE2FS: The main function is to convert the Ext2 file system to the Ext3 file system
Command format: TUNE2FS [-JLL] Device code
Parameter description:
-L: Read the data from Super block
-j: Converting the Ext2 file system to a ext3 file system
-L: Similar to E2label
Four, Hdparm:
Set the IDE interface of the hard disk advanced parameters, no effect on SATA, temporarily do not understand.